HTML - Basic Structure

HTML Basic Structure

Inside an HTML document, all elements should be arranged in this particular order and structure.

  • All html document starts with <!DOCTYPE html> element which declares that this is an HTML5 Document.
  • Next is the HTML document root element that starts with <html> and ends with </html>
  • Next is the element that contains information (meta data) about the HTML document. It starts with <head> and ends with <head>. The title and other information are placed inside here.
  • Lastly is where all the visible element on the webpage is being place. It starts with <body> and ends with </body>. The headings, paragraphs and other elements are placed inside here.
note
NOTE:

Do not interchange the structure, else you might get undesirable result.

ADVERTISEMENTS

LEARNING IS A CONTINOUS PROCESS - PRACTICE MAKES PERFECT