View previous topic :: View next topic |
Author |
Message |
Opal
Joined: 15 May 2003 Posts: 7
|
Posted: Fri May 16, 2003 2:29 am Post subject: <br /> and <br> |
|
|
I've been wondering about the different break tags.. they both appear to do the same thing to a php page visually, so what's the difference, and does it matter which one I use? I also noticed /> on the end of a form input tag on the cafelog.com index, so I'm thinking maybe that's just a php thing or something. _________________ opal.idle.nu |
|
Back to top |
|
 |
Mister44

Joined: 31 Oct 2002 Posts: 237 Location: Philadelphia, PA, USA
|
Posted: Fri May 16, 2003 3:26 am Post subject: |
|
|
<br /> is valid for xhtml. <br> is not. |
|
Back to top |
|
 |
moose
Joined: 04 May 2003 Posts: 196 Location: Winnipeg Canada
|
Posted: Sun Jun 01, 2003 8:12 pm Post subject: |
|
|
With XML or XHTML, all tags that dont close themselves, like <input> or <br> or <hr> for example need to be closed to XML/XHTML knows that its closed. So you would need to change it to <input />, <br />, <hr /> and so on. |
|
Back to top |
|
 |
Opal
Joined: 15 May 2003 Posts: 7
|
Posted: Mon Jun 02, 2003 5:59 pm Post subject: |
|
|
PHP isn't XHTML...right? (I don't really really know much about scripting languages beyond HTML, lol.) _________________ opal.idle.nu |
|
Back to top |
|
 |
blackbook
Joined: 19 Jun 2003 Posts: 9 Location: Cacem
|
|
Back to top |
|
 |
|