Basic Structure of HTML5
Today I am trying to explain the basic structure of HTML5. This post is for beginners and anybody who can use this post as snippet for future use. You can use any text editor to create this code or any rich html editors for the same. Before going to basic structure of html5 let me explain what is html5 in short.
What is HTML5?
HTML5 is the latest standard for HTML.
What is Basic Structure of HTML5?
<!DOCTYPE html>
<html>
<head>
- - - - - - - -
</head>
<body>
- - - - - - - -
</body>
</html>
The above snippet is a simple and basic html5 structure. When i say Basic that means your webpage can be called as html5 web page. In the above code we did not used any other HTML5 new Tags but still we have created html5 web page with one line of code and this document can be called as HTML5 document (webpage). We achieved this with the one line of code that is Document Type (DOCTYPE).
What is Document Type?
In above code we used <!DOCTYPE html> and this has to be first line of code of html5 document. When you request any web page that page must be validated before displaying in web browser and the <!DOCTYPE html> Document Type helps validators to determine what validation rules needs to use when validating the code. The validation is very important to validate your HTML5 document and the valid code works across all browsers.
Cheers for today and tomorrows technology.
What is HTML5?
HTML5 is the latest standard for HTML.
What is Basic Structure of HTML5?
<!DOCTYPE html>
<html>
<head>
- - - - - - - -
</head>
<body>
- - - - - - - -
</body>
</html>
The above snippet is a simple and basic html5 structure. When i say Basic that means your webpage can be called as html5 web page. In the above code we did not used any other HTML5 new Tags but still we have created html5 web page with one line of code and this document can be called as HTML5 document (webpage). We achieved this with the one line of code that is Document Type (DOCTYPE).
What is Document Type?
In above code we used <!DOCTYPE html> and this has to be first line of code of html5 document. When you request any web page that page must be validated before displaying in web browser and the <!DOCTYPE html> Document Type helps validators to determine what validation rules needs to use when validating the code. The validation is very important to validate your HTML5 document and the valid code works across all browsers.
Note : Our Favorite .. hum?? MS-IE6 also can recognize <!DOCTYPE > Tag and Cross Platform
Cheers for today and tomorrows technology.
Comments
Post a Comment