2016-1-Build a Nav bar (Intro to Html&css)

Source: Internet
Author: User

One: Learn how to build a NavBar---allow user navigate ur site

1. The Hypetext refrence link

This attribute specifies the location of a Web resource, thus defining a link between the current element (the source Anch OR) and the destination anchor defined by this attribute.

2. Whitespace is empty space in the HTML. Since the browser ignores whitespace in a HTML document, you can clearly lay out the code without affecting how the Web P Age would look.

The browers would ignore the space between tag, just like:

<ahref= "aboutme.html"> <!--The ' href ' means hypertext refrence attribute -Go to the About me page</a><ahref= "contact.html">Contact Me</a><ahref= "untitled.html">Home</a>

So the page would display like that:.

And when want has the gap Bettwen the links, we can use the HTML feature called entity.

Like that:

<ahref= "aboutme.html"> <!--The ' href ' means hypertext refrence attribute -Go to the About me page</a> in<ahref= "contact.html">Contact Me</a> in<ahref= "untitled.html">Home</a>

Pay attention to the "a", it means no-breaking space! So the page would like that:

.

Does It looks better?

3.And now we could make a relly "NavBar" to allow user jump into other page, and we just need to copy code in other Docume Nt. And the page would looks like:

2016-1-Build a Nav bar (Intro to Html&css)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.