Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Closing Tag Question

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-02-2008, 02:04 PM
 
Duramax 6.6L Duramax 6.6L is offline
 

X-Adept
  
Join Date: Dec 2006
Posts: 865
 

Default Closing Tag Question

When closing a line is the following correct?

Standard line >
Image line />

I have been looking throgh the code and see quite a few of these.

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="description" content="A full service store for oem and aftermarket performance parts." />

Is the closing /> wrong? Should it just be >?
__________________
Xcart 5.1.6 Building New Store
Xcart4.6.4 Gold Plus
Xcart 4.6.4 Platinum
Smart Template,
Mail Chimp Upgrade
Checkout One (One Page Checkout)
Checkout One X-Payments Connector
Checkout One Deluxe Tools
Call For Price
On Sale Module
Buy Together Module
MAP Price MOD
Reply With Quote
  #2  
Old 03-02-2008, 02:13 PM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Closing Tag Question

Hi Duramax,

No, it's not wrong. Empty HTML tags, the ones that do no not need an ending/closing tag, such as input, img, and meta should always end with /> to make an xhtml well-formed doc.

http://www.w3schools.com/tags/tag_meta.asp

http://www.javascriptkit.com/howto/xhtml_intro.shtml

Hope this helps.
Doms
__________________
Doms
kube v4.1.9
Reply With Quote
  #3  
Old 03-02-2008, 03:50 PM
 
Duramax 6.6L Duramax 6.6L is offline
 

X-Adept
  
Join Date: Dec 2006
Posts: 865
 

Default Re: Closing Tag Question

Kube, thank you for the reading material.

is it true that && should actually be &amp;
__________________
Xcart 5.1.6 Building New Store
Xcart4.6.4 Gold Plus
Xcart 4.6.4 Platinum
Smart Template,
Mail Chimp Upgrade
Checkout One (One Page Checkout)
Checkout One X-Payments Connector
Checkout One Deluxe Tools
Call For Price
On Sale Module
Buy Together Module
MAP Price MOD
Reply With Quote
  #4  
Old 03-02-2008, 04:30 PM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Closing Tag Question

For valid XHTML it should be &amp; (as well as a few other html-encoded & types) but a straight & on its own should fail.

Language variables, in particular, seem to suffer from this and treat & as & rather than an &amp;
__________________
Doms
kube v4.1.9
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:56 PM.

   

 
X-Cart forums © 2001-2020