Jump to content


Photo

Validation


  • Please log in to reply
6 replies to this topic

#1 Graeme

Graeme

    Advanced Member

  • Member
  • PipPipPipPip
  • 261 posts

Posted 04 May 2012 - 07:51 AM

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
  • 0
My mentors all live here!

#2 Andrea

Andrea

    Advanced Member

  • Moderators
  • 5,727 posts
  • Facebook:https://www.facebook.com/aandbwebdesignAB
  • LocationSan Antonio, TX

Posted 04 May 2012 - 08:34 AM

You might want to copy and paste your entire head section - including the doctype.
  • 0

#3 Graeme

Graeme

    Advanced Member

  • Member
  • PipPipPipPip
  • 261 posts

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...nsitional.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
  • 0
My mentors all live here!

#4 Wickham

Wickham

    Advanced Member

  • Advanced Member
  • PipPipPipPip
  • 1,732 posts
  • LocationSalisbury UK

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.
  • 0

#5 Graeme

Graeme

    Advanced Member

  • Member
  • PipPipPipPip
  • 261 posts

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
  • 0
My mentors all live here!

#6 Wickham

Wickham

    Advanced Member

  • Advanced Member
  • PipPipPipPip
  • 1,732 posts
  • LocationSalisbury UK

Posted 04 May 2012 - 11:49 AM

id names, class names, meta tags, title tags
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).
  • 0

#7 benjaminmorgan

benjaminmorgan

    Advanced Member

  • Member
  • PipPipPipPip
  • 237 posts

Posted 04 May 2012 - 04:15 PM

I'm pretty sure it's best practice to keep all tags lowercase.
  • 0
Things should be made as simple as possible, but not any simpler. -Albert Einstein




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users