Tag Archives: new html5 tag
Explanation: The <figcaption> tag is used to add a caption to the figure element. The <figcaption> tag is to be use in conjunction with the figure element and should be placed as the first or last child of the figure element. Usage: <figure> <figcaption>a caption used for the image</figcaption> <li><img src=”path/to/your/image.jpg alt=”your alt tag” /></li> </figure>
Explanation: The <command> tag defines command that users can invoke such as a radio button, checkbox, and button. The command element is only visible when it is use in conjunction with the menu element otherwise it will not be displayed. Attribute Possible Value Description checked checked Specifies if the command is checked. Only applicable to radio or checkbox. disabled disabled Boolean attribute. Specifies if the command is available. (i.e. either disabled or disabled=”disabled”) icon url Specifies the url of a … Continue reading
Explanation: The <details> tag is used to describe details about a document, or parts of a document. The content of the <details> tag should not be visible unless called the open attribute is set. Tips & Tricks: use the summary tag to create a custom header for the detail element. Note: At the time of writing, no browswer supports the <details> element. This example is based on the W3C HTML 5 Working Draft, and is solely to demonstrate the context … Continue reading
Explanation: The HTML <figure> tag is used for annotating illustrations, diagrams, photos, code listings, etc. You can use the <figure> element in conjunction with the <figcaption> element to provide a caption for the contents of your <figure> element. The content inside a figure element is stand-alone content, typically used to explain parts of a document, but also able to move from the document and put somewhere else. Usage: <figure> <img src=”/path_to_image/” /> </figure>
Explanation: The <aside> tag defines some content aside from the content it is placed in. The aside content should be related to the surrounding content. Usage: <aside> <h4>Side Bar Header</h4> <p>Content goes here.</p> </aside>
Explanation: The HTML <article> tag is used to represent an article. More specifically, the content within the <article> tag is independent from the other content on the site (even though it could be related). By “independent” I mean that its contents could stand alone, for example in syndication. Article content could include: forum post newspaper article blog entry user-submitted comment Usage: <article> <a href=”http://advancestyles.info/?p=51″>HTML5 article tag</a> <p> This is a post about the HTML5 <article> tag. </p> </article>
