SlideShare a Scribd company logo
1 of 27
HTML TAGS ,[object Object]
[object Object]
Basic HTML Tags   Tag  Description <html>  Defines an HTML document <head>  Defines information about the document <title>  Defines the document title <body>  Defines the document's body <h1> to <h6>  Defines header 1 to header 6 <p>  Defines a paragraph <br>  Inserts a single line break <hr>  Defines a horizontal rule <!-->  Defines a comment
<html>tag This element tells a browser that this is an HTML document. This tag is defined at the top of the HTML file and at the end of file.   Format: <html> <body>..............body of HTML.............</body></html>   Example: <html> <body> this is my first page </body></html>
<head> tag The head tag defines information about the document. The browser does not display the &quot;head information&quot; to the user. The following tags can be in the head section: <base>, <link>, <meta>, <script>, <style>, and <title>. The head tag is used between <html> and <body> tags.   Format: <html> <head>.....head sections....</head><body>......body of HTML........</body></html>   Example: <html> <head><title>Basic tag</title></head>>body> this is my first page </body></html>
<title> tag Title tag defines the title of the document which appears in the Title bar of the explorer window. Title tag is used in between <head> and </head> tag because it is title tag is section of <head> tag.   Format: <html> <head><title>Title of the Page</title></head><body>.....body of HTML......</body></html>   Example: <html> <head><title>Basic tag</title></head><body> this is my first page </body></html>
<body> tag The body element defines the document's body. It contains all the contents of the document (like text, images, colors, graphics etc).   Format: <body bgcolor =&quot;color_name&quot; background=&quot;file_name&quot; links=&quot;color_name&quot; text=&quot;color_name&quot;>    Example: <body bgcolor =&quot;red&quot; background=&quot;c:mgky.jpg&quot; links=&quot;blue&quot; text=&quot;black&quot;>  
<hn>...</hn> Heading Tags These tags are used to display headings in an HTML document. through these tags you can increase the size of the text. In these tags <h1> tag defines the largest header & <h6> defines smallest.   These tags are <h1> </h1>, <h2> </h2>, <h3> </h3>, <h4> </h4>, <h5> </h5>   Format: <hn>.............. text..............</hn>   Example: <h1> this is my first page </h1> or <h1 align=&quot;right&quot;>text</h1> Attribute of the <hn> Tag.
<p>.....</p> Paragraph Tag This tag is used for creating the paragraph in the web page. It is used inside the body of file.   Format: <p>......longtext..........</p>   Example: <p> This is the test of paragraph tag........</p>   In this tag align attribute can be used.
<br> tag The <br> tag inserts a single line break. Use the <br> tag to enter blank lines, not to separate paragraphs. This tag has no end tag.   Format text........<br> .....text   Example: This is a break <br> in the line.
<hr> tag The <hr> tag inserts a horizontal rule. The <hr> tag has no end tag.   Format: text......<hr> ......text or text......<hr align=&quot; &quot; size=&quot; &quot; width=&quot; &quot;>.... text   Example: This is the test of the tag <hr>  
<!--...--> Comment Tag The comment tag is used to insert a comment in the source code. A comment will be ignored by the browser. You can use comments to explain your code, which can help you when you edit the source code at a later date.   You can also store program-specific information inside comments. In this case they will not be visible for the user, but they are still available to the program. A good practice is to comment the text inside the script and style elements to prevent older browsers, that do not support scripting or styles, from showing it as plain text.   Format: <!-- add here your comments these will not be displayed -->   Example: <!-- add here your comments these will not be displayed -->
 
