2 - Getting Started With HTML5
2 - Getting Started With HTML5
Activity
Working in groups of 2
students.
Differentiate between HTML,
XHTML and HTML5.
References:
i. http://www.informit.com/articl
es/article.aspx?p=1432776&
seqNum=6
ii. https://webkit.org/blog/68/un
derstanding-html-xml-and-xh
tml/
HTML – Hypertext Markup Language
HTML was the first Internet-based language developed
strictly for the web. Anything displayed in a browser is
organized via HTML—it is central to the web
development process and has evolved along with it.
HTML is static structure, organization, and content -
think of those early websites that were simple text with
some basic formatting. The way it works is through
“tags,” which tell a browser how to display specific
pieces of text.
At its most simple, an HTML tag tells a browser to make
the selected text bold, and the same goes for aligning
text, creating headlines, adding hyperlinks, and more.
HTML conts.
Once that basic HTML markup document is created, all
other dynamic aspects of a site can be embedded into
that file.
Example: A JavaScript program to add interactivity,
server-side scripts that connect the site to the database,
and CSS files that add stylistic elements. These files can
all be linked out of the HTML file, making it much like the
backbone of the site.
XHTML – Extensible of Markup Language
HTML is essentially identical to HTML4 (the fourth
iteration of HTML), but with elements of XML that extend
HTML’s capabilities.
XHTML came along before HTML5, right after HTML4,
solving for some cross-browser compatibility issues and
offering a “best of both worlds” scenario.
It is a bit stricter than HTML, providing more precise
standards and specifications for how a site’s data is
broken down and transmitted. This does make it a bit
unforgiving, however, and it can be tougher to debug.
XHTML conts.
XHTML is written in the same format as an XML
application, another descriptive markup language that
functions like a complement to HTML, specifically
handling how data is organized. (In markup, XML
describes elements of data, while HTML displays that
data.)
Much of what XHTML was designed to do has been
covered with the launch of HTML5, however, making it
nearly obsolete.
HTML5 – The Latest and Greatest Version
of HTML
HTML’s latest evolution, HTML5, is a versatile game -
changer.
HTML5 adds a ton of new features to the HTML
repertoire, making it able to do so much more on its own.
It is a hybrid of three types of code - HTML, CSS, and
JavaScript and by bundling these three components,
HTML5 lets developers work faster and more efficiently.
The resulting site architecture is agile, mobile-friendly,
and compatible with more browsers.
HTML5 conts.
So, how else is HTML5 different from HTML?
First, it touts one major advantage over its predecessor:
cross-platform application development.
It also solves problems that XHTML formerly addressed,
and boasts better compatibility across more browsers.
HTML5 has incorporated many new APIs and features
like drawing, video playback, and drag-and-drop - effects
that developers could only implement before with the
help of third-party plug-ins.
HTML, XHTML and HTML5 – In Summary