The <a> tag we introduced above, because the <a> tag can be used to jump, so we can take the <a> tag to generate the navigation bar of the page.
In fact, in the actual use of,<a> tags are often used to generate navigation bar.
The navigation bar has a semantic label <nav> in the HTML, and this tag represents a navigation-specific content with its own default special style. Semantic tags we'll talk about it later.
Here we first use the following <nav> tags , and <a> combine into a navigation bar.
The code is as follows:
<! DOCTYPE html>
<meta charset= "UTF-8" >
<title> Generate navigation bar </title>
<body>
<a href= "https://www.baidu.com" > Baidu </a><a href= "http://im.qq.com/" >QQ</a> <a href= "http ://www.mayacoder.com/index "> Code buds </a>
</body>
What would be the result?
More content learning in the code bud Net Http://www.mayacoder.com/lesson/index
HTML&CSS Basic Learning Note 1.11-navigation bar