2016 - 1- 22 Build a Nav bar (intro to HTML&CSS)
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了2016 - 1- 22 Build a Nav bar (intro to HTML&CSS)相关的知识,希望对你有一定的参考价值。
一: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 anchor) and the destination anchor defined by this attribute.
2. Whitespace is empty space in the html.Since the browser ignores whitespace in an HTML document, you can clearly lay out the code without affecting how the web page will look.
The browers will ignore the space between tag, just like:
<a href = "aboutme.html"> <!--The ‘href‘ means hypertext refrence attribute--> Go to the about me page </a> <a href = "contact.html"> Contact me </a> <a href = "untitled.html"> Home </a>
So the page will display like that : .
And when want have the gap bettwen the links , we can use the html feature called entity.
Like that :
<a href = "aboutme.html"> <!--The ‘href‘ means hypertext refrence attribute--> Go to the about me page </a>   <a href = "contact.html"> Contact me </a>   <a href = "untitled.html"> Home </a>
Pay attention to the " ", 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 document.And the page will looks like :
以上是关于2016 - 1- 22 Build a Nav bar (intro to HTML&CSS)的主要内容,如果未能解决你的问题,请参考以下文章
bzoj4512: [Usaco2016 Jan] Build Gates
cordova build 失败 Please install Android target:"android-22"
android studio中 Build Tools 已经存在22.0.1并且版本也已经改为22.0.1为啥还报错 Error