What is exactly HTML5?
- W3C: all 100-plus of these specifications under the moniker “HTML5”
- A unifying concept for that change
Not as XHTML, HTML5 has lots of flexibility and would support the followings:
–Uppercase tag names.
–Quotes are optional for attributes.
–Attribute values are optional.
–Closing empty elements are optional.
Some rules for HTML5 were established:
–Reduce the need for external plugins (like Flash)
–Better error handling
–More markup to replace scripting
–HTML5 should be device independent
–The development process should be visible to the public
What is HTML5 Semantics?
–Elements, attributes, and attribute values in HTML : Have certain meanings (semantics). For example, the ol element represents an ordered list, and the lang attribute represents the language of the content.
–Correct HTML5 markup allow it to be used in wide variety of context.
–Simple example: Same Web page written by an author who only considered desktop computer Web browsers can be viewed by a small browser on a mobile phone.
[Because HTML conveys meaning, rather than presentation]
–Authors must not use elements, attributes, or attribute values for purposes other than their appropriate intended semantic purpose, as doing so prevents software from correctly processing the page.