HTML Elements

Element Syntax In HTML :


  • An HTML aspect starts with a begin tag / opening tag.
  • An HTML aspect stops with an end tag / shutting tag.
  • The aspect material is everything involving the begin and the finish tag.
  • Some HTML aspects have clear material.
  • Clear aspects are closed in the begin tag.
  • Most HTML aspects may have characteristics.

    Empty HTML Elements :

    HTML things with no material are named clear elements.
    <br> is an empty aspect without a final tag (the <br> tag identifies a line break).

    Document Example Of HTML :

    <!DOCTYPE html>
    <html>

    <body>
    <p>This is my first paragraph.</p>
    </body>

    </html>


    The <p> factor becomes a paragraph in the HTML document.
    The factor has a begin label <p>  and a conclusion label</p>.
    The factor content is: This is my first paragraph.

    The element <body>describes the body of the HTML document.
    The element has a begin <body>  end finish with </dody>.
    The element content is yet another HTML element .


  • Leave a Reply

    Your email address will not be published. Required fields are marked *