+ 1

Can anyone tell me about navigation tag??

How to use it? Where to use it ?

12th Jun 2023, 4:43 AM
ANKIT RAJ
ANKIT RAJ - avatar
3 Antworten
12th Jun 2023, 7:53 AM
I-M-J
I-M-J - avatar
+ 1
The HTML5 element <nav> is used to define a segment of navigation links within a web page. This element improves the structure and semantics of the page, making it more accessible to both users and search engines. The <nav> element can be used to group the key navigation links on a website, such as links to different sections or pages. It specifies a group of navigation links, either within the current document or to other papers. Tables of contents, menus, and indexes are all examples of navigation blocks. <!DOCTYPE html> <html> <head> <title>Title of the document</title> </head> <body> <header> <h1>Web Development Courses</h1> </header> <nav> <a href="/learn-html.html">HTML</a> | <a href="/learn-css.html">CSS</a> | <a href="/learn-javascript.html">JavaScript</a> | <a href="/learn-php.html">PHP</a> </nav> <h2>Welcome to Sololearn!</h2> </body> </html>
12th Jun 2023, 5:17 AM
I-M-J
I-M-J - avatar