Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Use
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Use "<br />" or "<br>"?

 Post Reply Post Reply
Author
Mikael View Drop Down
Groupie
Groupie
Avatar

Joined: 16 November 2002
Status: Offline
Points: 151
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mikael Quote  Post ReplyReply Direct Link To This Post Topic: Use "<br />" or "<br>"?
    Posted: 22 May 2003 at 1:50am
What is the differences between "<br />" and "<br>"? I saw that microsoft started to use the / in the end of theirs html-tags a year ago, and now it's used in ver 7 of this forum too...
Back to Top
Allan_Young View Drop Down
Newbie
Newbie


Joined: 18 May 2003
Location: United Kingdom
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote Allan_Young Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 2003 at 2:26am

As I understand it the only difference is <br> relates to pure HTML whereas <br /> relates to the new XHTML.

Anyone designing web pages should really be using XHTML code now, other differences like including / in image tags, like <img src="myimage.gif" width="10" height="10" />

Back to Top
pedalcars View Drop Down
Senior Member
Senior Member


Joined: 12 August 2002
Location: United Kingdom
Status: Offline
Points: 268
Post Options Post Options   Thanks (0) Thanks(0)   Quote pedalcars Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 2003 at 5:20am
Correct. In XHTML and XML unterminated tags are forbidden, so eg:

<p>First paragraph

<p>Second paragraph

is illegal, even though most browsers will display it correctly. Paragraphs must be terminated with </p>.

However, not all tags are paired, such as <br>, <hr> and <img ...> to name a few. These must be written as <br />, <hr /> and <img ... />, etc.

The space before the closing / is also essential, as <br/> (etc) without the space will confuse browsers.

More info a www.w3.org
www.pedalcars.info

The most fun on four wheels

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.