HTML Headings Examples




HTML Headings Examples

<!DOCTYPE html>
<html>

   <head>
      <title>HTML Headings Example</title>
   </head>
	
   <body>
	
      <h1>Tutorialsroot Heading 1</h1>
      <h2>Tutorialsroot Heading 2</h2>
      <h3>Tutorialsroot Heading 3</h3>
      <h4>Tutorialsroot Heading 4</h4>
      <h5>Tutorialsroot Heading 5</h5>
      <h6>Tutorialsroot Heading 6</h6>

   </body>
	
</html>

Output

HTML Horizontal Rules Example

<!DOCTYPE html>
<html>

   <head>
      <title>HTML Horizontal Rules Example</title>
   </head>
	
   <body>
	
      <h1>This is heading 1</h1>
      <p>This is some text</p>
      <hr>

      <h2>This is heading 2</h2>
      <p>This is some other text</p>
      <hr>

      <h2>This is heading 2</h2>
      <p>This is some other text</p>
      <hr>
		
      <h3>This is heading 2</h3>
      <p>This is some other text</p>

   </body>
	
</html>

Output

HTML head Example

<!DOCTYPE html>
<html>

   <head>
      <title>HTML Head Example</title>
      <meta charset="UTF-8">
   </head>
	
   <body>
	
      <p>This is some other text</p>
      <p>This is some other text</p>

   </body>
	
</html>

Output