HTML HEADINGS

Fazzey's world

HTML Headings

  • The title of the document you want to see at the top of the webpage.
  • There are six levels of headers in HTML. H1 is the highest (or most important) level and H6 is the tiniest heading on the page. 
  • The heading elements are H1, H2, H3, H4, H5, and H6. is shown in HTML headers.

    Example:

      
      <!DOCTYPE html>
      <html>  
      <body>
      <h1>GOCOURSE</h1
      <h2>GOCOURSE</h2>
      <h3>GOCOURSE</h3>
      <h4>GOCOURSE</h4
      <h5>GOCOURSE</h5>
      <h6>GOCOURSE</h6>
      </body>  
      </html>


    Output:



    Bigger Heading:

    The default size for an HTML heading. However, you may use the CSS font-size property to determine the size for any heading using the style attribute.

    Example:


      <!DOCTYPE html>
      <html
      <body
      <h1 style="font-size:50px;">Heading 1</h1
      <p>HTML is the standard markup language for creating Webpages.</p
      </body
      </html>


    Output:


    Our website uses cookies to enhance your experience. Learn More
    Accept !

    GocourseAI

    close
    send