HTML Page Structure
HTML Page Structure
HTML
The initial version of HTML was simple and there was no strict syntax rules .i.e. an HTML tag name
can have a small letter or a capital letter. Even, it was not mandatory to close the HTML tag.
A simple HTML page is given below, where we have used P tag as capital.
1. <html>
2. <head>
3. <title>Html document</title>
4. </head>
5. <body>
6. <P>Your first HTML page</P>
7. </body>
8. </html>
XHTML
XHTML maintenance is easier as compared to HTML because XHTML is based upon XML and
XML syntax rules are strict as compared to HTML. Some of the rules are:
https://www.dotnettricks.com/player/html/html-introduction-getting-started 1/2
3/30/2020 Playing | Introduction to HTML
HTML5
HTML5 is the latest standard for HTML. HTML5 is widely accepted to build your modern web
sites. HTML5 follows the strict culture of XHTML along with the following benefits :
Cleaner/Easier markup
Consistency
Supports rich media elements
1. <!DOCTYPE html>
2.
3. <html>
4. <title>Html5 document</title>
5. </head>
6. <body>
7. <p>Your first HTML5 page</p
8. </body>
9. </html>
https://www.dotnettricks.com/player/html/html-introduction-getting-started 2/2