w3c-validation

HTML validation error: “Non-space character in page trailer”

早过忘川 提交于 2019-12-24 00:52:58
问题 I run a W3C validation on this site. One of the error is saying this page has "non-space character in page trailer" at source code. I am not sure where to find the issue. 回答1: Maintainer of the W3C HTML Checker (validator) here. That “Non-space character in page trailer” error is caused by the “Nibbler” tool you’re using. Use https://validator.w3.org/nu/ directly instead. https://www.amberaviationacademy.com.au/courses is one of the documents that Nibbler reports that “Non-space character in

HTML5 Syntax Validation

Deadly 提交于 2019-12-23 16:28:19
问题 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 following attributes: aria-checked , aria-expanded , aria-valuemax , aria-valuemin , aria-valuenow , aria-valuetext , role <ul id="outTag"> <li id="item1"></li> <li id="item2"></li> <li id="item3"></li> <li id="item4"></li> </ul> If someone could please shed some light on this, that would be great. 回答1:

Visual Studio HTML5 Validation: Element 'img' cannot be nested within element 'a'

扶醉桌前 提交于 2019-12-23 09:04:22
问题 I've run into this curious validation error in Visual Studio 2010 with HTML5 validation selected: Is this a validation error (legitimate or a bug in Visual Studio) or am I missing something obvious and simple? Edit: added relevant code. View cshtml : @model My.Web.ViewModels.ListVideos @{ ViewBag.Title = "All Videos"; } @foreach (var item in Model.Videos) { <a href="@Url.Action("Play", "Player", new { videoId = item.VideoId })"> <img src="http://i2.ytimg.com/vi/@item.PublisherVideoId/default

Should I remove trailing slashes in meta tags?

这一生的挚爱 提交于 2019-12-23 07:27:59
问题 W3c markup validation is asking me to remove trailing slashes on my page. Is this correct? Aand will my page still be compliant in all browsers? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <meta http-equiv="content-style-type" content="text/css" **/**> 回答1: That is correct. For HTML 4.01 you shouldn't have trailing slashes (self-closing tags) for meta elements and I believe <link> elements if memory serves me correctly. xhtml requires

Should I remove trailing slashes in meta tags?

百般思念 提交于 2019-12-23 07:27:02
问题 W3c markup validation is asking me to remove trailing slashes on my page. Is this correct? Aand will my page still be compliant in all browsers? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <meta http-equiv="content-style-type" content="text/css" **/**> 回答1: That is correct. For HTML 4.01 you shouldn't have trailing slashes (self-closing tags) for meta elements and I believe <link> elements if memory serves me correctly. xhtml requires

Why can’t <style> tags within the HTML <body> tag validate on W3C? [duplicate]

佐手、 提交于 2019-12-23 06:48:37
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Does <STYLE> have to be in the <HEAD> of an HTML document? I am part of a team that has developed a CMS system. We would like to be able to insert <style> tags within the <body> of an HTML page in a way that validates to W3C standards, as validation is a requirement of our SEO consultant. The style tag functions perfectly well within the body tag across all browsers, yet it refuses to validate. 回答1: The HMTL DTD

Errors validation W3C HTML5 img noscript facebook.com

只谈情不闲聊 提交于 2019-12-22 07:47:23
问题 I am trying to validate my page as HTML 5 (W3c). And I have the following error: The "img" element is not allowed here (as a child of the "noscript" element). The "noscript" element, when a child of "head", must contain only the following child elements: "link", "style", and "meta". On site https://developers.facebook.com/docs/ads-for-websites/conversion-pixel-code-migration recommendation for my code: "Copy and paste the upgraded code snippet between <head> ; and </head> ; in the HTML code

Errors validation W3C HTML5 img noscript facebook.com

我只是一个虾纸丫 提交于 2019-12-22 07:47:00
问题 I am trying to validate my page as HTML 5 (W3c). And I have the following error: The "img" element is not allowed here (as a child of the "noscript" element). The "noscript" element, when a child of "head", must contain only the following child elements: "link", "style", and "meta". On site https://developers.facebook.com/docs/ads-for-websites/conversion-pixel-code-migration recommendation for my code: "Copy and paste the upgraded code snippet between <head> ; and </head> ; in the HTML code

Why does the W3C RDF validator replace the RDF URI with its own?

隐身守侯 提交于 2019-12-22 06:46:44
问题 Let us say that we input the following RDF code to the W3C RDF validator at http://www.w3.org/RDF/Validator/. <?xml version="1.0" encoding="UTF-8"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:uni="http://www.example.org/uni-ns#"> <rdf:Description rdf:about="949352"> <uni:name>Grigoris Antoniou</uni:name> <uni:title>Professor</uni:title> </rdf:Description> </rdf:RDF> Once I ask to parse the RDF code, I find that in the

The element a must not appear as a descendant of the button element

孤街醉人 提交于 2019-12-22 05:58:51
问题 Please help, I am getting error via http://validator.w3.org/ while validating my html5 template. I get the message " The element a must not appear as a descendant of the button element". I can't understand this. Could anyone help me to solve this? Here is my code--- <div class="post-response btn-group btn-group-lg"> <a href="#"><button type="button" class="btn btn-default"><i class="fa fa-comment"> 5 Comments</i></button></a> <a href="#"><button type="button" class="btn btn-default"><i class=