When using non-semantic HTML, we were able to refer to sections using the id and create internal links within the document. For example,
could later be referred to with:
Also, the lesson mentioned that using the id attribute with div was useful to be able to style the div with CSS later. Can you/would you add the id attribute to semantic HTML? I didn’t see anything in the Semantic HTML section about using the id attribute and wasn’t sure if it was done.
New user, thank you for your help!!