View Full Version : necessary tags?


Moonlit
09-12-2003, 10:20 PM
in the <body> section, I never use <p> or anything like that...I just put in the content and any <br> I need. It works, but will it work on all browsers? Is <p> (and anything similar) necessary?

Sugar Rush
09-12-2003, 11:24 PM
OK, <p> means basically a new paragraph. If you were to put a <p> between your text, it would do this:

TEXT TEXT TEXT TEXT

TEXT TEXT TEXT TEXT

The space between the two lines of text is where the <p> would be in your HTML.

<br> means line break. It would do this:

TEXT TEXT TEXT TEXT
TEXT TEXT TEXT TEXT

Get it? So 2 <br> are equal to 1 <p>! I think CSS uses some <p> code too, but I'm not sure what it is exactly ;)...

Moonlit
09-13-2003, 12:53 AM
Yeah...I know :) I meant, is it necessary to use <p> or something similar? As in...do I have to break down my information into <p>? Can it just be "as is"?

Example:

<html>
<head></head>
<body>
I like cats.<br>
Cats are nice.<br>
</body>
</html>

Sugar Rush
09-13-2003, 12:59 AM
Oh! Okay...no, <p> is not necessary and neither is <br>...they just make a site look more organized I think. If you want your text to show up like:

I like cats. Cats are nice.

You would just write:

<html>
<head></head>
<body>
I like cats. Cats are nice.
</body>
</html>

And if you wanted it to be:

I like cats.
Cats are nice.

You would put <br> at the end of cats like you already have :)

Moonlit
09-13-2003, 02:38 AM
Okay, thanks very much! :)
I like your signature about hugs...heh.