dcsimg
www.webdeveloper.com
Results 1 to 9 of 9

Thread: html5 tag

Hybrid View

  1. #1
    Join Date
    Mar 2014
    Posts
    24

    html5 tag

    What is the use of nav tag in html5....................

  2. #2
    Join Date
    Mar 2005
    Location
    Behind you...
    Posts
    1,033
    With a question that is less than 10 words, and could be searched through google in a mere 2 words, I do have to wonder if I should be nice and answer, or send you a link to a google search...

    But today is a nice day, so I'll answer.
    Firstly, you should probably take a look at: https://developer.mozilla.org/en-US/...ML/Element/nav
    Essentially, with many tags, the <nav> tag is more about organizing and grouping your source code in the best way possible that makes the most sense. For the most part it isn't majorly different from other tags, however there is a mention that:
    User agents, such as screen readers targeting disabled users, can use this element to determine whether to omit the initial rendering of this content.

  3. #3
    Join Date
    Oct 2013
    Location
    3rd planet from the sun
    Posts
    177
    Quote Originally Posted by simar View Post
    What is the use of nav tag in html5....................

    nav: Represents navigation for a document. The nav element is a section containing links to other documents or to parts within the current document.

    Not all groups of links on a page need to be in a nav element — only groups of primary navigation links. In particular, it is common for footers to have a list of links to various key parts of a site, but the footer element is more appropriate in such cases.

  4. #4
    Join Date
    Jan 2014
    Location
    Boston, Massachusetts
    Posts
    66
    As a very basic example, in an HTML5 document, you could have:

    <nav>
    <ul>
    <li><a href="index.html">Home</a></li>
    <li><a href="about.html">About</a></li>
    </ul>
    </nav>

    and there's your basic navigation bar.

  5. #5
    Join Date
    Jan 2014
    Posts
    104
    HTML5 is the latest standard for HTML.The previous version of HTML, HTML 4.01, came in 1999, and the internet has changed significantly since then.HTML5 was designed to replace both HTML 4, XHTML, and the HTML DOM Level 2.It was specially designed to deliver rich content without the need for additional plugins. The current version delivers everything from animation to graphics, music to movies, and can also be used to build complicated web applications.

  6. #6
    Join Date
    Apr 2014
    Location
    Poland
    Posts
    21
    Thaks, your answers are very useful for me.

  7. #7
    You can try like this e.g.
    <nav>
    <a href="/html/">HTML</a> |
    <a href="/css/">CSS</a> |
    <a href="/js/">JavaScript</a> |
    <a href="/jquery/">jQuery</a>
    </nav>

  8. #8
    The <nav> tag defines a set of navigation links.
    Notice that NOT all links of a document should be inside a <nav> element. The <nav> element is intended only for major block of navigation links.
    Browsers, such as screen readers for disabled users, can use this element to determine whether to omit the initial rendering of this content.

  9. #9
    Join Date
    Apr 2014
    Posts
    2
    The <nav> tag defines a set of navigation links. The <nav> tag is new in HTML5. The <nav> tag also supports the Global Attributes in HTML. The <nav> tag also supports the Event Attributes in HTML. Here is an Example:

    <nav>
    <a href="/html/">HTML</a> |
    <a href="/css/">CSS</a> |
    <a href="/js/">JavaScript</a> |
    <a href="/jquery/">jQuery</a>
    </nav>

    This Tag is used to make data segmentation # tag centric and easy to access and retrive for every time you look for the # tag keyword

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles