SlideShare a Scribd company logo
COMPUTER APPLICATIONS
CLASS X (Code 165)
TOPIC:
UNIT 2: Text Formatting Tags
By
HIMANSHU PATHAK
Contents
• Introduction
• Text Formatting Tags
• Font Tags
Introduction
• HTML provides us with the ability for formatting
text just like we do it in MS Word or any text
editing software.
• It gives us the ability to format the text without
using CSS.
• The following HTML tags are used to format the
appearance of the text on your web page.
Bold : <b> </b>
• The <b> tag is used to make a word or group of
the word special to draw the reader's attention.
• However, you should not use the b tag to make
text bold instead use the font-weight property of
CSS.
• Example:
– <p>b tag is used to make <b>special words</b>
bold.</p>
• Strong Emphasis - <strong> </strong>Used to
emphasize text more, which usually appears in
bold, but can vary according to your browser.
Italic : <i> </i>
• It works as the same way as a word processor,
italics displays the text at a slight angle.
• It makes text italic and is used to define
technical terms, idiomatic text, etc.
• Example:
– <p>HTML is a <i>markup language</i>.</p>
• Emphasis - <em> </em> Used to emphasize
text, which usually appears in italics, but can
vary according to your browser.
Underline: <u> </u>
• The <u> tag is used to represent a non-literary
explanation.
• Again, the same as underline in a word
processor.
• Note that html links are already underlined
and don't need the extra tag.
• Example:
– p>There are lots of <u>speling</u> mistake in
<u>thes</u> line.</p>
Strike-out: <strike> </strike>
• Puts a line right through the centre of the text,
crossing it out.
• Often used to show that text is old and no
longer relevant.
• Also works by using <s> </s> instead.
• The <del> tag defines texts which have been
remove from the document or webpage.
• Example:
– <p><s>Use &lt;center&gt; tag to ceter a text in
HTML.</s></p>
Preformatted Text: <pre> </pre>
• It is used to present text as it is written in an
HTML document.
• The whitespaces used in the element are
displayed the same as written.
• Example:
– <pre>Y Y
Y Y
Y Y
Y
Y
</pre>
Superscript: <sup> </sup>
• The <sup> tag is used to display text as
superscript.
• Superscript is rendered with a raised baseline
and smaller text.
• This tag are broadly used in Mathematics.
• Example:
– <p> Area of a Circle is: Pi * radius <sup> 2 </sup>
</p>
Subscript: <sub> </sub>
• The <sub> tag is used to display text as a
subscript.
• Subscript is rendered as small text with a
lower baseline.
• This tag is broadly used in Chemistry.
• Example:
– <p>Molecular formula of water is
H<sub>2</sub>O</p>
Small: <small> </small>
• The <small> tag is used to define smaller text
like copyright, comments, etc.
• By default, it renders text smaller than
standard however it can be controlled using
CSS.
• Example:
– <p>The &lt;small&gt; tag is used to make text
<small>smaller</small>.</p>
Abbreviation: <abbr> </abbr>
• The <abbr> tag is used to represent an
abbreviation or acronym.
• The tag accepts a title attribute that accepts the
full form of the word.
• When the reader hovers the text it shows a full
description of the word.
• Example:
– <p><abbr title="Hypertext markup
language">HTML</abbr> is used to create
webpages.</p>
Mark: <mark> </mark>
• The <mark> tag marks or highlights a text to
grab reader's attention.
• Example:
– <p>mark tag is used to <mark>highlight</mark> a
text.</p>
Meter: <meter> </meter>
• The <meter> tag is used to define a scale with a given range
and value.
• The tag requires a defined value with min value and max value
of the scale.
• The min, max and the value are attributes of the tag.
• You can also give low and high values to the scale which is used
to change the color of the scale.
• If the value of the scale is below the low value then the scale is
green, if the value is between low and high then the scale is
yellow and if the scale is above the high value then the scale is
red.
• Example:
– <p>Speed of bike was 65kmph <meter min="0" max="100"
low="33" high="66" value="65"></meter></p>
Quotation: <q> </q>
• The <q> tag defines an inline quotation.
• The most modern browser automatically adds
quotation marks around the text.
• Example:
– <p> Modi is our <q>prime minister</q></p>
Font Tags
• The <font> tag plays an important role in the web
page to create an attractive and readable web page.
• The font tag is used to change the color, size, and
style of a text.
• Now, it is not supported by HTML 5.
• The font tag has basically three attributes which are
given below:
– Size
– Face/Type
– Color
Font Size
• This attribute is used to adjust the size of the
text in the HTML document using font tag with
size attribute.
• The range of size of the font in HTML is from 1
to 7 and the default size is 3.
• Example:
– <font size = "3">Welcome to!</font><br />
– <font size = "4">Pathak’s Computer </font><br />
– <font size = "5">Online-classes!</font><br />
Font Type
• Font type can be set by using face attribute with
font tag in HTML document.
• The fonts used by the user need to be installed in
the system first.
• To show text in a particular font, use the font
name such "Helvetica" or "Arial" or "Courier".
• Example:
– <font face = "Verdana" size = "6"> Pathak’s Computer
Academy!!</font><br />
Font Color
• Font color is used to set the text color using font
tag with the color attribute in HTML document.
• Color can be specified either with its name or
with Its hex code or with RGB value.
• Example:
– <font color = "#009900">Himanshu</font><br />
– <font color = "green">Pathak</font>
Today we learn
• Learned basic Text Formatting Tags
• Font Tags and their attributes
• In the next class, we will start Unit II – Image,
Links & Lists Tags in detail.
•Thanks
Ad

