Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [w3c-validation]

The tag has no usage guidance.

3
votes
1answer
69 views

Can I use <icon> element in HTML5? It fails the W3C validator

When I go to the W3C validator service, to try out if it complains about using an <icon> element, with this example: <!doctype html> <html lang="en"> <head> <title>...
2
votes
2answers
351 views

Should I ignore W3 CSS Validation Service?

I just checked my site with W3 CSS Validation Service. It had more than 200 errors. Then I checked many sites including Stack OverFlow. Here is the results of Stack OverFlow. SO also has 108 errors. ...
1
vote
1answer
45 views

why and where should i write strict code like xhtml [closed]

I just start to learn web programming, first lesson we study html, I believe our text book content is out of date? It state XHTML is the future... But I seldom hear about it today now? I Google and ...
2
votes
1answer
641 views

itemprop for canonical link and meta description in the head

I've a problem with validation of the code provided by Google. Idea is (simplified): <head itemscope itemtype="http://schema.org/WebSite"> <title itemprop="name">Example.com - Best ...
1
vote
1answer
734 views

Each of my media queries is getting a parse error when I try to validate css

I am trying to validate a css file. Every one of my media queries is getting a parse error. I have checked and I do not have any missing curly brackets, colons, or semi-colons. I also set the W3C ...
3
votes
5answers
216 views

Is using the <u> tag invalid or bad for SEO?

A few years back in about 2010 I ran the W3C.org validity checker tool on a Drupal 6 website that is no longer exist and I clearly remember getting a message like "usage of <u> tags isn't valid" ...
1
vote
1answer
30 views

First I'm told to avoid table for layout and now using floats is bad for mobile?

I ran my mobile home page through the website validator at: https://validator.w3.org/ and it complains that: The CSS style sheet contains rules referencing the position, display or float ...
1
vote
2answers
139 views

Can I include title for an HTML5 a element?

Can I add title attribute for "a" element in HTML5? The spec does not mention title attribute for "a" element here http://www.w3.org/TR/html-markup/a.html, so for example, would it be valid to use &...
1
vote
1answer
208 views

What is the correct DTD for Schema DATA placement in XHTML pages?

We get W3C validation error after placing Scheme Data in our website which was built in XHTML. Line 198, Column 41: there is no attribute "data-id" <script type="IN/FollowCompany" data-id="...
2
votes
1answer
188 views

As per W3C can we add onclick inside li tag?

I have 2 questions: As W3C can we add onclick inside <li> tag? Will this affect anything to do with SEO? For example: <li onclick="newDoc()">Click!</li> function newDoc() {...
0
votes
1answer
127 views

the right way of specifying website files in html [closed]

i specify my website's internal files like this for my website: www.mscaspian.com ` but when i validate it with w3c it says there is an error in the last part, '>' . i don't understand why this is ...
0
votes
1answer
642 views

How to add custom CSS for Addthis and validate on W3C validator?

I have Addthis code on the very bottom of the page HTML code, and then, after it I have CSS file with some custom decorations of Addthis widget. Everything looks like this: <script type="text/...
2
votes
0answers
3k views

W3C validation error: aria-controls attribute must point to an element in the same document

I'm running my website through the W3C Markup validator and I'm getting the following error: The aria-controls attribute must point to an element in the same document. …"ui-accordion-1-header-2" ...
6
votes
3answers
4k views

Using Schema.org logo markup with SVG images

I've made a logo which is awesome and I've saved it in AI and SVG format. I wish to use the SVG file on the a site as the logo will appear many times all over the site and would be better than saving ...
1
vote
2answers
801 views

Cannot solve errors on W3C validator

I have found a webpage that can check for errors in my webpage's code. Here are the errors I couldn't solve: End of file seen and there were open elements. Unclosed element div. <div id="...
1
vote
2answers
843 views

Using Google pagespeed service - w3 validator gives errors

I've started using google pagespeed service and now when I check my site on http://validator.w3.org/ with doctype HTML5 and encoding UTF8 - I'm getting more than 80+ errors and 95% of them are errors ...
8
votes
4answers
7k views

Does Google consider W3C validation errors of a website? If so why www.google.com has 23 Errors, 4 warning(s)

Some SEO analysts says that fixing W3C validation errors of a website is an important On Page Optimization if so why www.google.com has 23 W3C validation errors, 4 warning(s)? Does Google consider ...
5
votes
2answers
4k views

HTML5+Microdata validation errors: Attribute 'content' not allowed on element 'p'

According to Google’s documentation about the Product Rich Snippet, when I want to mark product’s availability in my shop, I should do the following (using Microdata): <span itemprop="availability"...
16
votes
3answers
25k views

Name attribute is obsolete, what is the correct behavior when dealing with anchors?

When testing my code using the w3 html5 validator, I get this warning message: Warning: The name attribute is obsolete. Consider putting an id attribute on the nearest container instead. Question(...
8
votes
2answers
14k views

Is it valid to have multiple form input elements with the same name?

Is it valid markup and is it valid to the HTML/HTTP spec? If I wanted to have <form> <input name="email" /> <input name="email" /> <input name="email" /> </form> is ...