| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Closing Tag Question | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#3
|
|||||||
|
|||||||
![]() Kube, thank you for the reading material.
is it true that && should actually 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 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() For valid XHTML it should be & (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 &
__________________
Doms kube v4.1.9 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|