﻿{"id":418,"date":"2011-06-14T07:12:00","date_gmt":"2011-06-14T07:12:00","guid":{"rendered":"https:\/\/chayilyam.com\/stories\/?p=418"},"modified":"2011-06-14T07:12:00","modified_gmt":"2011-06-14T07:12:00","slug":"new-markup-elements-for-html5","status":"publish","type":"post","link":"https:\/\/chayilyam.com\/stories\/new-markup-elements-for-html5\/","title":{"rendered":"New Markup Elements for HTML5"},"content":{"rendered":"<h2>New Markup Elements<\/h2>\n<p>New elements for better structure:<\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<th align=\"left\" width=\"110\">Tag<\/th>\n<th align=\"left\">Description<\/th>\n<\/tr>\n<tr>\n<td>\n<article><\/td>\n<td>For external content, like text from a news-article, blog, forum, or any <br \/>other content from an external source<\/td>\n<\/tr>\n<tr>\n<td>\n<aside><\/td>\n<td>For content aside from the content it is placed in. The aside content should <br \/>be related to the surrounding content<\/td>\n<\/tr>\n<tr>\n<td><command><\/td>\n<td>A button, or a radiobutton, or a checkbox<\/td>\n<\/tr>\n<tr>\n<td>\n<details><\/td>\n<td>For describing details about a document, or parts of a document<\/td>\n<\/tr>\n<tr>\n<td>\n<summary><\/td>\n<td>A caption, or summary, inside the details element<\/td>\n<\/tr>\n<tr>\n<td>\n<figure><\/td>\n<td>For grouping a section of <br \/>stand-alone content, could be a video<\/td>\n<\/tr>\n<tr>\n<td><figcaption><\/td>\n<td>The caption of the figure section<\/td>\n<\/tr>\n<tr>\n<td>\n<footer><\/td>\n<td>For a footer of a document or section, could include the name of the author, the <br \/>date of the document, contact information, or copyright information<\/td>\n<\/tr>\n<tr>\n<td>\n<header><\/td>\n<td>For an introduction of a document or section, could include navigation<\/td>\n<\/tr>\n<tr>\n<td>\n<hgroup><\/td>\n<td>For a section of headings, using <\/p>\n<h1> to <\/p>\n<h6>, where the largest is the main <br \/>heading of the section, and the others are sub-headings<\/td>\n<\/tr>\n<tr>\n<td><mark><\/td>\n<td>For text that should be highlighted<\/td>\n<\/tr>\n<tr>\n<td><meter><\/td>\n<td>For a measurement, used only if the maximum and minimum values are known<\/td>\n<\/tr>\n<tr>\n<td>\n<nav><\/td>\n<td>For a section of navigation<\/td>\n<\/tr>\n<tr>\n<td><progress><\/td>\n<td>The state of a work in progress<\/td>\n<\/tr>\n<tr>\n<td><ruby><\/td>\n<td>For ruby annotation (Chinese notes or characters)<\/td>\n<\/tr>\n<tr>\n<td><rt><\/td>\n<td>For explanation of the ruby annotation<\/td>\n<\/tr>\n<tr>\n<td><rp><\/td>\n<td>What to show browsers that do not support the ruby element<\/td>\n<\/tr>\n<tr>\n<td>\n<section><\/td>\n<td>For a section in a document. Such as chapters, headers, footers, or any <br \/>other sections of the document<\/td>\n<\/tr>\n<tr>\n<td><time><\/td>\n<td>For defining a time or a date, or both<\/td>\n<\/tr>\n<tr>\n<td><wbr><\/td>\n<td>Word break. For defining a line-break opportunity.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<h2>New Media Elements<\/h2>\n<p>HTML5 provides a new standard for media content:<\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<th align=\"left\" width=\"110\">Tag<\/th>\n<th align=\"left\">Description<\/th>\n<\/tr>\n<tr>\n<td><audio><\/td>\n<td>For multimedia content, sounds, music or other audio streams<\/td>\n<\/tr>\n<tr>\n<td><video><\/td>\n<td>For video content, such as a movie clip or other video streams<\/td>\n<\/tr>\n<tr>\n<td><source><\/td>\n<td>For media resources for media elements, defined inside video or audio <br \/>elements<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>For embedded content, such as a plug-in<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<h2>The Canvas Element<\/h2>\n<p>The canvas element uses JavaScript to make drawings on a web page.<\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<th align=\"left\" width=\"110\">Tag<\/th>\n<th align=\"left\">Description<\/th>\n<\/tr>\n<tr>\n<td><canvas><\/td>\n<td>For making graphics with a script<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<h2>New Form Elements<\/h2>\n<p>HTML5 offers more form elements, with more functionality:<\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<th align=\"left\" width=\"110\">Tag<\/th>\n<th align=\"left\">Description<\/th>\n<\/tr>\n<tr>\n<td><datalist><\/td>\n<td>A list of options for input values<\/td>\n<\/tr>\n<tr>\n<td><keygen><\/td>\n<td>Generate keys to authenticate users<\/td>\n<\/tr>\n<tr>\n<td><output><\/td>\n<td>For different types of output, such as output written by a script<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<h2>New Input Type Attribute Values<\/h2>\n<p>Also, the input element&#8217;s type attribute has many new values, for <br \/>better input control before sending it to the server:<\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<th align=\"left\" width=\"110\">Type<\/th>\n<th align=\"left\">Description<\/th>\n<\/tr>\n<tr>\n<td>tel<\/td>\n<td>The input value is of type telephone number<\/td>\n<\/tr>\n<tr>\n<td>search<\/td>\n<td>The input field is a search field<\/td>\n<\/tr>\n<tr>\n<td>url<\/td>\n<td>The input value is a URL<\/td>\n<\/tr>\n<tr>\n<td>email<\/td>\n<td>The input value is one or more email addresses<\/td>\n<\/tr>\n<tr>\n<td>datetime<\/td>\n<td>The input value is a date and\/or time<\/td>\n<\/tr>\n<tr>\n<td>date<\/td>\n<td>The input value is a date<\/td>\n<\/tr>\n<tr>\n<td>month<\/td>\n<td>The input value is a month<\/td>\n<\/tr>\n<tr>\n<td>week<\/td>\n<td>The input value is a week<\/td>\n<\/tr>\n<tr>\n<td>time<\/td>\n<td>The input value is of type time<\/td>\n<\/tr>\n<tr>\n<td>datetime-local<\/td>\n<td>The input value is a local date\/time<\/td>\n<\/tr>\n<tr>\n<td>number<\/td>\n<td>The input value is a number<\/td>\n<\/tr>\n<tr>\n<td>range<\/td>\n<td>The input value is a number in a given range<\/td>\n<\/tr>\n<tr>\n<td>color<\/td>\n<td>The input value is a hexadecimal color, like #FF8800<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>New Markup Elements New elements for better structure: Tag Description For external content, like text from a news-article, blog, forum, or any other content from an external source For content aside from the content it is placed in. The aside content should be related to the surrounding content A button, or a radiobutton, or a &hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[25,195,196,520],"tags":[],"class_list":["post-418","post","type-post","status-publish","format-standard","hentry","category-audio","category-html","category-html5","category-web-design"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_shortlink":"https:\/\/wp.me\/pfoK1S-6K","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/chayilyam.com\/stories\/wp-json\/wp\/v2\/posts\/418","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chayilyam.com\/stories\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chayilyam.com\/stories\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chayilyam.com\/stories\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/chayilyam.com\/stories\/wp-json\/wp\/v2\/comments?post=418"}],"version-history":[{"count":0,"href":"https:\/\/chayilyam.com\/stories\/wp-json\/wp\/v2\/posts\/418\/revisions"}],"wp:attachment":[{"href":"https:\/\/chayilyam.com\/stories\/wp-json\/wp\/v2\/media?parent=418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chayilyam.com\/stories\/wp-json\/wp\/v2\/categories?post=418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chayilyam.com\/stories\/wp-json\/wp\/v2\/tags?post=418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}