I just ran across some code that brought up an intresting question. Never really had this issue before and now I'm not sure which way of coding is "more correct" then the other. Here is the situation. We want to render the page like so
Paragraph heading here, no bold
Paragraph here, explaining what ever it was that was mentioned in the paragraph heading above, blah, blah blah...
As I was doing XHTML compliance of some one elses code, I noticed that they coded the page 2 different ways.
Option 1 (and probally the "more correct" way)
Option 2 they accomplished the same layout, but using different code
Both pieces of code render the same way, but I'm currious to know which is the "more correct" way? My guess is putting them in 2 different paragraph tag's, but I just don't know.
Thanks in advance!
Paragraph heading here, no bold
Paragraph here, explaining what ever it was that was mentioned in the paragraph heading above, blah, blah blah...
As I was doing XHTML compliance of some one elses code, I noticed that they coded the page 2 different ways.
Option 1 (and probally the "more correct" way)
Code:
<p>
Paragraph heading here, no bold
</p>
<p>
Paragraph here, explaining what ever it was that was mentioned in the paragraph heading above, blah, blah blah...
</p>
Code:
<p>
Paragraph heading here, no bold<br/><br/>
Paragraph here, explaining what ever it was that was mentioned in the paragraph heading above, blah, blah blah...
</p>
Thanks in advance!