The W3C Validation tool is used to validate HTML and CSS, to make sure the language syntax is correct and error free. Correct use of this tool solves 90% of HTML problems.

learn more… | top users | synonyms

0
votes
0answers
14 views

How to validate my Alexa code <noscript> tag in Head section

The doctype and HTML tag of my page is below: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd"> <html ...
0
votes
1answer
19 views

Asp.net link runat server w3c validator

when i run a link server side like this: <link runat="server" id="staticCss" href="....css?v=0" media="all" rel="stylesheet" type="text/css" /> asp.net renders it with <link ...
-1
votes
2answers
39 views

W3C validation errors need to solve [on hold]

I have some error in W3C validation I set <!DOCTYPE HTML> for my page but i have some error and as per below image I am try to solve this but not getting success. Please give me suggestion ...
3
votes
1answer
327 views

W3 Validator new error Meta requires 'name' attribute

w3 validator was all fine with this code <meta property="og:site_name" content="--Sitename--" /> if i replace the 'property' attribute with 'name' w3 says og:site_name is not registered... ...
0
votes
1answer
18 views

In social networking getting W3c error

I use some social network functionality for my site for that i add <div class="share-buttons share-buttons-tab" data-buttons="twitter,facebook,google,pinterest" data-style="medium" ...
0
votes
1answer
28 views

meta tag w3c validation error html 5

I have this error while validating my web page(html 5) "Bad value Cache-Control for attribute http-equiv on element meta.". This is my HTML code on page source: <!doctype html> <html> ...
0
votes
0answers
17 views

W3C error occurred: document type does not allow element “script” here

Im trying to validate in W3C and I have this error coming up : Line 41, Column 74: document type does not allow element "script" here …ipt type="text/javascript" ...
0
votes
2answers
37 views

W3C validation error 'document type does not allow element “link” here'

I am using two files for displaying my webpage one is for header and footer(layout.htm) and the content(content.htm) using smarty I am including the file Eg: layout.htm <html> ...
-2
votes
2answers
27 views

<!DOCTYPE> w3c validation error

delimiter ">" invalid: only name, "#IMPLIED" and parameter separators are allowed here is the validation link w3c validation error Hi All as per below answers i have updated some things but the ...
5
votes
2answers
58 views

SVG and CSS properties in the same file

When I put SVG and CSS properties in a single file: .circle { stroke: red; } .myArea { width: 100%; } It works. But is it valid according to the W3C? This code doesn't pass the validation ...
1
vote
5answers
41 views

One W3C validation errors I really want to correct

This would be my first website and I do not want to leave it these errors. Can someone please help me with these ones? Error 1: if (xmlhttp.readyState==4 && xmlhttp.status==200) error: ...
2
votes
2answers
35 views

Is it illegal to set the parent of block element to inline display? [duplicate]

Is it valid CSS to have a block element inside of an inline element? For example: <a href="#"> <span></span> </a> Is span { display: block; } illegal while the ...
0
votes
0answers
20 views

HTML5 IE9 validation

Is there any way to include IE9 conditional statements and still validate without errors/warning? e.g. <!--[if lt IE 9]> <script src="dist/html5shiv.js"></script> ...
0
votes
2answers
32 views

Validation issue with <link> tags with media query inside

I have this piece of code within my link tag: media="(-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi)" Which displays my website in a different way when using a Retina device, however, ...
0
votes
1answer
19 views

validate tags inside anchor

Till now i know that inside <a> you can place a <span> which is perfectly HTML Validate But what about other tags like:- div, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, ...
1
vote
1answer
23 views

iframe w3 with properties

So I've been working with a webpage. We have iframes to display our sponsor images, we need &s in the url stack to make sure the image shows up correctly. However w3 says that this isn't correct ...
5
votes
2answers
53 views

HTML standards for input names on complex forms

There is a standard or a good practice on choosing the name attribute value in complex HTML form input elements? For example: <input type="text" name="post[comments][0][author][name]" /> But ...
0
votes
1answer
56 views

Is it a Must to Validate Global Codes?

