I want to do something like this:
<p>This is a <h2>text</h2> paragraph.</p>
I disabled margin and padding for the h2 but it still breaks the line before and after the h2 tag. How can I use the h2 tag in the middle of a text and make it look like if it was a normal word, just like < b > does?
The doctype of my html document is “XHTML 1.0 Transitional”
It’s not appropriate to use a tag that means “heading” within body text. The
<h..>tags are logical tags; their use imparts meaning to the enclosed text — namely, that the text is a section heading.Although you could use the
display: inlineattribute, consider using a more appropriate tag, or even a<span>tag.