Welcome to WebmasterWorld Guest from 54.167.83.224

Forum Moderators: incrediBILL

Message Too Old, No Replies

Validate Meta Tags

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

New User

10+ Year Member

joined:June 1, 2004
posts:18
votes: 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">
<head>
<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 June 2, 2004 (gmt 0)

Full Member

10+ Year Member

joined:Mar 17, 2004
posts:215
votes: 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 June 2, 2004 (gmt 0)

New User

10+ Year Member

joined:June 1, 2004
posts:18
votes: 0


Then why would it put the following in my source code.
<META NAME="DC.Title"
<META NAME="DC.Subject"
<Meta name="Dc.Description" etc.
10:41 pm on June 2, 2004 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12533
votes: 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 June 2, 2004 (gmt 0)

New User

10+ Year Member

joined:June 1, 2004
posts:18
votes: 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 June 2, 2004 (gmt 0)

Senior Member from CA 

WebmasterWorld Senior Member encyclo is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 31, 2003
posts:9063
votes: 2


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" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

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

<head>

<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" />
</head>
<body>

<p>content here</p>

</body>
</html>
5:31 am on June 9, 2004 (gmt 0)

New User

10+ Year Member

joined:May 11, 2004
posts:15
votes: 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.
Carol
5:41 am on June 9, 2004 (gmt 0)

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts:14470
votes: 49


...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 June 9, 2004 (gmt 0)

New User

10+ Year Member

joined:May 11, 2004
posts:15
votes: 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.
Thanks,
Carol
6:29 am on June 9, 2004 (gmt 0)

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts:14470
votes: 49


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 June 9, 2004 (gmt 0)

New User

10+ Year Member

joined:May 11, 2004
posts:15
votes: 0


Thanks!
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members