SlideShare a Scribd company logo
1 of 20
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

More Related Content

What's hot (20)

Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
HTML
HTMLHTML
HTML
 
Html Ppt
Html PptHtml Ppt
Html Ppt
 
Html
HtmlHtml
Html
 
Dynamic HTML (DHTML)
Dynamic HTML (DHTML)Dynamic HTML (DHTML)
Dynamic HTML (DHTML)
 
Html basics
Html basicsHtml basics
Html basics
 
Html ppt
Html pptHtml ppt
Html ppt
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
 
Html
HtmlHtml
Html
 
Intro Html
Intro HtmlIntro Html
Intro Html
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Lecture 2 introduction to html
Lecture 2  introduction to htmlLecture 2  introduction to html
Lecture 2 introduction to html
 
Basic html structure
Basic html structureBasic html structure
Basic html structure
 
Html images syntax
Html images syntaxHtml images syntax
Html images syntax
 
Css Ppt
Css PptCss Ppt
Css Ppt
 
Html list
Html listHtml list
Html list
 
PPT on Basic HTML Tags
PPT on Basic HTML TagsPPT on Basic HTML Tags
PPT on Basic HTML Tags
 
Html presentation
Html presentationHtml presentation
Html presentation
 

Similar to Text Formatting Tags and Font Styling in HTML (20)

HTML-INTRO.pptx
HTML-INTRO.pptxHTML-INTRO.pptx
HTML-INTRO.pptx
 
Computer language - HTML tags
Computer language - HTML tagsComputer language - HTML tags
Computer language - HTML tags
 
introduction to html.ppt
introduction to html.pptintroduction to html.ppt
introduction to html.ppt
 
Html tutorials
Html tutorialsHtml tutorials
Html tutorials
 
Html tutorials
Html tutorialsHtml tutorials
Html tutorials
 
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptx
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptxHTML 5_cfbe4b8d-092saawww24bb33cb2358.pptx
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptx
 
Standard html tags
Standard html tagsStandard html tags
Standard html tags
 
introdution-to-html.ppt
introdution-to-html.pptintrodution-to-html.ppt
introdution-to-html.ppt
 
Web topic 5 text formatting
Web topic 5  text formattingWeb topic 5  text formatting
Web topic 5 text formatting
 
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
 
html
htmlhtml
html
 
Positioning text
Positioning textPositioning text
Positioning text
 
Html (1)
Html (1)Html (1)
Html (1)
 
IntroHTML.ppt
IntroHTML.pptIntroHTML.ppt
IntroHTML.ppt
 
HTML.ppt
HTML.pptHTML.ppt
HTML.ppt
 
IntroHTML.ppt
IntroHTML.pptIntroHTML.ppt
IntroHTML.ppt
 
HTML
HTMLHTML
HTML
 
Html notes with Examples
Html notes with ExamplesHtml notes with Examples
Html notes with Examples
 
Html
HtmlHtml
Html
 
GFGC CHIKKABASUR(HTML)
GFGC CHIKKABASUR(HTML)GFGC CHIKKABASUR(HTML)
GFGC CHIKKABASUR(HTML)
 

More from Himanshu Pathak

More from Himanshu Pathak (18)

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

Recently uploaded

Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 

Recently uploaded (20)

Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 

Text Formatting Tags and Font Styling in HTML

  • 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