Example for basic command: <html> <head> <title>In body tag</title> </head> <body bgcolor=&quot;lightyellow&quot; text=&quot;red&quot;> In body tag, background color is defined as black and textcolor is defined as the white. <hr> <h1> this is the h1 header </h1> <h2> this is the h2header </h2> <h3> this is the h3 header </h3> <h4> this is the h4 header </h4> <h5> this is the h5 header </h5> <hr>This is the use of &quot;Break&quot; tag<br> and you will see use of more tags<br> <hr> look at the use of comment tag it is<!-- It is a comment line --> good <hr><p> This is the use of paragraph tag and you will see use of more tags </p> The effect of &quot;hr&quot; tag <br> <hr> </body> </html>
Character Format Tags   These tags are used for the formatting of the text such as underline, bold, italic, font, size, color of the text. All these character formatting Tags are defined in the table shown below:    Char Format Tag  Description <b>  Displays bold text <i> Displays italic text   <tt> Renders as teletype or mono spaced text   <u> Displays underlined text   <em> Displays emphasized text     <big> Displays big text   <small> Displays small text   <strong> Displays strong text   <sub> Displays subscripted text <sup> Displays superscripted text <bdo> Defines the direction of text display <font> Defines the font face, size, and color of  text
<b> Tag The <b> tag is used to make the text bold.   Format: <b> ................text.........</b>   <i> Tag The <i> tag displays the italic text.   Format: <i> ................text.........</i>;     <tt> Tag The <tt> tag displays the typewriter text.   Format: <tt> ................text.........</tt>  
<u> Tag The <u> tag displays the underlined text.   Format: <u> ................text.........</u>   <em> Tag The <em> tag displays the emphasized text.   Format: <em> ................text.........</em>     <big> Tag The <big> tag displays the big text.   Format: <big> ................text.........</big>  
<small> Tag The <small> tag displays the small text.   Format: <small> ................text.........</small>   <strong> Tag The <strong> tag displays strong text.   Format: <strong> ................text.........</strong>   <sub> Tag The <sub> tag displays text in subscripted format.   Format: <sub> ................text.........</sub>
<sup> Tag The <sup> tag displays superscripted text.   Format: <sup> ................text.........</sup>     <bdo> Tag The <bdo> tag defines the direction of the text.    Format: <bdo> ................text.........</bdo>     <font> Tag The <font> tag defines the font, color, size of the text.   Format: <font face=&quot;font_name&quot; color=&quot;color_name&quot; size=&quot;number&quot;>........text.........</font>   
Example: for character tag: <html>< body>  <b>This text is bold</b> <br>  <strong> This text is strong </strong> <br>  <big> This text is big </big> <br>  <em> This text is emphasized </em> <br>  <i> This text is italic </i> <br>  <small> This text is small </small> <br>  <u> this is underlined text </u> <br>  This text contains  <sub> subscript </sub>  <br>  This text contains  <sup> superscript </sup>  <br> The use of font tag  <font face=&quot;arial&quot; size=&quot;3&quot; color=&quot;green&quot;>  this is use of font tag</font> </body> html>
 
Output Tags   These tags are often used to display computer/programming code. You might be surprised for &quot;how to display the text containing the spaces, line breaks, programming codes, sample text, define variable&quot;. Do not worry, because in this chapter we are going to show you how easily you can do easily.    So lets start with these tags:    Tag Description <pre> Defines preformatted text <code> Defines computer code text <tt> Defines teletype text <kbd> Defines keyboard text <var> Defines a variable <dfn> Defines a definition term <bdo> Defines the direction of text display <samp> Defines sample computer code  
<pre>.........</pre>Tag This is preformatted text. It preserves both spaces and line breaks. The pre tag is good for displaying computer code.   Format: <pre> .....text.....</pre>   Example: <pre> for i = 1 to 10 print i next i </pre>   Output: for i = 1 to 10 print i next i
<code> .....text ......</code> Tag  This tag is also used to display the computer code. But better you use <pre> tag.   Format: <code> .....text.....</code>      <kbd>.....Keyboard Input......</kbd> Tag  This tag displays the Keyboard Input.   Format: <kbd> ........ Keyboard Input......</kbd>      <tt>......text....</tt> Tag  This tag displays the typewriter text.   Format: <tt> .....text.....</tt>
<samp>....sample text...</samp> Tag  This tag displays the sample text.   Format: <samp> .....sample text.....</samp>      <var> computer variable </var>  This tag defines the computer variable.   Format: <var> computer variable </var>   <dfn> definition term </dfn>  this tag is used for definition term.
<html>  <body> <code>Computer code</code>  <br>  <kbd>Keyboard input</kbd>  <br>  <tt>Teletype text</tt>  <br>  <samp>Sample text</samp>  <br>  <var>Computer variable</var>  <br>  <p>  <b>Note:</b>  These tags are often used to display computer/programming code.  </p>  </body>  </html>
 

