Jump to content

blocks and inline elements


sara_jessica
 Share

Recommended Posts

HTML started allowing nesting blocks inside <a> elements when it transitioned to version 5 because there are so many use cases for hyperlink blocks.

I still just set the display of <a> elements to "block" with CSS to avoid an unnecessary <div> inside it unless the structure is complicated.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...