New Elements introduced in HTML5

New Elements in HTML5

Internet and the way we use web is not the same as it was a decade ago. The web standards and internet as a whole has changed alot since 1999 when HTML 4.01 was released and made a standard back then.

In todays world of internet and markup, there are many elements of HTML 4.01 which has become obsolete, or else not used anymore, atleast not in in a way that they were intended to be! These elements have been re written or deleted in HTML5.

HTML5 has also been introduced with many new elements to improve the today’s internet use. These new elements include elements for better structure, drawing, medica content and a much better form handling.


New Markup Elements in HTML5

New markup elements for better structure introduced in HTML5 include:

TagDescription
<article>For external content, like text from a news-article, blog, forum, or any other content from an external source
<aside>For content aside from the content it is placed in. The aside content should be related to the surrounding content
<command>A button, or a radiobutton, or a checkbox
<details>For describing details about a document, or parts of a document
<summary>A caption, or summary, inside the details element
<figure>For grouping a section of stand-alone content, could be a video
<figcaption>The caption of the figure section
<footer>For a footer of a document or section, could include the name of the author, the date of the document, contact information, or copyright information
<header>For an introduction of a document or section, could include navigation
<hgroup>For a section of headings, using <h1> to <h6>, where the largest is the main heading of the section, and the others are sub-headings
<mark>For text that should be highlighted
<meter>For a measurement, used only if the maximum and minimum values are known
<nav>For a section of navigation
<progress>The state of a work in progress
<ruby>For ruby annotation (Chinese notes or characters)
<rt>For explanation of the ruby annotation
<rp>What to show browsers that do not support the ruby element
<section>For a section in a document. Such as chapters, headers, footers, or any other sections of the document
<time>For defining a time or a date, or both

New Media Elements introduced in HTML5

HTML 5 provides a new standard for media content elements:

TagDescription
<audio>For multimedia content, sounds, music or other audio streams
<video>For video content, such as a movie clip or other video streams
<source>For media resources for media elements, defined inside video or audio elements
<embed>For embedded content, such as a plug-in

The Canvas Element – for drawing in HTML5

The canvas element has been introduced in HTML5. It uses JavaScript to enable the user to draw on a web page.

TagDescription
<canvas>For making graphics with a script

New Form Elements in HTML5

HTML5 offers much more form elements, with much more functionality and many new features:

TagDescription
<datalist>A list of options for input values
<keygen>Generate keys to authenticate users
<output>For different types of output, such as output written by a script

New Input Type Attribute Values introduced in HTML5

HTML5 introduced many new input element type attributes with many new values. These allow much better control on input before sending the form data to the server:

TypeDescription
telThe input value is of type telephone number
searchThe input field is a search field
urlThe input value is a URL
emailThe input value is one or more email addresses
datetimeThe input value is a date and/or time
dateThe input value is a date
monthThe input value is a month
weekThe input value is a week
timeThe input value is of type time
datetime-localThe input value is a local date/time
numberThe input value is a number
rangeThe input value is a number in a given range
colorThe input value is a hexadecimal color, like #FF8800

Leave a Reply

Your email address will not be published.