Aligning paragraphs


show more Aligning paragraphs provides you with in-depth training on Developer. Taught by Bill Weinman as part of the XHTML and HTML Essential Training show less
please wait ...

Aligning paragraphs

So in our last lesson we talked about paragraphs and how they work and how they wrap. Now let's take a look at how to change the alignment of a paragraph. Here we have a document, a fully formed XHTML document with all the front matter at the top and in the content of the document we have one paragraph element and it's there to there. We have the paragraph tag and the close tag and some text in between and down here at the bottom we have this document opened in a browser with the paragraph displaying there on the screen.

Let me just drag this back a little bit so the paragraph wraps nicely. You will notice that the paragraph is justified on the left, it's aligned flush on the left and it's ragging on the right and this is the default alignment for a paragraph in XHTML and HTML. So let's take a look at how to change that, I'm going to add an attribute to the paragraph here, say align="right". So this is what an attribute looks like in XHTML. You have the...

Aligning paragraphs
Video duration: 2m 49s 4h 44m Beginner

Viewers:

Aligning paragraphs provides you with in-depth training on Developer. Taught by Bill Weinman as part of the XHTML and HTML Essential Training

Subjects:
Developer Web
Software:
HTML XHTML
Author:
please wait ...