Search code examples
htmlsemanticsspecificationsmarkup

<cite> as part of semantic markup


One of the sites I develop has lots of information linked between each other; we have companies, we have products for those companies. The company page links to the page listing the products for that company, and vice versa.

From the HTML spec:

CITE: Contains a citation or a reference to other sources.

Does this imply that I could (semantically) use a <cite> for a company link? What about on the company page to a product?

If not, could someone tell me what might be the "correct" semantic tag for this?


Solution

  • If you're just linking to other pages then semantically you should just use <a href=...>. If you're quoting a small piece of information, like the information from the HTML spec in your question, and providing a link to the original source, you might use <cite>. Think of it as a citation in a book or research paper.