There are some global codes which are not valid according to w3c standards for example we can consider YouTube embed code or Facebook plugins. In such cases, what shall we do? <iframe width="560" ...
0
votes
1answer
51 views

Validator.w3.org doesn't understand my HTML 4.01+RDFa

I have following code in the page head: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa-1.dtd"> <html xml:lang="<?php echo ...
0
votes
1answer
56 views

How to fix the facebook login button w3 validator error

In my project i have added fconnect button code as follows. I have used HTML 5. <fb:login-button>Login with Facebook</fb:login-button> My doctype declaration us as follows. ...
-1
votes
1answer
37 views

Vaildation wordpress says Bad value contentlinks for attribute role on element footer [closed]

I am trying to validate my wordpress page and it keeps saying Bad value contentlinks for attribute role on element footer. Here is the code: In comments The there anything I can do to correct it? ...
-1
votes
1answer
47 views

How can I convert this to pass markup validation? [closed]

This keeps coming up with a validation error: $("#preview").html('<div align="center"><img src="/ajaximage/loader.gif" alt="Uploading...."/></div>'); It says: document type does ...
0
votes
2answers
31 views

th colspan fails w3c validations

what is wrong with the following? <table> <tr> <th> Blah </th> <th colspan="2"> Something </th> </tr> <tr> <td> .. </td> <td ...
1
vote
1answer
25 views

Is it acceptable for a submit button to have a name attribute?

Usually, a submit button works fine without a name attribute. However, there are occasions where there's a need to have two submit buttons for the same form, hence making use of the name attribute to ...
0
votes
1answer
38 views

Find errors in specific website files (PHP, TPL etc.) [closed]

I have a website online that's mainly built up on PHP and consists of 40,000-something files. When using the W3 Validator tool to find errors in my code, it produces around 20 errors and shows which ...
0
votes
1answer
350 views

w3c validation error - there is no attribute “placeholder”

I am getting the following error from w3c validation Line 326, Column 63: there is no attribute "placeholder" … type="text" name="pc" id="postcodefield" ...
0
votes
1answer
222 views

document type does not allow element “div” here; missing one of “object”, “applet”, “map”, “iframe”, “button”, “ins”, “del” start-tag

I am getting a w3c validation error here as The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both ...
3
votes
2answers
337 views

Invalid role attribute value for section element?

In a website I'm working on right now, I have a section element which type is set to "main". According to the WAI-ARIA (http://www.w3.org/html/wg/drafts/html/master/dom.html#wai-aria), the section ...
0
votes
1answer
97 views

error : Element input with attribute type whose value is button must have non-empty attribute value

Folks, I am using joomla 2.5.8 with virtuemart 2.0.6. Upon w3 validation i get following error's : Element input with attribute type whose value is button must have non-empty attribute value ...
0
votes
3answers
61 views

Is it posible to have the w3 validator ignore php tags [duplicate]

It ( online validator ) is pulling errors for my php tags. I have to manually remove all the php inserts to get my html to validate. Is there a better way to do this? Here is the first error: Line ...
1
vote
1answer
280 views

W3C error: document type does not allow element X here; missing one of Y start-tag

In my HTML/PHP code I have the following piece of code which makes sure the filtering is removed from a group of fields with JavaScript. <form id="prices" action=""> <div class="box ...
0
votes
0answers
41 views

Adding ID attribute to all HTML elements of a web application?

Currently I am building a web portal using RoR, MySQL, HTML, CSS and jQuery etc., I got a request from my automation test engineer to add ID attributes(if possible NAME attribute also) to all the ...
2
votes
4answers
198 views

HTML aria validation issues (HTML 5)

I pretty much make sure my website(s) always validates. So today, after changing a certain item on my website, I ran the W3C validator once again. And suddenly got about 20 errors - which weren't ...
3
votes
1answer
203 views

HTML5 Syntax Validation

I was validating some HTML and I noticed some new errors that I am unfamiliar with. These list items get populated with JavaScript based on user input. Element li is missing one or more of the ...
0
votes
3answers
76 views

