HTML Report Seminar
HTML Report Seminar
Submitted
in partial fulfillment
for the award of the Diploma/ Degree
On
………………………….
(Project Undertaken)
At
………………………………..
(Company)
Address (14 Bold)
Submitted to
Department of Computer Science
Shridhar University
Pilani
Submitted by
Rahul Joshi
2017BCA003
Of
Bachelors in Computer Application
IN
Vth Semester Computer Science
December 2019-2020
Acknowledgement
Next, I would thank Microsoft for developing such a wonderful tool like
MS Word. It helped my work a lot to remain error-free.
Last but clearly not the least, I would thank The Almighty for giving me
strength to complete my report on time.
II
Preface
I have made this report file on the topic Computer Networks; I have
tried my best to elucidate all the relevant detail to the topic to be
included in the report. While in the beginning I have tried to give a
general view about this topic.
III
ABSTRACT
HTML5 is currently under development as the next major revision of the HTML standard.
Like its immediate predecessors, HTML 4.01 and XHTML 1.1, HTML5 is a standard for
structuring and presenting content on the World Wide Web. The new standard incorporates
features like video playback and drag-and-drop that have been previously dependent on
third-party browser plug-ins such as Adobe Flash, Microsoft Silverlight, and Google Gears.
The HTML5 specification was adopted as the starting point of the work of the new HTML
working group of the World Wide Web Consortium (W3C) in 2007. According to the W3C
timetable, it is estimated that HTML5 will reach W3C Recommendation by late 2010.
The HTML5 syntax is no longer based on SGML despite the similarity of its markup.
HTML5 also incorporates Web Forms 2.0, another WHATWG specification.
IV
TABLE OF CONTENTS
Chapter 1. INTRODUCTION 1
Chapter 2. HTML5 STRUCTURE
2.1. Structure 3
Chapter 3. NEW TAGS IN HTML5 8
4.1. HTML5 difference with HTML4 13
4.2. New APIs in HTML5 15
Chapter 5. NEW FEATURES IN HTML5
5.1. Web Workers 16
5.2.Video & Audio 17
5.3.Canvas 19
5.4.Application Cache 20
5.5.Geolocation 21
5.6.Local Storage 22
5.7. Input Types 22
5.8.Drag & Drop 22
5.9.Placeholder Text 23
5.10. Form Autofocus 23
5.11. Microdata 23
5.12. Parsing 24
Chapter 6. LIMITATIONS OF HTML5 25
Chapter 7. IMPLEMENTATION 27
Chapter 8. CONCLUSION 29
REFERENCES 30
V
LIST OF FIGURES
Figure 1.1 HTML5 1
VI
LIST OF TABLES
Table 3.1. New Tags in HTML5 12
VII
CHAPTER 1
INTRODUCTION
The web is constantly evolving. New and innovative websites are being created every
day, pushing the boundaries of HTML in every direction. HTML 4 has been around for
nearly a decade now, and publishers seeking new techniques to provide enhanced
functionality are being held back by the constraints of the language and browsers. To
give authors more flexibility and interoperability, and enable more interactive and
exciting websites and applications, HTML 5 introduces and enhances a wide range of
features including form controls, APIs, multimedia, structure, and semantics.
Work on HTML 5, which commenced in 2004, is currently being carried out in a joint
effort between the W3C HTML WG and the WHATWG. Many key players are
participating in the W3C effort including representatives from the four major browser
vendors: Apple, Mozilla, Opera, and Microsoft; and a range of other organisations and
individuals with many diverse interests and expertise.
HTML5 is a specification for how the web's core language, HTML, should be
formatted and utilized to deliver text, images, multimedia, web apps, search forms, and
anything else you see in your browser. In some ways, it's mostly a core set of standards
that only web developers really need to know. In other ways, it's a major revision to
how the web is put together. Not every web site will use it, but those that do will have
better support across modern desktop and mobile browsers (that is, everything except
Internet Explorer).
1
History of HTML till now
• HTML 3.0 was developed in 1995
• In this year 1998 W3C stopped working on HTML and started working on XML
based HTML that is XHTML. And it is known as XHTML 1.0.It has completed in
the year 2000.
• In parallel with XHTML W3C worked on different language that is not compatible
to HTML and XHTML 1.0, known as XHTML2.
• Introduction of Xforms , a new technology which is meant to be the next generation
of web forms renewed interest in renovating HTML, rather than developing a brand
new language for web.
• HTML5 was first started by Mozilla, Apple, and Opera under a group called the
WHATWG (Web Hypertext Application Technology Working Group). In 2006
W3C showed an interest in HTML5 and in 2007 they created a working group to
work in HTML5 project. HTML5 is still under development.
2
CHAPTER 2
HTML5 STRUCTURE
2.1 STRUCTURE
HTML 5 introduces a whole set of new elements that make it much easier to structure
pages. Most HTML 4 pages include a variety of common structures, such as headers,
footers and columns and today, it is fairly common to mark them up using div elements,
giving each a descriptive id or class.
Diagram illustrates a typical two-column layout marked up using divs with id and class
attributes. It contains a header, footer, and horizontal navigation bar below the header.
The main content contains an article and sidebar on the right.
The use of div elements is largely because current versions of HTML 4 lack the
necessary semantics for describing these parts more specifically. HTML 5 addresses
this issue by introducing new elements for representing each of these different sections.
3
Fig 2.2: HTML5 document structure
The div elements can be replaced with the new elements: header, nav, section, article,
aside, and footer.
The markup for that document could look like the following:
<body>
<header>...</header>
<nav>...</nav>
<article>
<section> ... </section>
</article>
<aside>...</aside>
<footer>...</footer>
</body>
There are several advantages to using these elements. When used in conjunction with
the heading elements (h1 to h6), all of these provide a way to mark up nested sections
with heading levels, beyond the six levels possible with previous versions of HTML.
The specification includes a detailed algorithm for generating an outline that takes the
structure of these elements into account and remains backwards compatible with
previous versions. This can be used by both authoring tools and browsers to generate
tables of contents to assist users with navigating the document.
For example, the following markup structure marked up with nested section and h1
elements:
4
<section>
<h1>Level 1</h1>
<section>
<h1>Level 2</h1>
<section>
<h1>Level 3</h1>
</section>
</section>
</section>
For better compatibility with current browsers, it is also possible to make use of the
other heading elements (h2 to h6) appropriately in place of the h1 elements.
By identifying the purpose of sections in the page using specific sectioning elements,
assistive technology can help the user to more easily navigate the page. For example,
they can easily skip over the navigation section or quickly jump from one article to the
next without the need for authors to provide skip links. Authors also benefit because
replacing many of the divs in the document with one of several distinct elements can
help make the source code clearer and easier to author.
The header element represents the header of a section. Headers may contain more than
just the section’s heading—for example it would be reasonable for the header to include
sub headings, version history information or bylines. The header element contains
introductory information to a section or page. This can involve anything from our
normal documents headers (branding information) to an entire table of contents.
5
<header>
The footer element represents the footer for the section it applies to. A footer typically
contains information about its section such as who wrote it, links to related documents,
copyright data, and the like. The footer element is for marking up the footer of, not only
the current page, but each section contained in the page. So, it’s very likely that you’ll
be using the <footer> element multiple times within one page.
The nav element represents a section of navigation links. It is suitable for either site
navigation or a table of contents. The nav element is reserved for a section of a
document that contains links to other pages or links to sections of the same page. Not all
link groups need to be contained within the <nav> element, just primary navigation.
<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/products">Products</a></li>
<li><a href="/services">Services</a></li>
<li><a href="/about">About</a></li>
</ul>
</nav>
The aside element is for content that is tangentially related to the content around it.
Aside, represents content related to the main area of the document. This is usually
6
expressed in sidebars that contain elements like related posts, tag clouds, etc. They can
also be used for pull quotes.
<aside>
<h1>Archives</h1>
<ul>
<section>
<h1>Chapter 1: The Period</h1>
<p>It was the best of times, it was the worst of times, it was the age of wisdom, it was
the age of foolishness, it was the epoch of belief, it was the epoch of incredulity, it was
the season of Light, it was the season of Darkness, ...</p> </section>
<article id="comment-2">
<header>
<h4><a href="#comment-2" rel="bookmark">Comment #2</a>by <a
href="http://example.com/">Jack O'Niell</a></h4>
<p><time datetime="2007-08-29T13:58Z">August 29th, 2007 at
13:58</time> </header>
<p>That's another great article!</p>
</article>
7
CHAPTER 3
NEW TAGS IN HTML5
The previous/current version of HTML is HTML 4.01. Here is a list of HTML 4.01
tags.
8
Tag Description New in HTML5?
9
Tag Description New in HTML5?
10
Tag Descriptio New in HTML5?
n
<mark Specifies NEW
> marked text
<map S
> p
e
c
i
f
i
e
s
a
n
i
m
a
g
e
m
a
p
<men Specifies a
u> menu list
<meta Specifies
> meta
informatio
n
<mete Specifies NEW
r> measureme
nt
within a
predefined
range
<nav> Specifies NEW
navigation
links
<noscr Specifies a
ipt> noscript
section
<objec Specifie
t> s an
embedde
d object
11
<ol> Specifies
an ordered
list
<optgr Specifies
oup> an option
group
<optio Spec
n> ifies
an
optio
n in
a
drop
-
dow
n list
<outp Specifies NEW
ut> some types
of
output
<p> Specifies a
paragraph
<para Specifies a
m> parameter
for an
object
<pre> Specifies
preformatt
ed text
<progr Specifies NEW
ess> progress of
a task
of any kind
<q> Specifies a
short
quotation
<ruby Specifie NEW
> s a ruby
annotati
on (used
in East
Asian
typograp
hy)
<rp> Used for NEW
the
benefit
of
browser
s that
12
don't
support
ruby
annotati
ons
<rt> Specifie NEW
s the
ruby text
compon
ent of a
ruby
annotati
on.
<samp Specifies
> sample
computer
13
Tag Descrip New in HTML5?
tion
code
<scri Specifies
pt> a script
<sec Specifie NEW
tion sa
> section
<sel Specifies
ect> a
selectabl
e list
<sm Specifies
all> small
text
<sou Specifie NEW
rce> s media
resource
s
<spa Specif
n> ies a
sectio
n in a
docu
ment
<stro Specifies
ng> strong
text
<styl Specifies
e> a style
definitio
n
<sub Specifies
> subscript
ed text
<sup Specifies
> superscri
pted text
<tabl Specifies
e> a table
<tbo Specifies
dy> a table
body
<td> Specifies
a table
cell
<text Specifies
area a text
> area
<tfo Specifies
14
ot> a table
footer
<th> Specifies
a table
header
<the Specifies
ad> a table
header
<tim Specifie NEW
e> sa
date/tim
e
<titl Specifies
e> the
documen
t title
<var Specifies
> a
variable
<vid Specifie NEW
eo> s a video
Table 3.1: New Tags in HTML5
15
CHAPTER 4
datalist:-Together with the a new list attribute for input can be used to make
combo boxes
New attributes are identified to various elements. There are several new global
attributes. They are,
16
Contentedittable
Contextmenu
Draggable
Hidden
Spell check etc
big, center, font, u, s, strike etc. These effects can be better handled by CSS.
frames, frameset, noframes etc. Their usage affects usability and accessibility
for the end user in a negative way.
acronym, applet, isindex, dir. Their usage creates confusion and so they are
avoided
Some attributes are not allowed in HTML5. Most of the styling attributes are
removed from the HTML5. User can use CSS for that purpose. Examples of
removed attributes are given below.
align attribute on caption, iframe, img, input, object, legend, table, hr, div,
h1, h2, h3, h4, h5, h6, p, col, colgroup, tbody, td, tfoot, th, thead and tr
background attribute on body.
Bgcolor attribute on table, tr, td, th and body.
Border attribute on table and object.
17
Cellpadding and cellspacing attributes on table.
18
CHAPTER 5
WEB WORKERS
19
VIDEO AND AUDIO
HTML5 defines a new element called <video> for embedding video in your web pages.
Embedding video used to be impossible without third-party plugins such as Apple
QuickTime® or Adobe Flash®. The <video> element is designed to be usable without
any detection scripts. You can specify multiple video files, and browsers that support
HTML5 video will choose one based on what video formats they support. Browsers that
don’t support HTML5 video will ignore the <video> element completely, but you can
use this to your advantage and tell them to play video through a third-party plugin
instead. Kroc Camen has designed a solution called Video for Everybody! that uses
HTML5 video where available, but falls back to QuickTime or Flash in older browsers.
This solution uses no JavaScript whatsoever, and it works in virtually every browser,
including mobile browsers.
The simplest way to embed a video is to use a video element and allow the browser to
provide a default user interface. The controls attribute is a Boolean attribute that
indicates whether or not the author wants this UI on or off by default.
</video>
It is just as simple to embed audio into a page using the audio element. Most of the
attributes are common between the video and audio elements, although for obvious
reasons, the audio element lacks the width, height, and poster attributes.
</audio>
HTML5 has added new video and audio tags that can play video/audio in a browser
without a plug-in but it doesn’t officially support any video or audio format. Video
formats are like written languages. An English newspaper may convey the same
information as a Spanish newspaper, but if you can only read English, only one of them
20
will be useful to you! To play a video, your browser needs to understand the “language”
in which the video was written.
Content developers will have to spend more time in encoding the videos to Ogg Theora
and to H.264 formats so that all major browsers are supported. But this is not sufficient
as IE doesn’t support the video tag and would not be able to play the video or audio file
without a plug-in.
CANVAS
Canvas element lets you render graphics and images on the fly. An excellent
implementation of this element was done by the developers of Mozilla lab project
Bespin, which is an extensible Web Code Editor using Canvas (among other things).
HTML5 defines the <canvas> element as “a resolution-dependent bitmap canvas that
can be used for rendering graphs, game graphics, or other visual images on the fly.” A
canvas is a rectangle in your page where you can use JavaScript to draw anything you
want. HTML5 defines a set of functions (“the canvas API”) for drawing shapes,
defining paths, creating gradients, and applying transformations. It’s a 2D drawing API
that you can use javascript to draw dynamic image with. People have used it to
implement things like graphs that are built using tables of data which are on the page.
Even if your browser supports the canvas API, it might not support the canvas text API.
The canvas API grew over time, and the text functions were added late in the game.
Some browsers shipped with canvas support before the text API was complete.
21
APPLICATION CACHE
This feature provides the ability to store web apps like email locally and access it
without having to connect to the internet or install an external client like Outlook or
Thunderbird. Google gears, which helps you access Gmail offline, is an implementation
of HTML 5 specifications for Applications Cache (and much more). Reading static web
pages offline is easy: connect to the Internet, load a web page, disconnect from the
Internet, drive to a secluded cabin, and read the web page at your leisure. (To save time,
you may wish to skip the step about the cabin.) But what about web applications like
Gmail or Google Docs? Thanks to HTML5, anyone (not just Google!) can build a web
application that works offline.
Offline web applications start out as online web applications. The first time you visit an
offline-enabled web site, the web server tells your browser which files it needs in order
to work offline. These files can be anything — HTML, JavaScript, images, even videos.
Once your browser downloads all the necessary files, you can revisit the web site even
if you’re not connected to the Internet. Your browser will notice that you’re offline and
use the files it has already downloaded. When you get back online, any changes you’ve
made can be up loaded to the remote web server.
22
GEOLOCATION
This API defines location information with high-level interface (GPS) associated with
the device hosting the API. Sources of location information includes Global Positioning
System (GPS) and network signals such as IP address, RFID, WiFi and Bluetooth MAC
addresses, and GSM/CDMA cell IDs. Yes, a big brother feature, but it can only be used
if the user gives the application permission to use the information. Geolocation is the art
of figuring out where you are in the world and (optionally) sharing that information
with people you trust. There is more than one way to figure out where you are — your
IP address, your wireless network connection, which cell tower your phone is talking to,
or dedicated GPS hardware that receives latitude and longitude information from
satellites in the sky.
23
LOCAL STORAGE
HTML5 storage provides a way for web sites to store information on your computer and
retrieve it later. The concept is similar to cookies, but it’s designed for larger quantities
of information. Cookies are limited in size, and your browser sends them back to the
web server every time it requests a new page (which takes extra time and precious
bandwidth). HTML5 storage stays on your computer, and web sites can access it with
JavaScript after the page is loaded.
INPUT TYPES
HTML5 defines over a dozen new input types that you can use in your forms.
1. <input type="search"> for search boxes
2. <input type="number"> for spinboxes
The drag and drop API defines an event-based drag and drop system. However, it never
defines what “drag and drop” is. This API requires JavaScript to fully work as normal
think drag and drop functionality. Drag and drop API allows to drag and drop files
directly to the browser . A drop area can be defined in the web page to which we can
24
drag and drop pictures, or files of any kind from our desktop. It does not actually need
an uploading process.
PLACEHOLDER TEXT
Besides new input types, HTML5 includes several small tweaks to existing forms. One
improvement is the ability to set placeholder text in an input field. Placeholder text is
displayed inside the input field as long as the field is empty and not focused. As soon
you click on (or tab to) the input field, the placeholder text disappears.
FORM AUTOFOCUS
Web sites can use JavaScript to focus the first input field of a web form automatically.
For example, the home page of Google.com will autofocus the input box so you can
type your search keywords without having to position the cursor in the search box.
While this is convenient for most people, it can be annoying for power users or people
with special needs. If you press the space bar expecting to scroll the page, the page will
not scroll because the focus is already in a form input field. (It types a space in the field
instead of scrolling.) If you focus a different input field while the page is still loading,
the site’s autofocus script may “helpfully” move the focus back to the original input
field upon completion, disrupting your flow and causing you to type in the wrong place.
MICRODATA
Microdata is a standardized way to provide additional semantics in your web pages. For
example, you can use microdata to declare that a photograph is available under a
25
specific Creative Commons license. As you’ll see in [TODO link to chapter once
written], you can use microdata to mark up an “About Me” page. Browsers, browser
extensions, and search engines can convert your HTML5 microdata markup into a
vCard, a standard format for sharing contact information. You can also define your own
microdata vocabularies.
PARSING
TML 5 defines 2 Serializations:
1. A custom "classic" syntax
2. An XML syntax (XHTML 5)
The classic syntax has a fully specified parsing algorithm. The parsing algorithm is
designed (and being refined) for compatibility with deployed content.
26
CHAPTER 6
LIMITATIONS OF HTML5
New open standards created in the mobile era( HTML5), will win on mobile devices
(and PCs too). Clearly, Apple is backing HTML 5, CSS 3 and JavaScript for developing
future web applications.HTML5 still has some real constraints and it may not replace
Flash for eLearning/ mLearning development in the near future because of the
following reasons:
None of the web browsers for mobile or desktop have full HTML 5 implementations at
present. Internet Explorer (IE 6, 7 and 8), the most widely used web browser, has no
support for HTML5. The new version (IE 9) which is expected to be released sometime
in 2011 will support HTML5. Internet Explorer (IE 6, 7 and 8), the most widely used
web browser, has no support for HTML5. Even Apple iPad Safari browser doesn’t have
full HTML5 support.
Every browser has its own rendering mechanism so an application developed for iPad
Safari is not guaranteed to work well in other browsers like IE, Firefox or Chrome.
Developers will have to make modifications in the code to make it work in different
browsers. This is not the case with plug-ins like Flash or Silverlight where the
applications once developed can run on all the browsers without any modifications.
3. AUDIO/VIDEO SUPPORT
HTML5 has added new video and audio tags that can play video/audio in a browser
without a plug-in but it doesn’t officially support any video or audio format. Content
developers will have to spend more time in encoding the videos to Ogg Theora and to
H.264 formats so that all major browsers are supported. But this is not sufficient as IE
doesn’t support the video tag and would not be able to play the video or audio file
without a plug-in. Flash supports FLV/FV4 formats and those are not browser
27
dependent. Also, Flash or Silverlight video/audio supports secure media streaming;
there is no clear counterpart for this in HTML5.
3. DEVELOPMENT TOOLS
There are no tools available (except Dreamweaver CS5) that can create animations for
HTML5 having a good designer developer workflow required to create quality graphics
28
CHAPTER 7
IMPLEMENTATION
This is an opt-in experiment for HTML5 support on YouTube. If you are using a
supported browser, you can choose to use the HTML5 player instead of the Flash player
for most videos.
SUPPORTED BROWSERS
• Google Chrome (h.264 supported now, WebM enabled version available via Early
Release Channel)
29
FEATURES
• Full screen support is partially implemented. Pressing the full screen button will
expand the player to fill your browser. If your browser supports a full screen option,
you can then use that to truly fill the screen.
• The HTML5 player has a badge in the control bar. If you don't see the "HTML5"
30
CHAPTER 8
CONCLUSION
HTML 5 is the next version of Hyper Text Markup Language. It is developing by world
wide web consortium. Web is the commonly used medium to share and network
nowadays. But for more advanced features companies are building their own software.
So it reduces the openness and platform independence of the web technology. Aim of
the HTML5 to make a common platform for web with more advanced features like
audio, video etc.
Firefox, Safari, and Chrome on the desktop support a few of the styles and features
outlined in HTML5's draft specifications, like offline storage, canvas drawing, and,
most intriguingly, tags for audio and video that allow sites to stream multimedia files
directly into a browser. Apple's Safari for iPhone and the Android browser also support
elements of HTML5, as does Opera Mobile.
31
REFERENCES
www.google.com
www.wikipedia.com
32