we start with what you actually put in a web document, I think we should
look at the way browsers work. Here's an example.
Look what happens.
Look at this
Hey! Why isn't
this is happening because browsers don't recognize formatting. Unless you
tell it otherwise, it will just display everything in a steady stream until
it comes to the edge of the browser window or you use a line break.
And the result.
says 'Make a new line'. Also notice that
a closing tag (</br>).
Another tag, similar to
tells the browser to put in it paragraph form, and then to skip a line.
There is more.
Remember earlier when we typed
and it all
showed up on the same line? Well, that happens because that is the way
all browsers work. You might think it stupid at first, seeing as how 2
tabs, 5 spaces, 2 returns, and 10 more spaces, would all end up as 1 little
space on the browser, but actually this is a good thing. It gives you absolute
control over the appearance of the document. If you want more than 1 consecutive
space, there is a little code that means 'space' to the browser, it is.
So just add that code to everything that you want more than 1 consecutive
space with. Like this.
Let's see what
If you want
mulitple blank lines just use a space (
) and a line break (br).
appear like this.
has an &
in front of it, this denotes to the browser that it is a special character.
There are a lot of these special characters, here are some more.
( < lessthan symbol)
( > greaterthan symbol)
( & ampersand symbol)
( " quotation mark)
( soft hyphen)
© Copyright symbol)
need to use these ALL of the time, in fact, you should utilize them
very rarely. Next up are 3 tags that are instrumental in any HTML document,
and they are pretty self explanitory. The <left>,
and <right> tags.
They justify where you want something to be on the page, and as I said
are pretty selfexplanitory. They also use closing tags, </left>,
text is on the left</left>
text is centered</center>
text is on the right</right>
appear like this.
think that is enough on how browsers work and interpret data. Let's
|This text is on the left.
|This text is centered.
|This text is on the right.