HTML BASIC TO ADVANCE ( NOTES )
HTML5 is the next major revision of the HTML standard superseding HTML 4.01, XHTML 1.0, and XHTML 1.1. HTML5 is a standard for structuring and presenting content on the World Wide Web.
New Features
HTML5 introduces a number of new elements and attributes that can help you in building modern websites. Here is a set of some of the most prominent features introduced in HTML5.
New Semantic Elements − These are like <header>, <footer>, and <section>.
Forms 2.0 − Improvements to HTML web forms where new attributes have been introduced for <input> tag.
Persistent Local Storage − To achieve without resorting to third-party plugins.
WebSocket − A next-generation bidirectional communication technology for web applications.
Server-Sent Events − HTML5 introduces events which flow from web server to the web browsers and they are called Server-Sent Events (SSE).
Canvas − This supports a two-dimensional drawing surface that you can program with JavaScript.
Audio & Video − You can embed audio or video on your webpages without resorting to third-party plugins.
Geolocation − Now visitors can choose to share their physical location with your web application.
The DOCTYPE
DOCTYPEs in older versions of HTML were longer because the HTML language was SGML based and therefore required a reference to a DTD.
HTML 5 authors would use simple syntax to specify DOCTYPE as follows −
<!DOCTYPE html>
Character Encoding
HTML 5 authors can use simple syntax to specify Character Encoding as follows −
<meta charset = "UTF-8">
DOCTYPEs in older versions of HTML were longer because the HTML language was SGML based and therefore required a reference to a DTD.
HTML 5 authors would use simple syntax to specify DOCTYPE as follows −
<!DOCTYPE html>
Character Encoding
HTML 5 authors can use simple syntax to specify Character Encoding as follows −
<meta charset = "UTF-8">
Deprecated Tags (Removed Tags from HTML ) :
The following elements are not available in HTML5 anymore and their function is better handled by CSS −
<acronym> - Defines an acronym
<applet> - Defines an applet
<basefont> - Defines an base - font for the page.
<big> - Defines big text
<center> - Defines centered text
<dir> - Defines a directory list
<font> - Defines text font, size, and color
<frame> - Defines a frame
<frameset> - Defines a set of frames
<isindex> - Defines a single-line input field
<noframes> - Defines a noframe section
<s> - Defines strikethrough text
<strike> - Defines strikethrough text
<tt> - Defines teletype text
<u> - Defines underlined text
0 Comments