More Related Content

What's hot (14)

Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
 
Prabu html
Prabu htmlPrabu html
Prabu html
 
Html part2 (1)
Html part2 (1)Html part2 (1)
Html part2 (1)
 
LAMP_TRAINING_SESSION_3
LAMP_TRAINING_SESSION_3LAMP_TRAINING_SESSION_3
LAMP_TRAINING_SESSION_3
 
Understanding THML
Understanding THMLUnderstanding THML
Understanding THML
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Html Intro2
Html Intro2Html Intro2
Html Intro2
 
Html ppt
Html pptHtml ppt
Html ppt
 
The Basics of (X)HTML Tags
The Basics of (X)HTML TagsThe Basics of (X)HTML Tags
The Basics of (X)HTML Tags
 
Understandable Content and Controls
Understandable Content and ControlsUnderstandable Content and Controls
Understandable Content and Controls
 
Html
HtmlHtml
Html
 
BasicHTML
BasicHTMLBasicHTML
BasicHTML
 
Html
HtmlHtml
Html
 
Intro to html
Intro to htmlIntro to html
Intro to html
 

Similar to Htmltag.ppt (20)

Html TAGS
Html TAGSHtml TAGS
Html TAGS
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Html
HtmlHtml
Html
 
Html
HtmlHtml
Html
 
Learning HTML
Learning HTMLLearning HTML
Learning HTML
 
Html intro
Html introHtml intro
Html intro
 
Diva
DivaDiva
Diva
 
Html
HtmlHtml
Html
 
Tags in html
Tags in htmlTags in html
Tags in html
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
HTML & CSS
HTML & CSSHTML & CSS
HTML & CSS
 
Html part2
Html part2Html part2
Html part2
 
HTML Fundamentals
HTML FundamentalsHTML Fundamentals
HTML Fundamentals
 
Html text formatting
Html text formattingHtml text formatting
Html text formatting
 
Html ppt
Html pptHtml ppt
Html ppt
 
Html
HtmlHtml
Html
 
KMUTNB - Internet Programming 3/7
KMUTNB - Internet Programming 3/7KMUTNB - Internet Programming 3/7
KMUTNB - Internet Programming 3/7
 
Module 2
Module 2Module 2
Module 2
 
Html Ppt
Html PptHtml Ppt
Html Ppt
 
Intro Html
Intro HtmlIntro Html
Intro Html
 

More from MAGNA COLLEGE OF ENGINEERING (7)

Ajax.ppt
Ajax.pptAjax.ppt
Ajax.ppt
 
Php.ppt
Php.pptPhp.ppt
Php.ppt
 
Css
CssCss
Css
 
Appache.ppt
Appache.pptAppache.ppt
Appache.ppt
 
My sql.ppt
My sql.pptMy sql.ppt
My sql.ppt
 
Rajavel resume
Rajavel  resumeRajavel  resume
Rajavel resume
 
Basic 50 linus command
Basic 50 linus commandBasic 50 linus command
Basic 50 linus command
 

Recently uploaded

Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetEnjoy Anytime
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Hyundai Motor Group
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 

Recently uploaded (20)

Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 

