CodesJava

Easy learning with example program codes

HTML5 New Elements

A lot of new elements are added in HTML5 to facilitate some extra functionality to write an easy and fast code to create an engaging and effective website.

HTML 5 New Tags:

Some new tags were introduced in HTML 5 to provide a better document structure. These tags are listed below.

Structural or Semantic Tags:

TagUses
<article>Used to specify a blog, a magazine or a newspaper article or any other independent piece of content in a document.
<aside>Used to indicate that the specified article is somehow related to the rest of the document.
<bdi>Used for bi-directional isolation, i.e, to isolate a part of a content which is formatted in other direction from the outside text document.
<data>Used to facilitate a machine readable version of the data.
<details>Used to define any additional information on a topic or a summary.
<dialog>Used to specify a window or a dialog box.
<figcaption>Used to specify a caption for a <figure> element.
<figure>Used to specify a self-contained content like photos, diagrams etc.
<footer>Used to specify a footer for a section.
<header>Used to specify a header for a section.
<main>Used to specify the main content of a document.
<mark>Used to mark or highlight the specified content.
<menuitem>Used to specify a command that the user can invoke from a popup menu.
<meter>Used to determine a scalar value within a given range.
<nav>Used to specify a navigation link in an HTML document.
<progress>Used to define the progress of a task.
<rp>Used to specify the content to show in a browser that don’t support ruby annotation.
<rt>Used to indicate an explanation or pronunciation of characters.
<ruby>Used to specify a ruby annotation along with <rp> and <rt>.
<section>Used to specify a section in an HTML document.
<summary>Used to define a visible heading for the HTML <details> element.
<time>Used to define a date or time.
<wbr>Used to specify a line break opportunity.

HTML5 Form Tags:

TagUses
<datalist>Used to facilitate an auto complete feature for textfield.
<output>Used to specify the output of a calculation or an outcome of the user action.

Graphics Tags:

TagUses
<canvas>Used to draw canvas in an HTML document.
<svg>Used to display shapes.

HTML5 Media Tags:

TagUses
<audio>Used to define an audio file in HTML.
<embed>Used to specify a container for an external file, application or a media.
<source>Used to specify multiple media resources for a media element.
<track>Used to specify the text tracks for an <audio> or a <video> element.
<video>Used to specify a video file in HTML.

HTML5 New <input> types:

TypeUses
colorUsed to define an input field to indicate a color selector.
dateUsed to define an input field to indicate a date selector.
datetimeUsed to display date and time along with the time zone information.
datetime-localUsed to display date and time without the time zone information.
emailUsed to specify an input field with an email pattern validation property.
monthUsed to specify an input field to enter month for the particular year.
numberUsed to specify a field that accepts a numeric value only.
rangeUsed to create a numeric value selector for a range of 1 to 100.
searchUsed to create a search field.
telUsed to define a control to enter a telephone number.
timeUsed to define a control to enter time value with no time zone.
urlUsed to define an input field to enter a URL.
weekUsed to create a week value selector for a particular year.

 

Please follow and like us:
error
Posted in HTML   









Copyright © 2019 CodesJava DMCA.com Protection Status