More Related Content

What's hot (20)

Css selectors
Css selectorsCss selectors
Css selectors
Parth Trivedi
 
html-table
html-tablehtml-table
html-table
Dhirendra Chauhan
 
Html images syntax
Html images syntaxHtml images syntax
Html images syntax
JayjZens
 
HTML Tags
HTML TagsHTML Tags
HTML Tags
Pranay Agrawal
 
Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)
AakankshaR
 
Html ppt
Html pptHtml ppt
Html ppt
Ruchi Kumari
 
Html frames
Html framesHtml frames
Html frames
eShikshak
 
Html-list
Html-listHtml-list
Html-list
Dhirendra Chauhan
 
Basic html structure
Basic html structureBasic html structure
Basic html structure
Jhaun Paul Enriquez
 
Html Slide Part-1
Html Slide Part-1Html Slide Part-1
Html Slide Part-1
AAKASH KUMAR
 
Images and Tables in HTML
Images and Tables in HTMLImages and Tables in HTML
Images and Tables in HTML
Aarti P
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
Ameer Khan
 
Html text and formatting
Html text and formattingHtml text and formatting
Html text and formatting
eShikshak
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
Ravinder Kamboj
 
HTML: Tables and Forms
HTML: Tables and FormsHTML: Tables and Forms
HTML: Tables and Forms
BG Java EE Course
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
Chris Poteet
 
Learning HTML
Learning HTMLLearning HTML
Learning HTML
Md. Sirajus Salayhin
 
Css types internal, external and inline (1)
Css types internal, external and inline (1)Css types internal, external and inline (1)
Css types internal, external and inline (1)
Webtech Learning
 
HTML PPT.pdf
HTML PPT.pdfHTML PPT.pdf
HTML PPT.pdf
sunnyGupta325328
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basics
Eliran Eliassy
 

Similar to HTML Text formatting tags (20)

HTML-INTRO.pptx
HTML-INTRO.pptxHTML-INTRO.pptx
HTML-INTRO.pptx
SanjayKumarBahuguna1
 
Computer language - HTML tags
Computer language - HTML tagsComputer language - HTML tags
Computer language - HTML tags
Dr. I. Uma Maheswari Maheswari
 
introduction to html.ppt
introduction to html.pptintroduction to html.ppt
introduction to html.ppt
ShubhamIngale28
 