seo effect - include file with <html> tag inside

Maybe its a stupied question but i didnt fild any answer for it, If i have file with the html tag head tag&meta.. and I include him in all my web page, its effect the seo of the site? I have file ...
-1
votes
1answer
1k views

W3c validator giving error on link tag [closed]

I am trying to validate my site's html on w3c validator and its giving following line 606 column 95 - Error: Element link is missing required attribute property. The element on which the validator ...
1
vote
2answers
17 views

Attribute ddata-horizontalposition not allowed on element li at this point- w3c validator

w3c validator shows this error: Attribute ddata-horizontalposition not allowed on element li at this point. <li data-text-id="#bannerscollection_kenburns_photoText4" ...
1
vote
2answers
66 views

w3c markup validation: Attribute duration not allowed on element li at this point

I'm getting this error when I validate through w3c validator: Attribute duration not allowed on element li at this point. <li data-text-id="#bannerscollection_kenburns_photoText3" ...
0
votes
0answers
31 views

Validation warning: “Text run is not in Unicode Normalization Form C.” [duplicate]

I see a few other questions on here with the same title, but none of them explain how to fix this issue. Whenever I have special characters in my document through the use of HTML entities, the ...
0
votes
1answer
284 views

document type does not allow element “div” here; assuming missing “object” start-tag

Error Line 18, Column 19: document type does not allow element "div" here; assuming missing "object" start-tag Please see the page source below <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 ...
0
votes
1answer
128 views

W3C validation - end tag for “meta” omitted, but OMITTAG NO was specified

I am getting an error as shown below Error Line 6, Column 467: end tag for "meta" omitted, but OMITTAG NO was specified ...
0
votes
2answers
209 views

validation error there is no attribute “XMLNS”

I am getting this error from w3.org validation Error Line 2, Column 13: there is no attribute "XMLNS" <html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.0"> You have used the ...
1
vote
1answer
50 views

W3 Validator cant Check

my XML-RPC Protocol on Wordpress doesnt work! Thats why i wanted to use the W3 Validator. I just typed my URL and clicked OK. The validation results where: I got the following unexpected ...
2
votes
1answer
945 views

“& did not start a character reference. (& probably should have been escaped as &amp;.)” w3c markup

I'm using w3c markup validator. I get this error: Line 169, Column 60: & did not start a character reference. (& probably should have been escaped as &amp;.) <a ...
2
votes
3answers
309 views

How can I avoid the “Bad value language for attribute name on element meta” HTML validation error?

I'm getting this error when I validate my HTML using the W3C validator: Bad value language for attribute name on element meta: Keyword language is not registered. <meta name="language" ...
-2
votes
1answer
95 views

W3C Validation Warning, name attribute phasing out ? What would happen with PHP $_POST and forms submissions? [closed]

Any idea's what would be the successor of the name attribute ? As per the w3c validator .... Validation Output: 4 Warnings Below is a list of the warning message(s) produced when checking your ...
0
votes
1answer
173 views

After a wysiwyg css editor that makes w3 valid html [closed]

So basically trying to move away from frontpage ran my page code through w3's html tidy and corrected the incompatible bits. so after the html tidy im wanting a css/html wysiwyg editor that should run ...
0
votes
1answer
71 views

Why can't a <button> element contain a <div>? [closed]

My company is building a website and we had some problems with a JavaScript library not replacing something. We decided to throw our HTML in to the W3C validator and it informed us it's illegal to ...
0
votes
2answers
64 views

CSS 3.0 Valid Color Property

Visual Studio 2012 (Ultimate) states (with a red squiggly) that rgba(255, 255, 255, 0.4) is not a valid color property value But the W3C says it is. Is this a bug, or am I missing something?
0
votes
0answers
37 views

end tag for “div” omitted, but OMITTAG NO was specified

please help me, I can't figure it out. Line 1011, column 2: end tag for "div" omitted, but OMITTAG NO was specified I added extra </div> but the problem still remain.

1 2 3 4 5 8