how to create Top navigation menu
The <nav> tag is new element in the html5 nav tag use to define the of the navigation link either within the current document or other documents. Example- nav tag is the navigation blocks are menu tables of contents, and indexes. One HTML document may contain several <nav> tags, for example, one for site navigation and one for intra-page-navigation
.Note that not all links in the HTML document can be placed inside the <nav> element. it can only include major navigation blocks. For example, the <nav > tag is not placed in the <footer> tag for defining links in the footer of the website.
how to Create Top navigation menu
Syntax:
The <nav > tag comes pairs. written between the opening
(<nav> ) and closing (</nav>) tags.
how to create top navigation menu
program
how to create top navigation menu
Explain program
Step 1 ]
<!Doctype html>
- <!doctype html> always be the first line of any HTML document.
<!Doctype html>
- <!doctype html> always be the first line of any HTML document.
Step 2 ]
<html> and </html>
html is the root element.
<html> and </html>
html is the root element.
Step 3 ]
<body> and </body>
body is main content area.
All visible content inside to the <body> tag
<body> and </body>
body is main content area.
All visible content inside to the <body> tag
