CHAPTER 2
HTML, XHTML and HTML5S
4. Introduction
HTML, Hyper Text Markup Language is a markup language that adds layout to the
web content. Markup of any web page is the method of presenting texts and visual
information to the web user. Different visible colors, fonts, images, ete are different in
different browsers. HTML uses different tags to develop markups for a web page and
makes the web page readily available for different information
HTML had different versions and earlier version's of HTML up to HTML4 were simply
denoted by HTML. Now, the latest version of HTML is 5, which is referred to as HTMLS
and the reason for this to be notified is because of the difference that it holds with
traditional HTML4 or simply HTML.
HTML5 was developed to improve the previous version of HTML and to increase
compatibility level with different browsers at the same time. In the previous version of
HTML, executing JS was quite impossible but with HTMLS it became possible by the
introduction of JS web worker API. It also supports different media platform like videos and
audios with specific tags to execute them simply and more reliably. Accessing location is
very simple with HTML5 and is very platform independent. Parsing flexibility of HTMLS has
always been one of the added feature and advantages
XHTML, eXtensible Hyper Text Markup Language is similar to HTML with the only
difference being the addition of XML to solve browsers related issues of compatibility with
the presentation of information. This is a bit more stronger and advanced in comparison to
HTML in the way of presenting text and visuals. It was improved as an extension to HTML.
2. Document Metadata
The information that a document carries which may or may not be visible on the
document itself. It helps in locating information or document easier by filtering the search
Meta tags are generally hidden from the document which may fetch the information that
the user is not aware about. The major role that metadata is to hold the information about
when the document was created and the author of that document, the last modified and
accessed date, etc. It can be ignored or removed to add security to the information that are
to be kept private.
3. Basic structure of HTML
HTML is used to display texts, visuals, images, etc to the user via a web application
HTML is the root tag of HTML which allows other tags to be inside of it. The basic structure
of HTML has head and body. Head, generally holds title and meta data of the document
Title simply holds the content along with text and a image to be shown at the top of the
web application. Meta data hold the basic information about the document as discussed
earlier. DOCTYPE
‘stitle> Title here
web page content goes here.
By: eshte
Madindra Aryal we 1
lescription” content="We provide best quality service in our
Body contains the entire content to be presented to the user and it has different types of
tag to do that. Tags inside body also allows different programming languages to be
integrated to the document.
4. Section
Section is a tag in html that is used to specify the uniqueness of a specific content
from the rest of other content.
For example: