Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 





Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read

Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
Thread Tools
Old 12-01-2005, 07:15 PM   #1 (permalink)
Manager Emeritus
 
v-six's Avatar
 
Join Date: Sep 2004
Location: High Falls, NY
Posts: 2,073
OS: OS X for mac, XP Pro for PC


Send a message via AIM to v-six
no-cache tag in xhtml

Hi guys, really quick question and I promise I'll leave you alone.
The tag for no-cache that I've seen everywhere is
<meta http-equiv="pragma" content="no-cache">
but this doesn't validate at W3. I changed it to
<meta http-equiv="pragma" content="no-cache"/>
and it validates fine. Is there any reason for this, and any problem with putting the slash in?
__________________
mysql> --i-am-a-dummy

v-six is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 12-01-2005, 07:22 PM   #2 (permalink)
Manager, Design
 
ebackhus's Avatar
 
Join Date: Apr 2005
Location: SATX
Posts: 12,767
OS: WinXP Pro SP3

My System

Blog Entries: 25
Send a message via ICQ to ebackhus Send a message via AIM to ebackhus Send a message via MSN to ebackhus Send a message via Yahoo to ebackhus Send a message via Skype™ to ebackhus
Well, the / usually is used in closing tags as I'm sure you know. Why W3 didn't validate it is beyond me. More importantly, does it work without it?
__________________


-----------------------------
There are no dumb questions, unless a customer is asking them.

Help in the fight against cancer and other serious illnesses.

ebackhus is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 12-01-2005, 07:25 PM   #3 (permalink)
Manager Emeritus
 
v-six's Avatar
 
Join Date: Sep 2004
Location: High Falls, NY
Posts: 2,073
OS: OS X for mac, XP Pro for PC


Send a message via AIM to v-six
It works without the closing tag. The weird thing is, if you look up no-cache, everywhere you see it will be the version without the closing tag.
__________________
mysql> --i-am-a-dummy

v-six is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 12-01-2005, 11:27 PM   #4 (permalink)
Cymru am byth
 
DumberDrummer's Avatar
 
Join Date: Oct 2003
Location: Oregon
Posts: 5,377
OS: Windows XP Pro SP2

My System

Send a message via AIM to DumberDrummer Send a message via Yahoo to DumberDrummer
Ok, there have been some changes over time in what the w3 considers "proper" html, which is usually to normal html what oxford english is to our vernacular.

Anyway, one of the things they require for xhtml 1.0 strict is a closing tag for ALL tags, even ones that don't normally close, like img, meta, etc...

The way to do it "properly" is to self-close the tag.

So where you used to go <img src="foofoo.jpg" alt="foofoo">

You now have to self close it so it will validate: <img src="foofoo.jpg" alt="foofoo" />

Same with BR: <br /><br />

and so forth.

Just one of the ways the W3 is trying to clean up and standardize Markup language.

Sidenote: some older browsers won't render the tag properly unless you add a space after the tag text and the self-close, ex: <br/> as opposed to <br />.
__________________

Living with Louie dog's the only way to stay sane
_____________________________________________

... and with those words so begins my lifetime of longing for the devil's warm embrace

Last edited by DumberDrummer : 12-01-2005 at 11:29 PM.
DumberDrummer is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 12-01-2005, 11:31 PM   #5 (permalink)
Professor/Moderator, TSF Design School
 
Grove's Avatar
 
Join Date: Jun 2005
Location: Australia
Posts: 2,382
OS: Windows XP SP2


Good Point DD. The languages are being updated all the time. XHTML must be in the proccess of adding the / as it will become important as new code in the future will need to use it.

They are also trying to stay consistent with the other languages.
__________________
==========================================

Get Help:
TSF Security Forum | HijackThis | MB's 5 Step Process
Get Clean:
AdAware SE | Spybot S&D | CWShredder | Ewido | CleanUp!
Get Protected:
SpywareBlaster | SpywareGuard | Windows Updates | IE-SpyAd


If TSF has helped you, please consider making a donation to help keep the board running.
Grove is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Reply


Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -7. The time now is 04:43 PM.



Copyright 2001 - 2008, Tech Support Forum

Search Engine Friendly URLs by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82