PDA

View Full Version : Html


EVB
04-10-2005, 13:45
Been having an argument with my personal tutor at Uni...

For a new paragraph (P) is used, in the tag brackets. For a new line, (BR) is used in the tag brackets.

Apparantly you need to close the tags as well, I have never ever closed tags for these two commands, always do for fonts/body/etc?

Is he being a bellend or me?

Daz, posted it here as Andy said your good at it :)

Darren
04-10-2005, 13:51
<p> That at the begining of a paragraph
</p> That at the end of a paragraph (This is optional, but its use prevents common browser bugs with style sheets)

<br> That will just make you go onto the next line (like hitting enter/return)

I always close the P as its a safe bet ;)

Daz :thumbs:

CraigM
04-10-2005, 13:55
Agree with Mr Noonan :):):)

Darren
04-10-2005, 13:57
Just updated my post above to make it a little more clearer for some people ;)

Andy_SRi
04-10-2005, 13:58
I Concur :err: :look:

ka$h
04-10-2005, 13:58
for correctness, you should close all tagged commands and both </p> and </br> should be used as good practice, but as html has evolved, these two commands have become redundant. On an 'old' browser that can only read html 1.0, you will get page errors if you haven't used the above close tag commands.

Darren
04-10-2005, 14:00
Well thats CCUK going down the pan then :look: :lol:
- As no chance am I closing the B ones as there really isnt any point. HTML 2 made it so you didnt need to... and if someone is using a browser with HTML 1 then they are just fooking stupid :roll:

Daz :thumbs:

EVB
04-10-2005, 14:01
My lecturer said I have to close BR ones as well.

andym765
04-10-2005, 14:01
wooooooo way over my head nerds! :lol: joke

Darren
04-10-2005, 14:04
My lecturer said I have to close BR ones as well.
Well get them closed then....

Liek kash said its good practice... and to be honest when I am coding for the site I "do" close using </br> however if I am doing a small text webpage then sometimes I wont.

Just do it its only 5 press's on the keyboard ;)

Darren
04-10-2005, 14:05
http://www.htmlhelp.com/ <--- thats site might help you ;)

Andy_SRi
04-10-2005, 14:07
TO be fair, dreamweaver does all my code :lol:

Darren
04-10-2005, 14:15
TO be fair, dreamweaver does all my code :lol:
:nono: Never reply on a program too much - I have learnt that the hard way :err:

Andy_SRi
04-10-2005, 14:19
:nono: Never reply on a program too much - I have learnt that the hard way :err:

I can do most things, other than code, properly confuses me

fil_b
04-10-2005, 14:39
the more you code - the easier it get - read it like a book

but been ages since i did coding - dreamweaver helps alot tho

Andy_SRi
04-10-2005, 14:44
Last thing I coded was a sinclair 128k :lol:

10 Print " I am the daddy"
20 GoTo 10

And ive probably even got that wrong

EVB
04-10-2005, 18:01
Stupid bloody lecturer always has to be right :x

Si
04-10-2005, 18:40
As most said above best practice to close all your html tags. Can mess your sites formatting up quite alot if you dont close some tags like <b> for bold text and <font> tags unclosed can cause problems too.

gonkowonko
05-10-2005, 12:32
I think like everyone closing tags is a good idea except the <br> tag as all it does is tells the browser new line please,

You also have to account for how other browsers other than IE will render your page as i have found IE to try and be clever and try and fix my code when it renders it but with another browser it says ur crap try again lol

EVB
05-10-2005, 13:13
Stuff like formatting I always close tags, but P and BR commands I didnt think I had to. I do now :)

Mart
10-10-2005, 11:41
you should always close tags like that. Believe it or not, these are actually part of body formatting.

SpeedX
19-10-2005, 18:49
You can close a <br> tag??? I just usually use something like

<html>
<head>
<title>

<body>
My
<br>
text
<br>
here

</body>
</head>
</html>

Break line does not need to be closed does it? Would it even work if you did close it? Im not gonna try it tho!

Darren
20-10-2005, 08:39
They dont have to be closed... however there is no harm in closing them and YES they still work ;)