w3c-validation

CSS validation: “Parse Error: @keyframes”

回眸只為那壹抹淺笑 提交于 2019-12-13 00:24:19
问题 When I tried to validate my website, the W3C CSS Validator says parse error. I really tried to understand what I had done wrong but I could really need some help. This is what the validator says: Parse Error: @keyframes line_draw{ 100%{ width: 100vh; } } And this is the code in the file: @media screen and (min-width: 900px) { @keyframes line_draw{ 100%{ width: 100vh;} } 回答1: As @BoltClock said, it seems just IE doesn't recognize @keyframes inside @media rules, so you could create two

XML Schema: Different Element Names (sequence)

流过昼夜 提交于 2019-12-12 23:05:50
问题 I think the solution to my problem is very easy, but i couldn't fint it So, here is: I have an XML which have a list of elements with different names, but in sequence. An example: <DOC> <DOC_OBL_1> <TIP_DOC_OBL>1</TIP_DOC_OBL> </DOC_OBL_1> <DOC_OBL_2> <TIP_DOC_OBL>2</TIP_DOC_OBL> </DOC_OBL_2> <DOC_OBL_3> <TIP_DOC_OBL>3</TIP_DOC_OBL> </DOC_OBL_3> </DOC> So, i have 3 elements: DOC_OBL_1, DOC_OBL_2 and DOC_OBL_3 . And yes, there could be number 4, 5, 6, etc. As you can se, all 3 have the same

W3C Validation of SRCSET

孤街浪徒 提交于 2019-12-12 18:10:26
问题 W3C Validator is throwing an error on the following code: <img alt="My Unique Alternative Text" class="news-image-left" height="480" src="/images/en-us/news/20140214-01.jpg" srcset="/images/en-us/news/20140214-01.jpg 1x, /images/en-us/news/20140214-01-mobile.jpg 640w" style="border-width: 0px;" title="A Unique Image" width="1420" itemprop="image"> The error is: Bad value /images/en-us/news/20140214-01.jpg 1x, /images/en-us/news/20140214-01-mobile.jpg 640w for attribute srcset on element img:

How to validate CSS3 HSLA color values?

丶灬走出姿态 提交于 2019-12-12 17:20:44
问题 I like checking CSS validity. It makes things work better. However, a stylesheet I'm using specifies some colors, like so.. border-right: 1px solid hsla( 0, 0%, 0%, 0.2 ); which results in an error when using the W3C validation services (even with level=css3 set), such as... Value Error : border-right Too many values or values are not recognized : 1px solid hsla(0,0%,0%,0.2 ) I also tried... border-left: 1px solid ; border-left-color: hsla( 0, 0%, 100%, 0.3 ); but that returns... Value Error

html 5 marquee tag error in w3c validation

夙愿已清 提交于 2019-12-12 14:27:24
问题 I have some text in marquee tag. <marquee direction="left" scrollamount="4"> Test Test Test Test Test </marquee> I am using html 5 and css 3. When i check my html in w3c validator, it shows the following error. Element marquee not allowed as child of element div in this context. (Suppressing further errors from this subtree.) <marquee direction="left" scrollamount="4"> How to fix this? 回答1: Marquee tag is not html5 (is not html at all, but Microsoft proprietary tag from 1995) you can : use

Why won't <iframe> elements validate in HTML 4.01?

丶灬走出姿态 提交于 2019-12-12 12:28:48
问题 I was just checking to see if it was valid to put an <iframe> element inside a <noscript> element as a fall back for displaying dynamic content. It validated fine with the HTML 5 doctype, but for HTML 4.01, I get the following error: Line 9, Column 35: element "IFRAME" undefined <iframe name="test" src="test.htm"></iframe> You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:

Validation error on Nu HTML Checker: “Bad value radio for attribute type on element input.”

南楼画角 提交于 2019-12-12 10:26:12
问题 I am getting this error Error: Bad value radio for attribute type on element input. when trying to validate the following HTML on https://validator.w3.org/nu/#file <fieldset> <p class="city" id="citypref">Generally, I would prefer to live in...</p> <br> <label for="la" id="laLabel"> <br> <input type="radio" name="city" id="la" value="la" aria-required="false" aria-labelledby="laLabel" role="radiogroup" >Los Angeles, California</label> <br> <label for="boston" id="bostonLabel"> <input type=

X/Html Validator in PHP

左心房为你撑大大i 提交于 2019-12-12 09:36:13
问题 First thing: I know that there is interface to W3C validator: http://pear.php.net/package/Services_W3C_HTMLValidator/ But I don't know if I can install it on cheap hosting server. I don't think so. I need validator for my seo tools within my Content Managment System so it must be pretty much portable. I would love to use W3C but only if it would be portable. I can also use Curl for this but it won't be elegant solution. The best one I found so far is: http://phosphorusandlime.blogspot.com

W3C validation error “duplicate ID” although the ID is hidden

家住魔仙堡 提交于 2019-12-11 18:14:25
问题 In my website I use CSS3 media queries for different styles on mobile. Then in my HTML code I add some div to show only in mobile device that duplicate another div that I hide. In W3C validation it is an error, with "Duplicate ID". But the ID not is duplicate because one of this is hidden. How can I resolve this problem? 回答1: The id attribute‘s value […] must be unique amongst all the IDs in the element's home subtree […] So it doesn’t matter if the element is visually hidden. Make them

Microdata in XHTML 1.1: there is no attribute “itemprop”

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 13:35:58
问题 I added Microdata to the product pages of my site. That leads to some errors. One of these errors is the following: there is no attribute "itemprop" The error is related to this source code line: <div itemprop="offers" itemscope="" itemtype="http://schema.org/Offer"> My Doctype is as follows: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> How would it be possible to make the page W3C compliant when keeping the same Doctype? 回答1: Microdata can