Html tutorials
Html tutorialsHtml tutorials
Html tutorials
Deputy Chief Librarian & Head
 
Html tutorials
Html tutorialsHtml tutorials
Html tutorials
Deputy Chief Librarian & Head
 
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptx
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptxHTML 5_cfbe4b8d-092saawww24bb33cb2358.pptx
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptx
TEJASARGADE5
 
Standard html tags
Standard html tagsStandard html tags
Standard html tags
baabtra.com - No. 1 supplier of quality freshers
 
introdution-to-html.ppt
introdution-to-html.pptintrodution-to-html.ppt
introdution-to-html.ppt
charvivij
 
Web topic 5 text formatting
Web topic 5  text formattingWeb topic 5  text formatting
Web topic 5 text formatting
CK Yang
 
Internship HTML_Day-1 for beggineers.ppt
Internship HTML_Day-1 for beggineers.pptInternship HTML_Day-1 for beggineers.ppt
Internship HTML_Day-1 for beggineers.ppt
testvarun21
 
WEB PROGRAMMING- Web page creation using HTML Tags
WEB PROGRAMMING-  Web page creation using HTML TagsWEB PROGRAMMING-  Web page creation using HTML Tags
WEB PROGRAMMING- Web page creation using HTML Tags
jananisairam
 
html
htmlhtml
html
tumetr1
 
WEB PROGRAMMING.Introduction to HTML Heading Tags Formatting Tags
WEB PROGRAMMING.Introduction to HTML Heading Tags  Formatting TagsWEB PROGRAMMING.Introduction to HTML Heading Tags  Formatting Tags
WEB PROGRAMMING.Introduction to HTML Heading Tags Formatting Tags
SABITHARASSISTANTPRO
 
Positioning text
Positioning textPositioning text
Positioning text
nobel mujuji
 
Html (1)
Html (1)Html (1)
Html (1)
smitha273566
 
IntroHTML.ppt
IntroHTML.pptIntroHTML.ppt
IntroHTML.ppt
abhishek kumar
 
HTML.ppt
HTML.pptHTML.ppt
HTML.ppt
HatemMagdyMohamed
 
IntroHTML.ppt
IntroHTML.pptIntroHTML.ppt
IntroHTML.ppt
HatemMagdyMohamed
 
HTML
HTMLHTML
HTML
CHANDERPRABHU JAIN COLLEGE OF HIGHER STUDIES & SCHOOL OF LAW
 
Html notes with Examples
Html notes with ExamplesHtml notes with Examples
Html notes with Examples
isha
 
Ad

More from Himanshu Pathak (18)

Introduction to E commerce
Introduction to E commerceIntroduction to E commerce
Introduction to E commerce
Himanshu Pathak
 
Digital property rights
Digital property rightsDigital property rights
Digital property rights
Himanshu Pathak
 
Intellectual property rights
Intellectual property rightsIntellectual property rights
Intellectual property rights
Himanshu Pathak
 
An Introduction to Cyber Ethics
An Introduction to Cyber EthicsAn Introduction to Cyber Ethics
An Introduction to Cyber Ethics
Himanshu Pathak
 
Cascading style sheet part 2
Cascading style sheet   part 2Cascading style sheet   part 2
Cascading style sheet part 2
Himanshu Pathak
 
Cascading style sheet an introduction
Cascading style sheet   an introductionCascading style sheet   an introduction
Cascading style sheet an introduction
Himanshu Pathak
 
Html multimedia
Html multimediaHtml multimedia
Html multimedia
Himanshu Pathak
 
Html forms
Html formsHtml forms
Html forms
Himanshu Pathak
 
Html tables
Html tablesHtml tables
Html tables
Himanshu Pathak
 
Html link and list tags
Html link and list tagsHtml link and list tags
Html link and list tags
Himanshu Pathak
 
Basic html tags
Basic html tagsBasic html tags
Basic html tags
Himanshu Pathak
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
Himanshu Pathak
 
