+ 2
Compare <footer> with <nav>.
I don't know, how they work exactly. ⚫️Can you explain them .😊 1- What are these tags outputs? 2- Where should we use <footer>? 3- Where should we use <nav> ? Thanks for attention.💖
4 odpowiedzi
+ 4
As their name tells what they do.
<footer> is basically to make footer of the website. All the HTML of the footer code should be written inside this tag. Footer is basically contain contact us page, privacy policy, terms of use and copyright etc.
<nav> is basically to create navbar. Navbar HTML code should be written inside this tag. Navbar is basically all navigation links like home page link, about us page, and other page links of your website.
These tags are more useful in point of SEO.
+ 3
<footer> is the footer of the page or of a <section> in the page. It should be the last tag in the page or section it refers to. It may be given a role attribute, role="contentinfo", if it is the main footer of the page.
<nav> is a group of related links in a page. These links will likely be <a> tags. If there are more than 1 <nav> in a page, the main <nav> should have a role attribute — role="navigation"
https://www.sololearn.com/learn/HTML/2199/
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/footer
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/nav
+ 2
SEO
+ 1
I should a lot of time for searching to find these .
I don't have enough time.