Attractions: HTML5 and XHTML5
Sample of the pdf document :
1.
Introduction :
HTML is being revised to include more support for rich internet
applications (RIA), mobile computing, and other recent developments. The new revision will also include better
support for sections, sidebars, etc. The
revision of HTML is being developed by the WHATWG or Web Hypertext Applications
Technology Working Group. http://www.whatwg.org/ (Just to make life a little more
complicated, HTML5 and XHTML5 will not include all the new features of XHTML2.0
– notably not the ability to created a link on any element.)
The new version will be called HTML5 and it
may be ‘served’ or ‘serialized’ as either HTML (which, of course, is more
forgiving) or as XHTML (more complex, but also has support for namespaces,
MathML etc.) These two ways are referred
to as HTML5 and XHTML5.
HTML5 may be used now (just include the
<!doctype html> tag), but most browsers are not yet supporting all of
it. Some features (e.g. the canvas for
bit maps) are supported, and HTML5 will become the standard when it is
supported by at least two browsers.
The next sections of this document tell you
what you need to know for HTML5 pages, for XHTML5 pages, and provide a list of
references. That list is valuable as
this is a work-in-progress. Until
X/HTML5 is the standard I am continuing to write XHTML1.0 without the <?xml
….> processing instruction.
2. HTML5 documents
begin
<!DOCTYPE html>
<html lang=’en’>
<html lang=’en’>
You may write either <!DOCTYPE or <!doctype
in the first tag, but (unlike HTML4.01) you must include a doctype. This will also guarantee that your browser
will use the most recent version of HTML.
Anything transmitted with the MIME type text/html will be rendered as
HTML5. The w3c recommends this for most
authors as it will be compatible with older browsers. (see section 1.4.1 in http://www.w3.org/TR/html5/introduction.html
).
The lang
attribute is optional and is specified in the html tag as lang=’en’. (If not specified, it defaults to the lang
value of the parent.)
The charset
is specified as the FIRST element after <head>
<meta charset =’utf-8’>
3. XHTML5 documents begin
<html
xmlns=’http://www.w3.org/199/xhtml’
xml:lang=’en’>
Anything transmitted with MIME type application/xhtml+xml or application/xhtml or application/xml will
be processed with an XML processor in the web – i.e. rendered as XHTML. (see same reference.)
In HTML5, the DOM now is more than a way to
manipulate the page (an API); each element in the DOM now has a meaning or semantics attached to it.
Click here for Download PDF / FREE
this is a great html tutorial, thanks for sharing.
RépondreSupprimer