[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.


 Subscribe in a reader

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

Notices




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

SuperMember
Join Date: Sep 2007
Location: Missouri
Age: 19
Posts: 232
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
[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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
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
Re: Meta tag

you sure its opne?
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Oct 20th, 2007, 15:06
mcdanielnc89's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Missouri
Age: 19
Posts: 232
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Oct 20th, 2007, 16:34
Most Reputable Member
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>.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Oct 20th, 2007, 17:23
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,780
Thanks: 0
Thanked 16 Times in 16 Posts
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


__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Oct 20th, 2007, 19:16
Most Reputable Member
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>.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Oct 20th, 2007, 19:17
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,780
Thanks: 0
Thanked 16 Times in 16 Posts
Re: Meta tag

Yep Mike... Just clarifying just incase someone using xHTML comes accross this thread one day
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Oct 20th, 2007, 20:34
Highly Reputable Member
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Oct 20th, 2007, 20:37
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: Meta tag

Really Adam? That shouldn't happen, especially in xhtml strict.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Oct 20th, 2007, 20:38
Highly Reputable Member
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Oct 20th, 2007, 21:18
Most Reputable Member
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Oct 20th, 2007, 21:32
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Oct 20th, 2007, 22:10
Most Reputable Member
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old Oct 20th, 2007, 22:28
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
Old Oct 20th, 2007, 22:58
mcdanielnc89's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Missouri
Age: 19
Posts: 232
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Meta tag

lol, wow... didn't think this would be much a big thing, lol...
Last Blog Entry: My blog? (Oct 18th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16  
Old Oct 20th, 2007, 23:12
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #17  
Old Oct 21st, 2007, 08:51
Most Reputable Member
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
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


All times are GMT. The time now is 00:36.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8