First of all: why do you need a paragraph inside a heading element?
Heading elements are meant to highlight important parts of your site, i.e. headings
, and are also indexed by search engines. Read more here: http://www.w3schools.com/html/html_headings.asp. While paragraphs are larger trunks of text, and will add some space before and after the paragraph
(since it's a block element) read more here: http://www.w3schools.com/html/html_headings.asp.
To answer your question:
Semantically it is not correct to a paragraph inside a heading or reversed: i.e.
<!-- INCORRECT -->
<h2>
<p>Your heading</p>
</h2>
What you should do is style the heading element directly:
<!-- HTML -->
<h2>Your heading</h2>
/** CSS **/
h2 {
text-align: center;
}
I also realized something similar has been answered before: Is it valid to have paragraph elements inside of a heading tag in HTML5 (P inside H1)?
Just a little side thought: you mention having a drop-down of 4 columns. Wouldn't an <h2>
element be too big to have in a drop-down? I immediately was thinking that it would be better having a bold font instead to highlight that specific element. But notice that I do not have any knowledge of your project! :P