an ABC of web design Go to Home Page
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

P is for the paragraph tag

P is for Paragraph <p>

The paragraph is the workhorse of a text-based website.

Things to remember. Between the opening <p> and closing </p> tags the browser will only recognise a single white space (one spacebar click) between characters. If you want more you need to use the non-breaking space entity ( either by name - &nbsp; - or by number - &#160; ) in your source code as many times as you want white spaces.

There is also the in-line break element <br> which is used without a closing tag </br> in HTML but with one in XHTML.

The difference is this. When word processing you hit the return key once to go to the next line (in HTML use <br>). You hit it twice to go to a new paragraph (in HTML use <p>).

But in Dreamweaver, for some reason, when you hit the return key in Design mode (WYSIWYG) it does a double carriage return, i.e. creates a new paragraph.

Nvu, an excellent and totally free cross-platform web authoring tool, works more like a word processor - or should I say even more like a word processing programme. When you have bodytext selected in the format drop down menu, the return key does a line break <br>; when paragraph is selected it starts a new paragraph.

[The people behind Nvu, Linspire, are committed to "bringing Desktop Linux to the masses". Nice to know the Revolution is still alive and doing good work in cyberspace!]

 

 

 

Or take the Brighton Quiz by clicking here