When using the paragraph element in your HTML markup, think about the semantic definition of the paragraph element. A paragraph is a block of text; therefore, you should use it as a block of text.
Don’t nest other block level elements inside a <p> element. For instance, it does not make sense to nest a paragraph inside of a paragraph. When the second paragraph begins, it means that the first paragraph has ended. If you nest other block level elements inside of a <p> element, the web page might not display as you imagined. Furthermore, your markup becomes semantically illogical which might make it more difficult for yourself or others to maintain.
Advertisement
April 30, 2010 at 3:32 pm |
it all makes so much sense now
April 30, 2010 at 11:24 pm |
Good, I’m glad that I could help