HTML Basics

  1. HTML Boiler Plate

    The starting code or the boiler plate:

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1>0">
        <title>Document</title>
    </head>
    <body>
        
    </body>
    </html>
  2. Headings:

    There are six headings available in HTML, H1 is the largest among all, and H6 is the smallest.

    <h1> I am h1 </h1>
    <h2> I am h2 </h2>
    <h3> I am h3 </h3>
    <h4> I am h4 </h4>
    <h5> I am h5 </h5>
    <h6> I am h6 </h6>
  3. Container Tag

    Container tags are the tags that contain some data such as text, image, etc. There are several container tags in HTML.

    Div

    <div> tag div tag or division tag is used to make blocks or divisions in the document.

    <div> tag

    <div> This is div block </div>