Htmltag.ppt

  • 1.
  • 2.
  • 3. Basic HTML Tags   Tag Description <html> Defines an HTML document <head> Defines information about the document <title> Defines the document title <body> Defines the document's body <h1> to <h6> Defines header 1 to header 6 <p> Defines a paragraph <br> Inserts a single line break <hr> Defines a horizontal rule <!--> Defines a comment
  • 4. <html>tag This element tells a browser that this is an HTML document. This tag is defined at the top of the HTML file and at the end of file.   Format: <html> <body>..............body of HTML.............</body></html>   Example: <html> <body> this is my first page </body></html>
  • 5. <head> tag The head tag defines information about the document. The browser does not display the &quot;head information&quot; to the user. The following tags can be in the head section: <base>, <link>, <meta>, <script>, <style>, and <title>. The head tag is used between <html> and <body> tags.   Format: <html> <head>.....head sections....</head><body>......body of HTML........</body></html>   Example: <html> <head><title>Basic tag</title></head>>body> this is my first page </body></html>
  • 6. <title> tag Title tag defines the title of the document which appears in the Title bar of the explorer window. Title tag is used in between <head> and </head> tag because it is title tag is section of <head> tag.   Format: <html> <head><title>Title of the Page</title></head><body>.....body of HTML......</body></html>   Example: <html> <head><title>Basic tag</title></head><body> this is my first page </body></html>
  • 7. <body> tag The body element defines the document's body. It contains all the contents of the document (like text, images, colors, graphics etc).   Format: <body bgcolor =&quot;color_name&quot; background=&quot;file_name&quot; links=&quot;color_name&quot; text=&quot;color_name&quot;>   Example: <body bgcolor =&quot;red&quot; background=&quot;c:mgky.jpg&quot; links=&quot;blue&quot; text=&quot;black&quot;>  
  • 8. <hn>...</hn> Heading Tags These tags are used to display headings in an HTML document. through these tags you can increase the size of the text. In these tags <h1> tag defines the largest header & <h6> defines smallest.   These tags are <h1> </h1>, <h2> </h2>, <h3> </h3>, <h4> </h4>, <h5> </h5>   Format: <hn>.............. text..............</hn>   Example: <h1> this is my first page </h1> or <h1 align=&quot;right&quot;>text</h1> Attribute of the <hn> Tag.
  • 9. <p>.....</p> Paragraph Tag This tag is used for creating the paragraph in the web page. It is used inside the body of file.   Format: <p>......longtext..........</p>   Example: <p> This is the test of paragraph tag........</p>   In this tag align attribute can be used.
  • 10. <br> tag The <br> tag inserts a single line break. Use the <br> tag to enter blank lines, not to separate paragraphs. This tag has no end tag.   Format text........<br> .....text   Example: This is a break <br> in the line.
  • 11. <hr> tag The <hr> tag inserts a horizontal rule. The <hr> tag has no end tag.   Format: text......<hr> ......text or text......<hr align=&quot; &quot; size=&quot; &quot; width=&quot; &quot;>.... text   Example: This is the test of the tag <hr>  
  • 12. <!--...--> Comment Tag The comment tag is used to insert a comment in the source code. A comment will be ignored by the browser. You can use comments to explain your code, which can help you when you edit the source code at a later date.   You can also store program-specific information inside comments. In this case they will not be visible for the user, but they are still available to the program. A good practice is to comment the text inside the script and style elements to prevent older browsers, that do not support scripting or styles, from showing it as plain text.   Format: <!-- add here your comments these will not be displayed -->   Example: <!-- add here your comments these will not be displayed -->
  • 13.  
  • 14. Example for basic command: <html> <head> <title>In body tag</title> </head> <body bgcolor=&quot;lightyellow&quot; text=&quot;red&quot;> In body tag, background color is defined as black and textcolor is defined as the white. <hr> <h1> this is the h1 header </h1> <h2> this is the h2header </h2> <h3> this is the h3 header </h3> <h4> this is the h4 header </h4> <h5> this is the h5 header </h5> <hr>This is the use of &quot;Break&quot; tag<br> and you will see use of more tags<br> <hr> look at the use of comment tag it is<!-- It is a comment line --> good <hr><p> This is the use of paragraph tag and you will see use of more tags </p> The effect of &quot;hr&quot; tag <br> <hr> </body> </html>
  • 15. Character Format Tags   These tags are used for the formatting of the text such as underline, bold, italic, font, size, color of the text. All these character formatting Tags are defined in the table shown below:   Char Format Tag Description <b> Displays bold text <i> Displays italic text <tt> Renders as teletype or mono spaced text <u> Displays underlined text <em> Displays emphasized text <big> Displays big text <small> Displays small text <strong> Displays strong text <sub> Displays subscripted text <sup> Displays superscripted text <bdo> Defines the direction of text display <font> Defines the font face, size, and color of text
  • 16. <b> Tag The <b> tag is used to make the text bold.   Format: <b> ................text.........</b>   <i> Tag The <i> tag displays the italic text.   Format: <i> ................text.........</i>;     <tt> Tag The <tt> tag displays the typewriter text.   Format: <tt> ................text.........</tt>  
  • 17. <u> Tag The <u> tag displays the underlined text.   Format: <u> ................text.........</u>   <em> Tag The <em> tag displays the emphasized text.   Format: <em> ................text.........</em>     <big> Tag The <big> tag displays the big text.   Format: <big> ................text.........</big>  
  • 18. <small> Tag The <small> tag displays the small text.   Format: <small> ................text.........</small>   <strong> Tag The <strong> tag displays strong text.   Format: <strong> ................text.........</strong>   <sub> Tag The <sub> tag displays text in subscripted format.   Format: <sub> ................text.........</sub>
  • 19. <sup> Tag The <sup> tag displays superscripted text.   Format: <sup> ................text.........</sup>     <bdo> Tag The <bdo> tag defines the direction of the text.   Format: <bdo> ................text.........</bdo>     <font> Tag The <font> tag defines the font, color, size of the text.   Format: <font face=&quot;font_name&quot; color=&quot;color_name&quot; size=&quot;number&quot;>........text.........</font>  
  • 20. Example: for character tag: <html>< body> <b>This text is bold</b> <br> <strong> This text is strong </strong> <br> <big> This text is big </big> <br> <em> This text is emphasized </em> <br> <i> This text is italic </i> <br> <small> This text is small </small> <br> <u> this is underlined text </u> <br> This text contains <sub> subscript </sub> <br> This text contains <sup> superscript </sup> <br> The use of font tag <font face=&quot;arial&quot; size=&quot;3&quot; color=&quot;green&quot;> this is use of font tag</font> </body> html>
  • 21.  
  • 22. Output Tags   These tags are often used to display computer/programming code. You might be surprised for &quot;how to display the text containing the spaces, line breaks, programming codes, sample text, define variable&quot;. Do not worry, because in this chapter we are going to show you how easily you can do easily.   So lets start with these tags:   Tag Description <pre> Defines preformatted text <code> Defines computer code text <tt> Defines teletype text <kbd> Defines keyboard text <var> Defines a variable <dfn> Defines a definition term <bdo> Defines the direction of text display <samp> Defines sample computer code  
  • 23. <pre>.........</pre>Tag This is preformatted text. It preserves both spaces and line breaks. The pre tag is good for displaying computer code.   Format: <pre> .....text.....</pre>   Example: <pre> for i = 1 to 10 print i next i </pre>   Output: for i = 1 to 10 print i next i
  • 24. <code> .....text ......</code> Tag This tag is also used to display the computer code. But better you use <pre> tag.   Format: <code> .....text.....</code>     <kbd>.....Keyboard Input......</kbd> Tag This tag displays the Keyboard Input.   Format: <kbd> ........ Keyboard Input......</kbd>     <tt>......text....</tt> Tag This tag displays the typewriter text.   Format: <tt> .....text.....</tt>
  • 25. <samp>....sample text...</samp> Tag This tag displays the sample text.   Format: <samp> .....sample text.....</samp>     <var> computer variable </var> This tag defines the computer variable.   Format: <var> computer variable </var>   <dfn> definition term </dfn> this tag is used for definition term.
  • 26. <html> <body> <code>Computer code</code> <br> <kbd>Keyboard input</kbd> <br> <tt>Teletype text</tt> <br> <samp>Sample text</samp> <br> <var>Computer variable</var> <br> <p> <b>Note:</b> These tags are often used to display computer/programming code. </p> </body> </html>
  • 27.