Questions tagged [w3c-validation]
You can use W3C validation services to check HTML documents, CSS stylesheets, Atom/RSS feeds, and more.
912
questions
0
votes
1
answer
26
views
How do you proceed html markup validation in your svelte app?
Is there any efficient way to check entire app(every component and so on) for html markup errors?
0
votes
0
answers
16
views
How can we implement a scan functionality that will scan a w3c Verifiable Credential QR code in React Native
Unable to find a module that will let me scan a w3c Verifiable Credential QR code for react native.
I have tried to use RNVcamera with vc-js and zbar.wasm in react native; to capture frames and ...
0
votes
0
answers
16
views
how to change tag a href in wordpress for validator w3
i my website is thai language, and link in webpage is thai
i check page in https://validator.w3.org/ it's show error "Bad value for attribute href on element a: Percentage ("%") is not ...
0
votes
0
answers
41
views
Machine-readable metadata autogenerated by Creative Commons (CC) not W3C-compliant
I added a CC license to my website using the Choose a License tool hosted by CC:
<a rel="license" target="_blank" href="http://creativecommons.org/licenses/by/4.0/">...
5
votes
1
answer
275
views
Rails button_to fails with W3C validator
Outputs of a Ruby-on-Rails button_to have started failing in W3C validation recently, with the returned message of:
An input element with a type attribute whose value is hidden must not have an ...
0
votes
0
answers
38
views
w3c validator rejects custom icons despite specifications
Edit : Following this publication https://github.com/w3c/css-validator/issues/380 the bug is fixed https://github.com/w3c/css-validator/commit/eca30bb7e985a9027e01d310b1b9e5588ae4b2b9
the at counter-...
14
votes
1
answer
679
views
Why is /🌈 an invalid path when /a🌈 is valid?
I’m trying to understand why certain HTML attributes are failing W3C validation. I encountered this in a real codebase, but here’s a minimal reproduction:
<!DOCTYPE html><html lang="en&...
0
votes
1
answer
106
views
W3 CSS Validation error for font-face definition
I have following code in my CSS file, which I think is perfectly valid, however W3C-CSS validator shows error as shown in the picture, any idea on how to fix this issue,
@font-face {
font-family: '...
-1
votes
1
answer
415
views
Validating Vue syntax with W3C Validator
I'm doing this course where I can freely select a framework to build a simple application. However, we are to validate the HTML with the W3C validator.
I have no idea how. The W3C validator does not ...
-1
votes
1
answer
110
views
Trouble with Unclosed element form
I can´t figure out why my form tag doesn´t recognise it´s close, any ideas ?
I have tried changing the divs a couple of times but it just messes up the whole form.
Code: https://codeshare.io/2pypdD
-2
votes
1
answer
82
views
HTML 5 Validation Service
I am trying to check HTML 5 files for validity and have found the W3C validator.
However I have found that this validator accepts grossly wrong HTML documents like this one:
<!DOCTYPE html>
<...
7
votes
1
answer
1k
views
Can a css variable name start with a number?
I want to know if it is valid to define a css variable that starts with a number like this,
:root { --1space: 32px; }
this works just fine with Chrome, however that code is not being validated by ...
-2
votes
1
answer
855
views
Wrong validation on element <br> in <ul> <li> elements
I have this situation:
...
<ul>
<li>Text<br/>Text</li><br />
<li>Text<br/>Text</li>
</ul>
...
Looking for w3c validation I get:
Error: ...
0
votes
1
answer
122
views
How to send files via post request in python similar to curl? (W3C validator)
I am trying to send a local html file from my computer to the https://validator.nu/ from W3C to validate it.
I found this curl command which worked perfectly fine in terminal:
curl -H "Content-...
0
votes
1
answer
799
views
Property scrollbar-width doesn't exist : none error
I want to hide the scrollbar in Firefox Browser so i used the following in css:
scrollbar-width: none;
when i validate the css file in W3C css validator it shows me the following error:
Property ...
0
votes
0
answers
161
views
JAVA_HOME setting doesn't show up in Workspace Settings to complete W3C Validation Extension Installation
I followed all the steps to install the W3C Validation Extension.
I have the JAVA_HOME variable in my Environment Variables with value of C:\Program Files\Java\jdk-15.0.1 to which I appended ;%...
0
votes
1
answer
377
views
CSS Validator error = Value Error : background 100% is not a color-stop value )
I am pretty new to programming and I imported a code snippet to my CSS to get a hovering effect over links. When I am pushing the code through W3C CSS Validator I get a single error which is from this ...
0
votes
0
answers
415
views
Why does this GET for favicon.ico fire and fail if my HTML5 passes validation?
I have the following HTML page as a test:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Best Title Ever!</title>
<meta charset="utf-...
3
votes
1
answer
637
views
Can I use duplicate IDs on multiple <template> fragments?
Why does HTML5 validation fail when having duplicate element IDs but on different <template>. I'm planning to use only one template at a time so the actual DOM ID won't be duplicated.
something ...
5
votes
1
answer
260
views
Why doesn't the W3C RDF validator replace the URI using the full namespace?
I tried validating a very simple manually-written RDF online, using the W3C RDF Validator. To my surprise, it correctly resolved the URIs from the rdf namespace, but not from a different namespace (...
0
votes
1
answer
742
views
How to fix HTML validation errors - on AMP website
I have created an AMP website - https://full-moon-report.com/
It has no AMP errors but it has a lot of HTML errors when I check it in the HTML validator:
https://validator.w3.org/nu/?doc=https%3A%2F%...
0
votes
0
answers
110
views
ASP.NET MVC bundles causing errors in W3C HTML validation
I do use ASP.NET MVC 5 and I include my JavaScript files with bundles. ASP.NET then generates a file name with a hash value at the end of the file. Between the filename and the hash value is a '=' ...
0
votes
1
answer
603
views
W3C validator: Bad value for attribute href on element a: Missing scheme
I have the piece of code from below, but I get the error which says "Bad value for attribute href on element a: Missing scheme." when I validate the code.
How can I fix this?
<a class=&...
-2
votes
1
answer
145
views
Start tag body seen but an element of the same type was already open
My website seems good, have original design,responsive, compatible with every browser but the validator doesnt like my website.So, I want to pass its silly exam.It turned honour issue for me.
I ...
0
votes
1
answer
157
views
How to solve w3 validation error bad value?
The W3C validation report me this error:
Error: Bad value
//fonts.googleapis.com/css?family=PT+Sans:400,700|PT+Serif:400,700 for
attribute href on element link: Illegal character in query: | is ...
4
votes
3
answers
6k
views
W3C Validation Failed, Illegal character in path segment: space is not allowed
<img src="webpage photos/alcazar.jpg" alt="Alcazar Palace">
The error shown by validator: Bad value webpage photos/alcazar.jpg for attribute src on element img: Illegal character in path ...
1
vote
0
answers
113
views
How to fix a validation error within a <script> tag
I have an HTML page that's giving a validation error. Here's the section of the code producing the error:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/...
3
votes
1
answer
143
views
Clarification regarding validity of using data-URIs in CSS url()
I'm writing a pre-processing component (in PHP) which, in certain contexts, rewrites external image file requests in CSS such as:
background-image: url('/my-folder/my-image.png');
as CSS-inlined ...
1
vote
1
answer
1k
views
Attribute width and height not allowed on element symbol at this point
Should width and height attribute not be used on SVG's symbol?
These are being used in MDN example https://developer.mozilla.org/en-US/docs/Web/SVG/Element/symbol
How to solve this validation error?...
0
votes
2
answers
61
views
For document served with Refresh HTTP header, why does w3 validator get empty source code?
I'm trying to check a website via w3 validator, but it always fails with this error:
End of file seen without seeing a doctype first. Expected <!DOCTYPE html>.
It's seems that it fails ...
1
vote
2
answers
2k
views
W3C HTML validation errors: “Stray end tag </head>” and “Start tag <body> seen but an element of the same type was already open” [duplicate]
Trying to build a website, when I validated it by W3C validator it gave 2 errors:
Error: Stray end tag head. From line 22, column 1; to line 22, column 7.
Error: Start tag body seen but an element of ...
0
votes
1
answer
326
views
HTML Table validation error when combining rowspan and colspan on <th> element
My code seams to work fine but trying to validate it at https://validator.w3.org/nu/#file
It gives me the error:
Table column 2 established by element th has no cells beginning in it.
If I remove ...
-3
votes
2
answers
2k
views
Error passing W3.org Validator: Illegal character in scheme data
I am trying to pass a file path with src (<video src="C:\Users\exampleuser\example.mp4"></video>) through W3C's validator. However, I am given the error:
Bad value C:\Users\exampleuser\...
0
votes
1
answer
317
views
W3c validation more than 20 redirects errors?
I am trying to validate my website on w3 validator and I am getting this error message called IO Error: Maximum redirects (20) exceeded. I don't know what is causing this error. Please help me. Bellow ...
0
votes
0
answers
199
views
W3C markup validation: Attribute 'ng-transition' not allowed on element 'style' at this point [duplicate]
I am using Angular universal and getting the error Attribute 'ng-transition' not allowed on element 'style' at this point.
1
vote
2
answers
749
views
Contact Form 7 : No p element in scope but a p end tag seen
I am using contact form 7 plugin on my website. Plugin shortcode generated spaces, new lines, and p tags, which w3 validator say there is not a right.
how I can change the template or fix it with ...
0
votes
1
answer
727
views
Vue js and W3C HTML Validator
I am currently working on a SPA using Vue, but I can't validate it through the W3C's HTML Validator. How can I validate it? I have heard of adding "data-" just before the Vue syntax, but it does not ...
2
votes
1
answer
585
views
Is a protocol (eg. http or https) required for a URL to be valid?
Recently I came across a lot of code from analytics plugins where they specify the URL as //fonts.googleapis.com or //www.google.com.
Basically it starts with two forward slashes and then the domain ...
0
votes
1
answer
159
views
Where do the DigestValues in the References of a XML Signature come from?
I have to Sign an XML file and have the Signature and the file inside the same XML. The Problem is, that I have to generate DigestValues in the References, but I am not sure where they come from. I ...
2
votes
2
answers
693
views
Chrome 76 native lazy loading attribute returns error in w3c
I just implemented the new native lazy loading of chrome 76 in some images.
It consists simply in adding the attribute loading="lazy" to images.
ex:
<img src="#url" width="380" height="285" alt="...
-1
votes
1
answer
797
views
Stray start tag td && Stray end tag td. w3c validation
My HTML is as as below.
<div class="plan-row">
<div class="plan-cell en">100MB</div>
<div class="plan-cell en">4GB</div>
<div class="plan-cell hide-sm en"&...
0
votes
1
answer
285
views
Parse error from W3C Validator on CSS3 Responsive font titles
I'm getting an error
Value Error : font-size Parse Error )/(1600-300)))
from https://jigsaw.w3.org/css-validator/validator on every line of code below.
Code is working, CSSlint doesn't report an ...
1
vote
1
answer
57
views
Not sure how to adapt ancient image switcher code from using name="foo" to id="foo"
About 19 years ago, I needed a script that changes images using the onmouseover event. The script used name="foo" which, of course, can no longer be supported by the <img> tag. I've literally ...
0
votes
1
answer
57
views
Error Validatin Wordpress Feed RSS on Mailchimp
Mailchimp doesn't find my feed rss.
This is the error using the validating tool
This feed does not validate.
line 407, column 19: XML parsing error: <unknown>:407:19: not well-formed (...
0
votes
2
answers
80
views
How to exclude multiple domains using W3C's Checklink
The checklink command supports an --exclude parameter, which accepts a regex. Example:
checklink --exclude foo\.com/.* http://example.com
Alas, example.com links to multiple sites, many of which use ...
0
votes
2
answers
77
views
W3c validation error while using sass arithmetic operator
I'm trying to validate my website using w3c validator, i have the following sass code.
$paddingXL: 140px;
.wrapper {
width: 100%;
max-width: 1360px + #{$paddingXL * 2} + 40px;
margin-left:...
0
votes
1
answer
56
views
XML validation for big files passes even with errors
I'm struggling with my big xml file (28000 rows).
This xml sometimes has some duplicate closing tag
eg: <question>what can i do?</question>>
All the xml validator online doesn't find ...
-1
votes
2
answers
211
views
Select box validation is having problem after adding a required attribute
I got a problem when I'm validating this. I can't understand how do I fix it?
<Label for="religion">Select Your Religion</Label>
<select required class="form-control" id="religion"&...
4
votes
1
answer
1k
views
Nu Html Checker Error "A numeric character reference expanded to carriage return." when using "
"
I want to use a carriage return in attribute title.
And I have this HTML code:
<a href="javascript:;" title="Line 1 
Line 2">Link Text</a>
But Nu Html Checker throws the error:
...
0
votes
1
answer
3k
views
Unknown pseudo-element or pseudo-class :focus-within [duplicate]
i am getting this error in w3 validations is there any way to solve it i tried many ways but not able to resolve it.