w3c-validation

Error: CSS: background: / is an incorrect operator

左心房为你撑大大i 提交于 2021-01-30 02:38:39
问题 I have the following HTML: <!DOCTYPE html> <html lang="en"> <head> <title>test</title> </head> <body> <div style="height:100%;background: url('https://apprecs.org/ios/images/app-icons/256/90/1097333136.jpg') 100% 0 no-repeat / 4%;"> <p> bob Is The best! </p> </div> </body> </html> The image displays well but when I go to the HTML validator I get an error: Error: CSS: background: / is an incorrect operator. If I remove that / then the image doesn't appear. What is the correct way? 回答1: If we

Error: CSS: background: / is an incorrect operator

左心房为你撑大大i 提交于 2021-01-30 02:28:37
问题 I have the following HTML: <!DOCTYPE html> <html lang="en"> <head> <title>test</title> </head> <body> <div style="height:100%;background: url('https://apprecs.org/ios/images/app-icons/256/90/1097333136.jpg') 100% 0 no-repeat / 4%;"> <p> bob Is The best! </p> </div> </body> </html> The image displays well but when I go to the HTML validator I get an error: Error: CSS: background: / is an incorrect operator. If I remove that / then the image doesn't appear. What is the correct way? 回答1: If we

Error: CSS: background: / is an incorrect operator

孤者浪人 提交于 2021-01-30 02:25:17
问题 I have the following HTML: <!DOCTYPE html> <html lang="en"> <head> <title>test</title> </head> <body> <div style="height:100%;background: url('https://apprecs.org/ios/images/app-icons/256/90/1097333136.jpg') 100% 0 no-repeat / 4%;"> <p> bob Is The best! </p> </div> </body> </html> The image displays well but when I go to the HTML validator I get an error: Error: CSS: background: / is an incorrect operator. If I remove that / then the image doesn't appear. What is the correct way? 回答1: If we

Error: CSS: background: / is an incorrect operator

被刻印的时光 ゝ 提交于 2021-01-30 02:24:54
问题 I have the following HTML: <!DOCTYPE html> <html lang="en"> <head> <title>test</title> </head> <body> <div style="height:100%;background: url('https://apprecs.org/ios/images/app-icons/256/90/1097333136.jpg') 100% 0 no-repeat / 4%;"> <p> bob Is The best! </p> </div> </body> </html> The image displays well but when I go to the HTML validator I get an error: Error: CSS: background: / is an incorrect operator. If I remove that / then the image doesn't appear. What is the correct way? 回答1: If we

How do I use a <style> element within a <noscript> tag?

社会主义新天地 提交于 2021-01-28 12:44:00
问题 I have a site where I have a <noscript> tag below my <script> tag in case the javascript fails to load. It basically turns off some CSS values to do with some smooth scroll JS code and a pre-loader. However when I run the site through the w3c HTML validator it says: Element style not allowed as child of element noscript in this context. (Suppressing further errors from this subtree.) The code I'm using is: <noscript> <style type="text/css" media="screen">#main-body {opacity: 1 !important; }

How do I use a <style> element within a <noscript> tag?

二次信任 提交于 2021-01-28 12:42:48
问题 I have a site where I have a <noscript> tag below my <script> tag in case the javascript fails to load. It basically turns off some CSS values to do with some smooth scroll JS code and a pre-loader. However when I run the site through the w3c HTML validator it says: Element style not allowed as child of element noscript in this context. (Suppressing further errors from this subtree.) The code I'm using is: <noscript> <style type="text/css" media="screen">#main-body {opacity: 1 !important; }

How do I use a <style> element within a <noscript> tag?

允我心安 提交于 2021-01-28 12:40:39
问题 I have a site where I have a <noscript> tag below my <script> tag in case the javascript fails to load. It basically turns off some CSS values to do with some smooth scroll JS code and a pre-loader. However when I run the site through the w3c HTML validator it says: Element style not allowed as child of element noscript in this context. (Suppressing further errors from this subtree.) The code I'm using is: <noscript> <style type="text/css" media="screen">#main-body {opacity: 1 !important; }

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

…衆ロ難τιáo~ 提交于 2020-12-10 08:57:40
问题 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 identify which button was clicked on the server side. To clarify I am talking about: <input type="submit" name="foo"> 回答1: Yes, it is entirely acceptable. The specification has explicit rules for how to determine which submit button was successful, which would be useless if you couldn't give the

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

扶醉桌前 提交于 2020-12-10 08:55:52
问题 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 identify which button was clicked on the server side. To clarify I am talking about: <input type="submit" name="foo"> 回答1: Yes, it is entirely acceptable. The specification has explicit rules for how to determine which submit button was successful, which would be useless if you couldn't give the

“The frameborder attribute on the iframe element is obsolete. Use CSS instead.”

筅森魡賤 提交于 2020-06-24 10:56:30
问题 I'm trying to validate my website with the W3C validator but it doesn't work. I have a YouTube iframe and this is the error: The frameborder attribute on the iframe element is obsolete. Use CSS instead. Screenshot: http://i.stack.imgur.com/VCiJV.png And this is my index.html (cropped): <!-- Video --> <div class="video-container box-size"> <iframe width="700" height="312" src="http://www.youtube.com/embed/OfUPsnAtZMI" frameborder="0" allowfullscreen></iframe> </div> How can I correct it? 回答1: