EXTRA MARKUP
different versions of HTML:
| HTML4 | HTML5 |
|---|---|
| a few elements added in HTML5 | web page authors do not need to close all tags, and new elements and attributes will be introduced |
| had some presentational elements to control the appearance of pages | ensure that users with older browsers will be able to view your pages |
There are many HTML elements which have been modified or removed from HTML5. Some of them are listed below:
| Element | In HTML5 |
|---|---|
| < applet> | Changed to |
| < acronym> | Changed to |
| < dir> | Changed to <ul> |
| < frameset> | Removed |
| < frame> | Removed |
| < noframes> | Removed |
| < strike> | No new tag. CSS is used for this |
| < big> | No new tag. CSS is used for this |
| < basefont> | No new tag. CSS is used for this |
| < font> | No new tag. CSS is used for this |
| < center> | No new tag. CSS is used for this |
| < tt> | No new tag. CSS is used for this |
DOCTYPES tell browsers which version of HTML you are using. You can add comments to your code between the < !– and –> markers. The id and class attributes allow you to identify particular elements. The id and class attributes allow you to identify particular elements. The id and class attributes allow you to identify particular elements. < meta> tag allows you to supply all kinds of information about your web page. Escape characters are used to include special characters in your pages such as <, >, and ©.
_ _
HTML5 Layout
HTML5 is introducing a new set of elements that help define the structure of a page.