I learned the basics of web design a few months back and am trying to fix up a basic site I set up to adhere to the standards and look a little neater. The way I wrote it was with non-breaking space to separate my paragraphs. I’m sure you’re all tearing your hairs out over it, but that’s why I’m trying to improve.
I’m still unsure, however, what the right way to space out text is. My first though is to use margins, which would mean setting the display of the paragraph element to block. Figuring it’s wrong to change the structure of element considering there are probably more suitable elements to use, I decided to check some sites out to see how they do it. Each one I checked used the display:block and margin properties in CSS.
Is this the proper way to do it? Is there something in HTML5 that replaces it? If I do use HTML5 does that mean that older browsers won’t display it properly?
Use tag
<p>for each paragraph.HTML 5 is backward compatible.
P tag is not exclusive of HTML 5. It works on all versions of HTML.