The Web Just This Site

NM Web Tutorials

Basics: Display Text

XHTML

What The Code Does

<p>Here is some text that you can type</p>

 

<p>This is the next paragraph</p>

Here is some text that you can type

This is the next paragraph

This <p> is a “paragraph” tag, <tags are the codes with the pointy brackets> Simply make one of those, and start typing the text you want to display. When you're finished, close it off with </p>, it is essential to close off tags. You usually do this by putting the “/” right after the first pointy bracket, as shown in the second tag. There are a few exceptions to this rule, the other way for some tags is by putting a “ />” instead of writing the letter. Notice the space before the “/”, that is on purpose. We’ll get to that later, for now, this is how you display text.