homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Validate Meta Tags

 10:22 pm on Jun 2, 2004 (gmt 0)

I thought it would be nice to validate my website. for whatever reason W3C does not like my Meta tags. When I upload my page my Meta tags look like the example below. When I check the source code I get <META NAME="DC.Title".... Maybe my page is not uploading to the server but W3C says I do not end my Meta correctly. It stats that I don't have the "/> to close it but rather a " > This has been a nightmare trying to fix this problem

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<meta name="Author" content="Business Name"/>
<meta name="Keywords" content="word, a phrase, word"/>
<meta name="Description" content="A sentence of description here."/>
<meta name="Expires" content="NEVER"/>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<link rel="stylesheet" type="text/css" href="http://www.example.com/style.css"/>
<title>Business Name</title>

[edited by: tedster at 4:04 am (utc) on June 3, 2004]
[edit reason] remove specifics [/edit]



 10:24 pm on Jun 2, 2004 (gmt 0)

Maybe you can try putting a space between the quote and slash ... < ...blahblah." />

I think I ran into that problem once or twice.


 10:30 pm on Jun 2, 2004 (gmt 0)

Then why would it put the following in my source code.
<META NAME="DC.Subject"
<Meta name="Dc.Description" etc.


 10:41 pm on Jun 2, 2004 (gmt 0)

There seems to be quite a few issues regarding XHTML strict validation. You may want to take some time to read the specification information located at the w3.org site. Section 4: Differences with HTML 4 [w3.org] as well as Appendix C: HTML Compatibility Guidelines [w3.org] will provide lots of direction and other tips on how to get your code validated.

Then why would it put the following in my source code.

What is it? A WYSIWYG editor, like FrontPage or Dreamweaver?


 10:50 pm on Jun 2, 2004 (gmt 0)

When I look at the source code in Dreamweaver it looks fine. When I upload the htm file onto the server the source code has the following DC.


 11:44 pm on Jun 2, 2004 (gmt 0)

Cyprus2003, as you're using XHTML rather than HTML, all tags must be in lower case. Hence
meta name, not META NAME or Meta name. You also had some double equal signs (==), and I'm guessing the "Business name" tag was for defining the author. Finally, as others have mentioned, it is best to leave a space before the trailing slash. Try this (I've tidied things up and changed the order a bit):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">


<title>Business Name</title>

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

<meta name="author" content="Business Name" />
<meta name="keywords" content="word, a phrase, word" />
<meta name="description" content="A sentence of description here." />
<meta name="Expires" content="NEVER" />
<meta name="DC.Title" content="whatever" />
<meta name="DC.Subject" content="whatever" />
<meta name="DC.Description" content="whatever" />

<link rel="stylesheet" type="text/css" href="/style.css" />

<p>content here</p>



 5:31 am on Jun 9, 2004 (gmt 0)

Someone told me that DC tags etc. are useless. Is this true? I have them on my site which I bought already all set up.


 5:41 am on Jun 9, 2004 (gmt 0)

...well, they're not used by any public SE that I know of...if you've got some sort of system on your network that uses the DC categorization then they might have some use.


 6:05 am on Jun 9, 2004 (gmt 0)

Sorry to ask such basic or dumb questions but what would a network be?
I use FrontPage2002 to make changes on my site in case this has anything to do with it.
The DC stuff has been there since I bought the web site.


 6:29 am on Jun 9, 2004 (gmt 0)

If you were running an intranet or some sort of library site that used this then DC might be something useful...it sounds like in your case they are wasted bits. You can leave them if you like...they won't harm anything....they won't do anything for your rankings either.


 6:32 am on Jun 9, 2004 (gmt 0)


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved