Project / Support Center
Welcome, Guest. Please login or register. July 04, 2022, 12:51: PM
Home Help Search Login Register
D-Web Web Site Creator D - Web Web Site Creator On-line HTML Editor No Programming knowledge required. Web Global Net PayPal-Cart Shopping Cart System PayPal - Kart Shopping Cart System for E-Commerce over the internet, that's easy to use. Web Global Net Newsletter Manager Newsletter Manager On-line Newsletter Creator with Email Subscriber Management.
Ring Central Discount
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  MySQL/PHP  |  Topic: Using Backslashes 0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Send this topic Print
Author Topic: Using Backslashes  (Read 11995 times)
Michael Roush
« Reply #2 on: March 29, 2005, 02:59: AM »

As has already been touched on, what you are seeing is the proper syntax
for XML/XHTML.  In HTML, some tags (for instance,
, <img>) have
no closing tag.  In XML (of which XHTML is a hybrid version still readable
by HTML-onbly browsers), *every* tag must have a closing tag. 
itself is not proper XHTML, it should be written
</br>, and
an allowable shorthand method.

If you are not using XHTML (check the <!doctype> tag at the top of your
document.  If there isn't one, there should be!), then you should not be
writing your tags with closing slashes.
Report to moderator   Logged
« Reply #1 on: March 29, 2005, 12:29: AM »

When you have a tag that doesnt have a corresponding end tag, like <p>
and </p> compared to
, you put the a space and then the slash to
indicate that this is the end.

You would also use this at
<input type="submit />

Its not specific to php, but a HTML characteristic.
Report to moderator   Logged
« on: March 29, 2005, 12:18: AM »

Ok I searhed for this in the english version of the php manual but
could not find the answer. Often when I am reading a coding example I
see code of the type
 With the backslash BEHIND the Closing HTML
tag and with a space inbetween the tag and the backslash. This seems
backward fromt he way I learned html coding. Is the something special
to php and if so what does it do. As I said I searched the manual
for ,<space> />,backslash, and "/>" But none of the hits seemed to
descript that syntax.
Report to moderator   Logged
Pages: [1] Go Up Send this topic Print 
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  MySQL/PHP  |  Topic: Using Backslashes « previous next »
Jump to:  

Login with username, password and session length
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!