Welcome to WebmasterWorld Guest from 54.158.36.59

Forum Moderators: incrediBILL

Message Too Old, No Replies

Validate Meta Tags

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

10+ Year Member



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 Jun 2, 2004 (gmt 0)

10+ Year Member



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)

10+ Year Member



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 Jun 2, 2004 (gmt 0)

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



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)

10+ Year Member



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)

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



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

10+ Year Member



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

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



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

10+ Year Member



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

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



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)

10+ Year Member



Thanks!
 

Featured Threads

Hot Threads This Week

Hot Threads This Month