Skip to content

HTMLCSS.PRO

  • HTML Reference
  • CSS Reference

Category Archives: Uncategorized

Is it OK to Wrap Block Elements With an <a> Tag?

In HTML4 — no, in HTML5 — yes. If you need valid code in HTML4, it’s necessary to put links inside block elements and wrap each inline element separately. A simple case: More complex case: In HTML5, it’s easier:

Posted byHTMLCSS.PROMay 22, 2019June 8, 2020Posted inUncategorized
HTMLCSS.PRO