Mobile technologies
Mobile technologiesMobile technologies
Mobile technologies
Himanshu Pathak
 
Web services
Web servicesWeb services
Web services
Himanshu Pathak
 
Remote Login and File Transfer Protocols
Remote Login and File Transfer ProtocolsRemote Login and File Transfer Protocols
Remote Login and File Transfer Protocols
Himanshu Pathak
 
Internet protocol
Internet protocolInternet protocol
Internet protocol
Himanshu Pathak
 
Introduction to internet
Introduction to internetIntroduction to internet
Introduction to internet
Himanshu Pathak
 
What is Computer?
What is Computer?What is Computer?
What is Computer?
Himanshu Pathak
 
Ad

Recently uploaded (20)

How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
Introduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe EngineeringIntroduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe Engineering
Damian T. Gordon
 
One Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learningOne Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learning
momer9505
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-3-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 5-3-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 5-3-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-3-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
P-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 finalP-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 final
bs22n2s
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
SPRING FESTIVITIES - UK AND USA -
SPRING FESTIVITIES - UK AND USA            -SPRING FESTIVITIES - UK AND USA            -
SPRING FESTIVITIES - UK AND USA -
Colégio Santa Teresinha
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
New Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptxNew Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptx
milanasargsyan5
 
How to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 WebsiteHow to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 Website
Celine George
 
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public SchoolsK12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
dogden2
 
apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
Handling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptxHandling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptx
AuthorAIDNationalRes
 
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Library Association of Ireland
 
Geography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjectsGeography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjects
ProfDrShaikhImran
 
LDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini UpdatesLDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini Updates
LDM Mia eStudios
 
Metamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative JourneyMetamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative Journey
Arshad Shaikh
 
How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
Introduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe EngineeringIntroduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe Engineering
Damian T. Gordon
 
One Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learningOne Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learning
momer9505
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
P-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 finalP-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 final
bs22n2s
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
New Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptxNew Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptx
milanasargsyan5
 
How to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 WebsiteHow to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 Website
Celine George
 
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public SchoolsK12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
dogden2
 
apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
Handling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptxHandling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptx
AuthorAIDNationalRes
 
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Library Association of Ireland
 
Geography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjectsGeography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjects
ProfDrShaikhImran
 
LDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini UpdatesLDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini Updates
LDM Mia eStudios
 
Metamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative JourneyMetamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative Journey
Arshad Shaikh
 

