Basics of HTML And CSS - Part 2

You can read the previous part of the series:

HTML Formatting

  • Bold
  • Italic
  • Subscripts
  • Superscripts
  • Strong
  • Emphasized
  • Marked
  • Insert
  • Delete

HTML Bold tag

Bold tags are defined with <b></b>.

Example

  1. <Html>  
  2.   
  3. <head>  
  4.     <Title>  
  5.     </title>  
  6. </head>  
  7.   
  8. <Body> <b><p>Welcome to csharpcorner</p></b> </body>  
  9.   
  10. </html>  
Result

HTML Bold tag

HTML Italic Tag:

Italic tags are defined with <i></i>

Example:
  1. <Html>  
  2.   
  3. <Head>  
  4.     <Title>  
  5.     </title>  
  6. </head>  
  7.   
  8. <Body> <b><p>Welcome to csharpcorner</p></b> </body>  
  9.   
  10. </html>  
Result:

HTML Italic Tag

HTML Subscripts Tag

Subscripts tag is defined with <sub></sub>.

Example
  1. <Html>  
  2.   
  3. <Head>  
  4.     <Title>  
  5.     </title>  
  6. </head>  
  7.   
  8. <Body>  
  9.     <p>Welcome to <sub>csharpcorner</sub></p>  
  10. </body>  
  11.   
  12. </html>  
Result

HTML Subscripts Tag

HTML Superscripts Tag

Superscripts tag is defined with <sup></sup>.

Example:
  1. <html>
    <head>  
  2.     <title> </title>  
  3. </head>  
  4.   
  5. <body>  
  6.     <p>Welcome to <sup>csharpcorner</sup>2015</p>  
  7. </body>  
  8.   
  9. </html>  
Result

HTML Superscripts Tag

HTML Strong Tag

Strong tag is defined with <strong></strong>.

Example:
  1. <Html>  
  2.   
  3. <Head>  
  4.     <Title>  
  5.     </title>  
  6. </head>  
  7.   
  8. <body>  
  9.     <Strong><p>Welcome to csharpcorner2015</p></strong> </body>  
  10.   
  11. </html>  
Result:

HTML Strong Tag

HTML Emphasized Tag

Emphasized tags are defined with <em></em>.

Example:
  1. <Html>  
  2.   
  3. <Head>  
  4.     <Title>  
  5.     </title>  
  6. </head>  
  7.   
  8. <Body>  
  9.     <p><em>Welcome to csharpcorner</em></p>  
  10. </body>  
  11.   
  12. </html>  
Result:

HTML Emphasized Tag

HTML Marked tag:

Marked tag is defined with <Mark></Mark>.

Example:
  1. <Html>  
  2.   
  3. <Head>  
  4.     <Title>  
  5.     </title>  
  6. </head>  
  7.   
  8. <Body>  
  9.     <p> Welcome to  
  10.         <mark> csharpcorner</mark>  
  11.     </p>  
  12. </body>  
  13.   
  14. </html>  
Result:

HTML Marked tag

HTML Insert Tag

Insert tag is defined with <ins></ins>.

Example:
  1. <Html>  
  2.   
  3. <Head>  
  4.     <Title>  
  5.     </title>  
  6. </head>  
  7.   
  8. <Body>  
  9.     <p> Welcome to<ins> csharpcorner</ins ></p>  
  10. </body>  
  11. </html>  
Result:

HTML Insert Tag

HTML Delete Tag

Delete tag is defined with <del></del>.

Example:
  1. <Html>  
  2.   
  3. <Head>  
  4.     <Title>  
  5.     </title>  
  6. </head>  
  7.   
  8. <Body>  
  9.     <p> Welcome to<del> csharpcorner</del ></p>  
  10. </body>  
  11. </html>  
Result:

Result