html - Is this usage of the H2 tag correct? -


i use h2 tag in way. usage of h2 tag correct?

<h2><a href="#w" style="margin-left:20px;">what this?</a></h2> <h2><a href="#h" style="margin-left:20px;">how cost?</a></h2>   <p class="title-faq"><h2>what this?</h2></p> 

it's not appropriate use tag means "heading" within body text. tags logical tags; use imparts meaning enclosed text -- namely, text section heading.

although use display: inline attribute, consider using more appropriate tag, or tag.

aside that, , answer question, h2 block level element. making inline level element cause behave how describe b tag acting

see here


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -