--- Robert <[EMAIL PROTECTED]> wrote:
> 
> 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 <br /> 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.

As has already been touched on, what you are seeing is the proper syntax
for XML/XHTML.  In HTML, some tags (for instance, <br>, <hr>, <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.  <br> by
itself is not proper XHTML, it should be written <br></br>, and <br /> is
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.


Michael Roush
[EMAIL PROTECTED]

"The power of the Web is in its universality. Access by everyone regardless of 
disability is an essential aspect." 
-- Tim Berners-Lee, W3C Director and inventor of the World Wide Web


                
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 


The PHP_mySQL group is dedicated to learn more about the PHP_mySQL web database 
possibilities through group learning.  
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php_mysql/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to