HTML Element Placing


A little thing I found out when validating my code on WC3.

Elements such as p cannot be used inside inline elements h2, instead use  font or  span.

  • <incorrect><h2><p>Hello</p></h2>
  • <correct><h2><span>Hello</span></h2>

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *