I often come across webpages where, instead of using a separate <div> element to add specific styles, a <p> tag is used.
I would be interested in knowing:
- Which is the semantically proper way to add styles - using a
<p>tag or a<div>tag? - What are the advantages of using a
<p>tag? Does it have anything to do with inheritance?
tag defines a paragraph.
and
that has a large font size and an
– steakpi Sep 09 '14 at 12:57that has a smaller font size. If you decided that your document heading for a certain page actually looked better using the size associated with the
, you would still use the
tag, but use a style to size it the same as the
. Bootstrap 3 has a set up that would handle this in the following way
your title