HTML Text formatting tags

  • 1. COMPUTER APPLICATIONS CLASS X (Code 165) TOPIC: UNIT 2: Text Formatting Tags By HIMANSHU PATHAK
  • 2. Contents • Introduction • Text Formatting Tags • Font Tags
  • 3. Introduction • HTML provides us with the ability for formatting text just like we do it in MS Word or any text editing software. • It gives us the ability to format the text without using CSS. • The following HTML tags are used to format the appearance of the text on your web page.
  • 4. Bold : <b> </b> • The <b> tag is used to make a word or group of the word special to draw the reader's attention. • However, you should not use the b tag to make text bold instead use the font-weight property of CSS. • Example: – <p>b tag is used to make <b>special words</b> bold.</p> • Strong Emphasis - <strong> </strong>Used to emphasize text more, which usually appears in bold, but can vary according to your browser.
  • 5. Italic : <i> </i> • It works as the same way as a word processor, italics displays the text at a slight angle. • It makes text italic and is used to define technical terms, idiomatic text, etc. • Example: – <p>HTML is a <i>markup language</i>.</p> • Emphasis - <em> </em> Used to emphasize text, which usually appears in italics, but can vary according to your browser.
  • 6. Underline: <u> </u> • The <u> tag is used to represent a non-literary explanation. • Again, the same as underline in a word processor. • Note that html links are already underlined and don't need the extra tag. • Example: – p>There are lots of <u>speling</u> mistake in <u>thes</u> line.</p>
  • 7. Strike-out: <strike> </strike> • Puts a line right through the centre of the text, crossing it out. • Often used to show that text is old and no longer relevant. • Also works by using <s> </s> instead. • The <del> tag defines texts which have been remove from the document or webpage. • Example: – <p><s>Use &lt;center&gt; tag to ceter a text in HTML.</s></p>
  • 8. Preformatted Text: <pre> </pre> • It is used to present text as it is written in an HTML document. • The whitespaces used in the element are displayed the same as written. • Example: – <pre>Y Y Y Y Y Y Y Y </pre>
  • 9. Superscript: <sup> </sup> • The <sup> tag is used to display text as superscript. • Superscript is rendered with a raised baseline and smaller text. • This tag are broadly used in Mathematics. • Example: – <p> Area of a Circle is: Pi * radius <sup> 2 </sup> </p>
  • 10. Subscript: <sub> </sub> • The <sub> tag is used to display text as a subscript. • Subscript is rendered as small text with a lower baseline. • This tag is broadly used in Chemistry. • Example: – <p>Molecular formula of water is H<sub>2</sub>O</p>
  • 11. Small: <small> </small> • The <small> tag is used to define smaller text like copyright, comments, etc. • By default, it renders text smaller than standard however it can be controlled using CSS. • Example: – <p>The &lt;small&gt; tag is used to make text <small>smaller</small>.</p>
  • 12. Abbreviation: <abbr> </abbr> • The <abbr> tag is used to represent an abbreviation or acronym. • The tag accepts a title attribute that accepts the full form of the word. • When the reader hovers the text it shows a full description of the word. • Example: – <p><abbr title="Hypertext markup language">HTML</abbr> is used to create webpages.</p>
  • 13. Mark: <mark> </mark> • The <mark> tag marks or highlights a text to grab reader's attention. • Example: – <p>mark tag is used to <mark>highlight</mark> a text.</p>
  • 14. Meter: <meter> </meter> • The <meter> tag is used to define a scale with a given range and value. • The tag requires a defined value with min value and max value of the scale. • The min, max and the value are attributes of the tag. • You can also give low and high values to the scale which is used to change the color of the scale. • If the value of the scale is below the low value then the scale is green, if the value is between low and high then the scale is yellow and if the scale is above the high value then the scale is red. • Example: – <p>Speed of bike was 65kmph <meter min="0" max="100" low="33" high="66" value="65"></meter></p>
  • 15. Quotation: <q> </q> • The <q> tag defines an inline quotation. • The most modern browser automatically adds quotation marks around the text. • Example: – <p> Modi is our <q>prime minister</q></p>
  • 16. Font Tags • The <font> tag plays an important role in the web page to create an attractive and readable web page. • The font tag is used to change the color, size, and style of a text. • Now, it is not supported by HTML 5. • The font tag has basically three attributes which are given below: – Size – Face/Type – Color
  • 17. Font Size • This attribute is used to adjust the size of the text in the HTML document using font tag with size attribute. • The range of size of the font in HTML is from 1 to 7 and the default size is 3. • Example: – <font size = "3">Welcome to!</font><br /> – <font size = "4">Pathak’s Computer </font><br /> – <font size = "5">Online-classes!</font><br />
  • 18. Font Type • Font type can be set by using face attribute with font tag in HTML document. • The fonts used by the user need to be installed in the system first. • To show text in a particular font, use the font name such "Helvetica" or "Arial" or "Courier". • Example: – <font face = "Verdana" size = "6"> Pathak’s Computer Academy!!</font><br />
  • 19. Font Color • Font color is used to set the text color using font tag with the color attribute in HTML document. • Color can be specified either with its name or with Its hex code or with RGB value. • Example: – <font color = "#009900">Himanshu</font><br /> – <font color = "green">Pathak</font>
  • 20. Today we learn • Learned basic Text Formatting Tags • Font Tags and their attributes • In the next class, we will start Unit II – Image, Links & Lists Tags in detail. •Thanks