HTML 5 aside tag

The <aside > tag use to enclose content that is tangentially related to the other content the element may be associated within an article or web page and is typically useful for marking up sidebars.
  • 2935

This is new tag introduced by HTML5. The <aside > tag use to enclose content that is tangentially related to the other content the element may be associated within an article or web page and is typically useful for marking up sidebars. It gives additional information to represent that can improve article. Whenever you use aside tag within an article tag then the content of aside tag should be specifically related to that article. When you used aside tag outside of an article tag then the content of aside tag must be related to the web site.

Syntax

<aside
accesskey="spaced list of accelerator key(s)"
class="class name(s)"
contenteditable="true | false | inherit"
contextmenu="id of menu"
data-X="user-defined data"
dir="ltr | rtl"
draggable="true | false | auto"
hidden="hidden"
id="unique alphanumeric identifier"
itemid="microdata id in URL format"
itemprop="microdata value"
itemref="space-separated list of IDs that may contain microdata"
itemscope="itemscope"
itemtype="microdata type in URL format"
lang="language code"
spellcheck="true | false"
style="style information"
tabindex="number"
title="advisory text">
</aside>
 

HTML5 Event Attributes
onabort onblur oncanplay oncanplaythrough onchange
onclick oncontextmenu ondblclick ondrag ondragend
ondragenter ondragleave ondragover ondragstart ondrop
ondurationchange onemptied onended onerror onfocus
onformchange onforminput oninput oninvalid onkeydown
onkeypress onkeyup onload onloadeddata onloadedmetadata
onloadstart onmousedown onmousemove onmouseout onmouseover
onmouseup onmousewheel onpause onplay onplaying
onprogress onratechange onreadystatechange onscroll onseeked
onseeking onselect onshow onstalled onsubmit
onsuspend ontimeupdate onvolumechange onwaiting  

 

HtmlPage2.htm

<!DOCTYPE HTML >
<html>
<
head>
    <title></title>
</head>
<
body>
    <aside style="font-size: larger; font-style: italic; color: Black;">
        <h1>
            Our Network</h1>
        <ul>
            <li><a style="text-decoration: none" href="http://www.vbdotnetheaven.com">VB.NETHEAVEN</a></li>
            <li><a style="text-decoration: none" href="http://www.c-sharpcorner.com">C# Corner</a></li>
            <li><a style="text-decoration: none" href="http://www.dbtalks.com">DbTalks </a>            </li>
        </ul>
    </aside>
    <aside style="font-size: larger; font-style: italic; color: green; float: right;
width: 200px;">
        <h1>
            Working With Area Tag in HTML5</h1>
        <p>
            The area tag is used only within a map tag. The area tag is used to define the areas
            on the image map that whenever the user clicks on the area the other page that the
            user is navigated to. The image map is used to divide the image into clickable areas
            and the clickable areas work like a hyperlink.
        </p>
        <p>
            For more click on this link Valon Ademi .</p>
    </aside>
    <header>
        <h1>
            My Article</h1>
    </header>
    <article>
        <h1>
            My Article Post</h1>
        <p>
            I have written about articel in that is introduced In HTML5 and also written about
            area tag this is imaging feature of HTML5.</p>
        <aside style="font-size: larger; font-style: normal; color: green;">
            <!-- aside tag is contained within an article, -->
            <h1>
                Technologies</h1>

            <dl>
                <dt>HTML5</dt>
                <dd>
                    New Article Tag Introduced in HTML5</dd>
            </dl>
        </aside>
    </article>
   <aside style="font-size: x-large; font-style: normal;">
<h1>
    HyperText Markup Language</h1>
<b>HTML5</b> is a language for structuring and presenting content for the World Wide Web, a core technology of the Internet. It is the fifth revision of the HTML standard (originally created in 1990 and most recently standardized as HTML4 in 1997) and as of June 2011[update] was still under development. Its core aims have been to improve the language with support for the latest multimedia while keeping it easily readable by humans and consistently understood by computers and devices (web browsers, parsers etc.).HTML5 is intended to subsume not only HTML4, but XHTML1 and DOM2HTML (particularly JavaScript) as well.
</aside>
</
body>
</html>

Output

Chrome

chrome.gif

Internet Explorer 8

IE.gif

FireFox

mozila.gif

Safari

safari.gif


Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.