Html Basic Stracture

    1100620 VIEW 1 0

An HTML Document is mainly divided into two parts:

  • HEAD: This contains the information about the HTML document. For Example, Title of the page, version of HTML, Meta Data etc.     
  • BODY: This contains everything you want to display on the Web Page.

The code that is a must for every webpage to have:

<!DOCTYPE html>

<html>

    <head>

        <title>    

        </title>

    </head>

    <body>    

    </body>

</html>

 Explanation of tag used in the above HTML code:

<!DOCTYPE html>: This tag is used to tells the HTML version. that the version is HTML 5.
<html>: This is called HTML root element and used to wrap all the code.
<head>: Head tag contains metadata, title, page CSS etc.

All the HTML elements that can be used inside the <head> element are:
<style>                                <title>
<base>                                <noscript>
<script>                                <meta>

<body>: Body tag is used to enclose all the data which a web page has from texts to links. All the content that you see rendered in the browser is contained within this element.
All HTML documents must start with a document type declaration: <!DOCTYPE html>.
The HTML document itself begins with <html> and ends with </html>.  
The visible part of the HTML document is between <body> and </body>.