Forum Moderators: open
Have inherited site (20 pages) with lots of blocks of kw containing text that are either only enclosed by table tags <td> or lie outside of other tags, e.g. p, table, h, etc.Question: Is there any Google SERPS benefit to encapsulation in <p></p> tags? I.e. worth going through site to update everywhere? Larger question is, outside of h and a tags, does it matter much what tags general kw text is in?
His question deals with search engines, I would like to ask the more fundamental question: should all text be encapsulated in <p></p> (or other appropriate) tags?
Mea Culpa! I had been treating <p> as essentially a presentational element, and did not use it when I did not need it for that purpose. Going to HTML 4.01 Strict I discovered that the construct:
<blockquote>
Some text ...
</blockquote>
For some reason
<h1>Some Header</h1>
Some text ...
<p>Some more text ...
is valid. Would it be "better" (in some sense) to add a <p> after each header? It does seem to make sense to say "This is a paragraph", rather than leave it at "This is a collection of words".
Am I beginning to understand what the standards mean about content versus presentation?
By default a paragraph tag is a block level element (takes a new line) and has padding above. However, you can change this in your css. Thus the paragraph tag <p> defines the structure and grammar of the content of the page while the css can defines the presentation for those <p> tags.
In some cases people do use <p> tags for presentation and layout, for example, this code should be avoided:
<p>Some text</p>
<p>&nbs;</p>
<p>&nbs;</p>
<p>&nbs;</p>
<p>Some more text after a gap.</p>
Instead, perhaps a pair of <div>s with padding would be more appropriate.
Also, if you don't think a <p> tag is suitable, consider using some other structural markup such as un-ordered lists <UL>.
Just like in a book, it has chapter headings, paragraphs of text, footnotes, lists, tables, etc, in a clearly laid out manner.