Forward slash in php tags?

Status
Not open for further replies.


<br> and <br/> actually produce the same effect, but if you tried to validate your pages you'd know that <br/> is the correct one
 
Also:

A browser will do 'it's best' to render everything in your HMTL. Even if it's incorrect. '<br />' is what we call 'well formed'. By 'well formed' I mean that any opening tag must be closed. Since 'br' isn't a container tag you close it at the same time you open it. It's the same as you would write an XML or HTML container that is empty. Like this <div /> or <span /> or <input />

'<br>' is sloppy. :)
 
'<br>' is sloppy.
icon7.gif
Yeah but all the cool kids do it, so do I.
 
Jesus, why do people respond to shit they know nothing about?

<br> is for use in HTML <= 4.01

<br /> is used in XHTML because XHTML requires that all tags be closed. Since there is no closing tag for <br> (like </br>), you close the tag with />

The same goes for any HTML tag that doesn't have a closing tag, like input, img, link, etc.

And they aren't PHP tags they're (X)HTML.
 
Also:

A browser will do 'it's best' to render everything in your HMTL. Even if it's incorrect. '<br />' is what we call 'well formed'. By 'well formed' I mean that any opening tag must be closed. Since 'br' isn't a container tag you close it at the same time you open it. It's the same as you would write an XML or HTML container that is empty. Like this <div /> or <span /> or <input />

'<br>' is sloppy. :)

You are so fucking wrong
 
Please explain. Its easy to quote folks then make a claim. I'm a reasonable guy. But unless you explain why I'm 'so fucking wrong' then you're just a douchebag. But I mean that in a nice way.

Also, I was just trying to help. Is this your 'move'. Find an easy target and go after them? Matter of fact, that's about all I've seen you do in these forums. Seriously bro. You sound like you know a bunch of stuff. However, rolling this way is going to make everyone ignore you when you do post something constructive.

And are you saying I know nothing about HTML/XML? Just wondering who that was directed at. You really should be more 'informative' in your 'informative posts'.
 
Please explain. Its easy to quote folks then make a claim. I'm a reasonable guy. But unless you explain why I'm 'so fucking wrong' then you're just a douchebag. But I mean that in a nice way.

Also, I was just trying to help. Is this your 'move'. Find an easy target and go after them? Matter of fact, that's about all I've seen you do in these forums. Seriously bro. You sound like you know a bunch of stuff. However, rolling this way is going to make everyone ignore you when you do post something constructive.

And are you saying I know nothing about HTML/XML? Just wondering who that was directed at. You really should be more 'informative' in your 'informative posts'.

Maybe you should read the post right before that one where I gave the correct answer.

I'll highlight the incorrect incorrect parts of your post if it'll make you happy.

Also:

A browser will do 'it's best' to render everything in your HMTL. Even if it's incorrect. '<br />' is what we call 'well formed'. By 'well formed' I mean that any opening tag must be closed <-(in XHTML not HTML). Since 'br' isn't a container tag you close it at the same time you open it <-(in XHTML not HTML).. It's the same as you would write an XML or HTML <- (XHTML not HTML) container that is empty. Like this <div /> or <span /> or <input /> <-(there's no such thing as an empty <div /> or <span />, end tags are required)

'<br>' is sloppy. <-(wrong x 10) :)

It's ok to be a newbie, just don't try to come across at an expert at something you're not.

And, I'm not here to score points and I don't care what you or anyone else thinks of me. If you think I'm a douche because I speak my mind and don't sugar-coat what I say, fine.
 
Wow. Holy fuck.

All good answers. So the / has nothing to do with escaping in php or anything like that. It's just to make validating xhtml pages which luckily, I could give less of a fuck about in this application.

Thanks for all the answers and intelligent discourse.
 
you guys should show girls this thread if you're having trouble getting laid

No trouble getting laid.

It's getting them to fix me a sandwich and get me a beer before they leave that I'm having problems with. They're always bitching about me wiping my dick off in their hair, yada yada yada.
 
Jesus christ what a terrible idea. I have a hard enough time explaining to stupid girls what it is I actually do.

"I'm a computer hacker darling"

I dont mention Im a hack at computers however.
 
Jesus christ what a terrible idea. I have a hard enough time explaining to stupid girls what it is I actually do.

"I'm a computer hacker darling"

I dont mention Im a hack at computers however.

dang, broads must be crawling all over you.
 
Yes, and I'm a software engineer that works mainly on the backend. I suck at design and presentation.

My 'HTML Dick' is not as thick and long as Gumby's. lol
 
Status
Not open for further replies.