[SOLVED] Meta tag

This is a discussion on "[SOLVED] Meta tag" within the Web Page Design section. This forum, and the thread "[SOLVED] Meta tag are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 20th, 2007, 14:56
mcdanielnc89's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Missouri
Age: 18
Posts: 231
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to mcdanielnc89 Send a message via Yahoo to mcdanielnc89 Send a message via Skype™ to mcdanielnc89
[SOLVED] Meta tag

in html 4.01 i get this ewrror wqen validating...

Code: Select all
 
end tag for element "META" which is not open 
…text/html; charset=iso-8859-1"></meta>

And it is open, lol..
Last Blog Entry: My blog? (Oct 18th, 2007)
Reply With Quote

  #2 (permalink)  
Old Oct 20th, 2007, 14:59
Daniel's Avatar
Elite Veteran
Join Date: Sep 2006
Location: The Kingdom of Rabbits
Age: 21
Posts: 2,051
Blog Entries: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Daniel
Re: Meta tag

you sure its opne?
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
Reply With Quote
  #3 (permalink)  
Old Oct 20th, 2007, 15:06
mcdanielnc89's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Missouri
Age: 18
Posts: 231
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to mcdanielnc89 Send a message via Yahoo to mcdanielnc89 Send a message via Skype™ to mcdanielnc89
Re: Meta tag

Yes here is the full thing.

HTML: Select all
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
Last Blog Entry: My blog? (Oct 18th, 2007)
Reply With Quote
  #4 (permalink)  
Old Oct 20th, 2007, 16:34
SuperMember

SuperMember
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Meta tag

Quote:
Originally Posted by mcdanielnc89 View Post
Yes here is the full thing.

HTML: Select all
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
<meta> should never use a closing tag (just like <img>).

Remove your </meta>.
Reply With Quote
  #5 (permalink)  
Old Oct 20th, 2007, 17:23
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: Meta tag

If you are using (x)HTML, should you not use this:

Code: Select all
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />


Ignore me if i am wrong


Reply With Quote
  #6 (permalink)  
Old Oct 20th, 2007, 19:16
SuperMember

SuperMember
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Meta tag

Yes Marc, that's right. But it's not a closing tag -- it's a "self-closing" tag.

Whether in HTML or XHTML, you should never see the syntax </meta> or </img>.
Reply With Quote
  #7 (permalink)  
Old Oct 20th, 2007, 19:17
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: Meta tag

Yep Mike... Just clarifying just incase someone using xHTML comes accross this thread one day
Reply With Quote
  #8 (permalink)  
Old Oct 20th, 2007, 20:34
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: Meta tag

I have used </meta> at the end of my meta tags and my code validates fine

Oh!!....and i don't know if it makes any difference but i'm using XHTML strict
Reply With Quote
  #9 (permalink)  
Old Oct 20th, 2007, 20:37
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Meta tag

Really Adam? That shouldn't happen, especially in xhtml strict.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #10 (permalink)  
Old Oct 20th, 2007, 20:38
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: Meta tag

Yes....i just revalidated just to make sure and there were no errors at all

Edit: just updated the index page without hte closing </meta> tags

Last edited by AdRock; Oct 20th, 2007 at 20:42.
Reply With Quote
  #11 (permalink)  
Old Oct 20th, 2007, 21:18
SuperMember

SuperMember
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Meta tag

Ack, I'm being a complete idiot.

</meta> is perfectly valid in XHTML. The reason you never see it is that it is that, with everyone serving XHTML with an HTML MIME type, it could cause nastier mangling than the supposedly "HTML compatible" <meta />.

There are actually three valid ways to close empty elements in XHTML:
  • <tag></tag>
  • <tag/>
  • <tag />
Sorry for the confusion.

Last edited by MikeHopley; Oct 20th, 2007 at 21:32.
Reply With Quote
  #12 (permalink)  
Old Oct 20th, 2007, 21:32
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Meta tag

I don't think <tag/> is, as some netscape (i think it was netscape) browsers can't handle it.
Says on w3schools somewhere.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #13 (permalink)  
Old Oct 20th, 2007, 22:10
SuperMember

SuperMember
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Meta tag

Quote:
Originally Posted by alexgeek View Post
I don't think <tag/> is, as some netscape (i think it was netscape) browsers can't handle it.
Says on w3schools somewhere.
They are all valid. Browser compatibility is irrelevant to validity.

Of those three, only <tag /> should currently be used, because the other two have dodgy browser support.
Reply With Quote
  #14 (permalink)  
Old Oct 20th, 2007, 22:28
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Meta tag

I thought the whole point of validity was for browser support. Am I wrong?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #15 (permalink)  
Old Oct 20th, 2007, 22:58
mcdanielnc89's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Missouri
Age: 18
Posts: 231
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to mcdanielnc89 Send a message via Yahoo to mcdanielnc89 Send a message via Skype™ to mcdanielnc89
Re: Meta tag

lol, wow... didn't think this would be much a big thing, lol...
Last Blog Entry: My blog? (Oct 18th, 2007)
Reply With Quote
  #16 (permalink)  
Old Oct 20th, 2007, 23:12
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Meta tag

Personally I think it's a good thing.
You learn a lot from threads like these.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #17 (permalink)  
Old Oct 21st, 2007, 08:51
SuperMember

SuperMember
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Meta tag

Quote:
Originally Posted by alexgeek View Post
I thought the whole point of validity was for browser support. Am I wrong?
The main motivation for writing valid code is to enjoy consistent results across browsers. But you must understand that "what is valid" and "what browsers actually understand" are two different things.
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Meta tags in flash site benssyde Flash & Multimedia Forum 6 Oct 11th, 2007 08:45
[SOLVED] Meta Tag Question euankennedyimorph Web Page Design 2 Oct 1st, 2007 07:46
Meta Tags? daygon Web Page Design 3 Mar 24th, 2006 13:43
meta tags herrlip Introduce Yourself 1 Nov 12th, 2004 15:25


All times are GMT. The time now is 11:18.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

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