Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

the validator says that my category meta tag is wrong.

I only need to have that right to present my project. So, can anyone help me? I don't really know what I am supposed to right into the category meta tag.

Here is the code

<meta name="description" content="Cello Music Types"/>
<meta name="keywords"   content="Cello,Music,2Cellos,Thepianoguys"/>
<meta name="author" content="Percy Vasquez">
<meta name="category" content="Modern and Clasical music performed by the cello"/>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="css/grid.css"> 
<link rel="stylesheet" type="text/css" href="css/normalize.css">
<link rel="stylesheet" type="text/css" href="css/style4cello.css">

Thank you guys,

6 Answers

Hi Percy,

You need to change 'name' for 'itemprop' if your adding 'meta' to the body.

i.e….

<meta itemprop="category" content="Modern and Clasical music performed by the cello"/>

and add another s in classical ;)

To expand on what Wayne said about swapping out your name attributes for itemprop attributes, the issue is related to using the name attribute with the charset attribute.

According to MDN the name attribute "should not be set if one of the attribute itemprop, http-equiv or charset is also set."

Ohh .. I see, Thanks a lot guys. Damn I love this Forum, people can even tell me my grammatical errors. Thanks again However, three is still a problem. This is what the Validator.w3.org said

Line 17, Column 87: The itemprop attribute was specified, but the element is not a property of any item. …temprop="category" content="Modern and Classical music performed by the cello">

I actually did what you guys told me, but the validator still says that I've got an error

<meta itemprop="category" content="Modern and Classical music performed by the cello">

Hi Percy,

Do you have it within the 'head' element?

I've put the code through code pen and find no probs with actual code.

Yes, it is in the head element.

   <head>

<!-- 
Website Project
Your Name: Percy Vasquez
Today's Date: 11/15/2013
-->

<title>CelloSides | Home</title>

<meta name="description" content="Cello Music Types">
<meta name="keywords" content="Cello,Music,2Cellos,Thepianoguys">
<meta name="author" content="Percy Vasquez">
<meta itemprop="category" content="Modern and Classical music performed by the cello">
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="css/grid.css"> 
<link rel="stylesheet" type="text/css" href="css/normalize.css">
<link rel="stylesheet" type="text/css" href="css/style4cello.css">

    </head>

and I'm still getting the error thing in the validator.

Line 17, Column 87: The itemprop attribute was specified, but the element is not a property of any item. …temprop="category" content="Modern and Classical music performed by the cello">

I did some further research, I don't think the category meta tag is valid anymore check out http://www.w3.org/TR/html5/document-metadata.html#standard-metadata-names