The following figure represents the HTML Structure.
HTML Structure consists of mainly three parts
– Doctype Declaration
– Head Section
– Body section
All the above three parts i.e the HTML Structure contains HTML Tags (Refer this, if you’re not aware of HTML Tags)
- Declaration of <!DOCTYPE>
The declaration of <!DOCTYPE> tag helps the web browser to display a web document or web page correctly.
There are different document types available on the web.
To display a document in a correct format, the browser must know both type and version of the document.
The doctype declaration is not at all case sensitive.
A doctype can be declared in following ways
<!doctype html> or <!Doctype Html> or <!DOCTYPE html> or <!DOCTYPE HTML>
- The content between <html> and </html> describes the HTML document.
- The content between <head> and </head> provides information about the document.
- The content between <title> and </title> provides a title for the document.
- The content between <body> and </body> describes the visible page content.
- The content between <h1> and </h1> describes a heading.
- The content between <p> and </p> describes a paragraph.