Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

If I generate content with CSS can I still apply microdata to it in the HTML?

Will Schema or RDFa accept an alt or title tag as a value. h1:after,h2:after,h3:after,h4:after,h5:after,h6:after {content:attr(title);display:block;}
h1:before,h2:before,h3:before,h4:before,h5:before,h6:before {content:attr(alt);display:block;}

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

Whatever you mean by “schema markup”, the answer is “No.” Generated content is plain text and cannot contain any markup or have any markup associated with it.

share|improve this answer
1  
Most probably he means microdata like RDFA or Schema.org. I think. –  PatomaS Mar 2 at 8:38
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.