Basic Html Text



There is LOTS of things you can do with text to make your page stand out. Text will automatically be standard unless you use tags to change it. This section is about the text on the web page...to change the font attributes go to Fonts section.


First this to learn is how to keep everything from running togeather. There is 2 ways of doing this, either with the <p> or <br> tags. The <p> tag is a paragraph tag and will automatically leave an extra line in between paragraphs. The <br> is used to finish a line, either of text or image. Html doesnt recognize the enter key, so we have to use one of those 2 methods.


Paragraph and Break Example:

No html:
This is line one. This is line two. This is line three.

With paragraph tags
This is line one.
<p>
This is line two.
<p>
This is line three.
<p>
and would look like this on web page
This is line one.

This is line two.

This is line three.

With break tags:
This is line one.<br>
This is line two.<br>
This is line three<br>
and would look like this on web page
This is line one.
This is line two.
This is line three.



With html everything is aligned to the left of the screen unless you tell it other wise. Three basic alignments that can be used in everything you do; left, right and center. You can use these as many times on page as your want just remember to follow each alignment with </(left,center,right)>.

Align Examples:

<left>Puts text to the left.</left>


<center>Puts text in the center.</center>

<right>Puts text to the right.</right>

These also work with images.



There is a way to just type and let html read it....it is the preformatted tag <pre> and end with </pre>. This will display the text exactly how you type it.

Preformatted Example:

Lets say I wanted to do this,
          A
         AAA
        AAAAA
       AAAAAAA
and I typed it on the page just like that but when I went to see it on my
browser it was just,

AAAAAAAAAAAAAAAA

If I had put the <pre> tage before I started typing and
the </pre> when I was done it would of been the way I orginally typed it.



Now that you've mastered the basic text tags on to other parts....below is links to different parts of html...just click on a link and it will take you there.

Text
Fonts
Sound
Lists
Images
Links
Tables
Basic Html