View Full Version : Html
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 :)
<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:
Agree with Mr Noonan :):):)
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:
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.
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:
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
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 ;)
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:
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
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
Stupid bloody lecturer always has to be right :x
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
Stuff like formatting I always close tags, but P and BR commands I didnt think I had to. I do now :)
you should always close tags like that. Believe it or not, these are actually part of body formatting.
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!
They dont have to be closed... however there is no harm in closing them and YES they still work ;)
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.