Hello All,
I just validated a site and a couple of errors showed up that I don't quite understand
Line 7, Column 12: there is no attribute "name"
<META name="description" content="Welcome to 2b-fit. A site designed to give y…
Line 7, Column 323: element "META" undefined
… you can enjoy our training that will suit every taste and level of fitness" />I wondered if any of the boys and girls could explain?
Thank you as always,
Best wishes
Graeme
Page 1 of 1
Validation
#2
Posted 04 May 2012 - 08:34 AM
You might want to copy and paste your entire head section - including the doctype.
#3
Posted 04 May 2012 - 09:48 AM
Thanks Andrea,
Here it is
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>2B-Fit | Circuit Training | Tone Up | Bootcamp</title>
<META name="description" content="Welcome to 2b-fit. A site designed to give you an insight into our Circuit Training and a great way to keep fit, lose weight, tone up, feel great, meet people and most importantly have fun. Whatever your level you can enjoy our training that will suit every taste and level of fitness" />
<META name="Keywords" content="2b-fit, Circuit Training, boot camp, keep fit, tone up, fitness, Chester-le-Street, Trainer" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="styles/lightbox.css" type="text/css" media="screen" />
Thank you,
Best wishes
Graeme
Here it is
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>2B-Fit | Circuit Training | Tone Up | Bootcamp</title>
<META name="description" content="Welcome to 2b-fit. A site designed to give you an insight into our Circuit Training and a great way to keep fit, lose weight, tone up, feel great, meet people and most importantly have fun. Whatever your level you can enjoy our training that will suit every taste and level of fitness" />
<META name="Keywords" content="2b-fit, Circuit Training, boot camp, keep fit, tone up, fitness, Chester-le-Street, Trainer" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="styles/lightbox.css" type="text/css" media="screen" />
Thank you,
Best wishes
Graeme
My mentors all live here!
#4
Posted 04 May 2012 - 10:19 AM
You're using an XHTML doctype which requires lower case for element and attribute names, including meta tags.
I've just tested one of my files with META which gave three errors inluding the one you describe, but when I reverted to meta that I had before, I got no errors.
I've just tested one of my files with META which gave three errors inluding the one you describe, but when I reverted to meta that I had before, I got no errors.
#5
Posted 04 May 2012 - 10:34 AM
Thank you so much,
So always use lowercase 'meta'? Is that with everything in this DocType?
Best wishes
Graeme
So always use lowercase 'meta'? Is that with everything in this DocType?
Best wishes
Graeme
My mentors all live here!
#6
Posted 04 May 2012 - 11:49 AM
id names, class names, meta tags, title tags
CSS like these:-
HTML markup:-
It isn't necessary for the doctype which can be lower case. It's advisable to code filenames and extensions in lower case like index.html or picture.jpg as mixing lower case and upper case can cause a problem if the case is different in the html markup from the actual filename as most hosting services are case sensitive (although IE locally isn't).
CSS like these:-
body { color: red; }
#wrap { }
.left { }
HTML markup:-
<!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="keywords" content="Memoirs" />
<title>My Memoirs</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="style2.css" media="all" type="text/css" />
<style type="text/css">...........</style>
</head>
<body>
.................content......
</body>
</html>
It isn't necessary for the doctype which can be lower case. It's advisable to code filenames and extensions in lower case like index.html or picture.jpg as mixing lower case and upper case can cause a problem if the case is different in the html markup from the actual filename as most hosting services are case sensitive (although IE locally isn't).
#7
Posted 04 May 2012 - 04:15 PM
I'm pretty sure it's best practice to keep all tags lowercase.
Things should be made as simple as possible, but not any simpler. -Albert Einstein
Share this topic:
Page 1 of 1

Help















