HTML – Paragraphs

53

The <p> tag defines a paragraph. Using this tag places a blank line above and below the text of the paragraph. These automated blank lines are examples of how a tag “marks” a paragraph and the web browser automatically understands how to display the paragraph text because of the paragraph tag.

HTML Code:

<p>Avoid losing floppy disks with important school...</p>
<p>For instance, let's say you had a HUGE school...</p>

Two HTML Paragraphs:

Avoid losing floppy disks with important school/work projects on them. Use the web to keep your content so you can access it from anywhere in the world. It’s also a quick way to write reminders or notes to yourself. With simple html skills, (the ones you have gained so far) it is easy.

For instance, let’s say you had a HUGE school or work project to complete. Off hand, the easiest way to transfer the documents from your house could be a 3.5″ floppy disk. However, there is an alternative. Place your documents, photos, essays, or videos onto your web server and access them from anywhere in the world.

HTML – Paragraph Justification

Paragraphs can be formatted in HTML much the same as you would expect to find in a word processing program. Here the align attribute is used to “justify” our paragraph.

HTML Code:

<p align="justify">For instance, let's say you had a HUGE school or work...</p>

Justified Text Alignment:

For instance, let’s say you had a HUGE school or work project to complete. Off hand, the easiest way to transfer the documents from your house could be a 3.5″ floppy disk. However, there is an alternative. Place your documents, photos, essays, or videos onto your web server and access them from anywhere in the world.

HTML – Paragraph Centering

HTML Code:

<p align="center">For instance, let's say you had a HUGE school or work...</p>

Centered Text Alignment:

For instance, let’s say you had a HUGE school or work project to complete. Off hand, the easiest way to transfer the documents from your house could be a 3.5″ floppy disk. However, there is an alternative. Place your documents, photos, essays, or videos onto your web server and access them from anywhere in the world.

Each line of the paragraph has now been centered inside the display window.

HTML – Paragraph Align Right

HTML Code:

<p align="right">For instance, let's say you had a HUGE school or work...</p>

Right Text Alignment:

For instance, let’s say you had a HUGE school or work project to complete. Off hand, the easiest way to transfer the documents from your house could be a 3.5″ floppy disk. However, there is an alternative. Place your documents, photos, essays, or videos onto your web server and access them from anywhere in the world.

HTML - Paragraphs

loading...
SHARE

LEAVE A REPLY