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

Introduction to html
Introduction to htmlIntroduction to html
Introduction to htmleShikshak
 
Span and Div tags in HTML
Span and Div tags in HTMLSpan and Div tags in HTML
Span and Div tags in HTMLBiswadip Goswami
 
Html table
Html tableHtml table
Html tableJayjZens
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSSAmit Tyagi
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to htmlvikasgaur31
 
Html presentation
Html presentationHtml presentation
Html presentationAmber Bhaumik
 
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
 
Data types in php
Data types in phpData types in php
Data types in phpilakkiya
 
Html Intro2
Html Intro2Html Intro2
Html Intro2mlackner
 
Learn html Basics
Learn html BasicsLearn html Basics
Learn html BasicsMcSoftsis
 
Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)AakankshaR
 
LINKING IN HTML
LINKING IN HTMLLINKING IN HTML
LINKING IN HTMLVarsha Dubey
 

What's hot (20)

HTML: Tables and Forms
HTML: Tables and FormsHTML: Tables and Forms
HTML: Tables and Forms
 
HTML Tags
HTML TagsHTML Tags
HTML Tags
 
Html coding
Html codingHtml coding
Html coding
 
HTML (Web) basics for a beginner
HTML (Web) basics for a beginnerHTML (Web) basics for a beginner
HTML (Web) basics for a beginner
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Learning HTML
Learning HTMLLearning HTML
Learning HTML
 
Span and Div tags in HTML
Span and Div tags in HTMLSpan and Div tags in HTML
Span and Div tags in HTML
 
Html table
Html tableHtml table
Html table
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Html presentation
Html presentationHtml presentation
Html presentation
 
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)
 
Data types in php
Data types in phpData types in php
Data types in php
 
Html Intro2
Html Intro2Html Intro2
Html Intro2
 
Learn html Basics
Learn html BasicsLearn html Basics
Learn html Basics
 
Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)
 
Html
HtmlHtml
Html
 
LINKING IN HTML
LINKING IN HTMLLINKING IN HTML
LINKING IN HTML
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
Bootstrap
BootstrapBootstrap
Bootstrap
 

Similar to Text Formatting Tags and Font Styling in HTML

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

Introduction to E commerce
Introduction to E commerceIntroduction to E commerce
Introduction to E commerceHimanshu Pathak
 
Digital property rights
Digital property rightsDigital property rights
Digital property rightsHimanshu Pathak
 
Intellectual property rights
Intellectual property rightsIntellectual property rights
Intellectual property rightsHimanshu Pathak
 
An Introduction to Cyber Ethics
An Introduction to Cyber EthicsAn Introduction to Cyber Ethics
An Introduction to Cyber EthicsHimanshu Pathak
 
Cascading style sheet part 2
Cascading style sheet   part 2Cascading style sheet   part 2
Cascading style sheet part 2Himanshu Pathak
 
Cascading style sheet an introduction
Cascading style sheet   an introductionCascading style sheet   an introduction
Cascading style sheet an introductionHimanshu Pathak
 
Html link and list tags
Html link and list tagsHtml link and list tags
Html link and list tagsHimanshu Pathak
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to htmlHimanshu Pathak
 
Mobile technologies
Mobile technologiesMobile technologies
Mobile technologiesHimanshu Pathak
 
Remote Login and File Transfer Protocols
Remote Login and File Transfer ProtocolsRemote Login and File Transfer Protocols
Remote Login and File Transfer ProtocolsHimanshu Pathak
 
Introduction to internet
Introduction to internetIntroduction to internet
Introduction to internetHimanshu 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

The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
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
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
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
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
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
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 

Recently uploaded (20)

The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
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
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
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
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
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
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 

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