w3c-validation

W3C Validation Not working for RazorView

≯℡__Kan透↙ 提交于 2020-01-24 20:22:04
问题 I am using MVC4 project and doing URL rewrite on Server side in RouteConfig and appending .html at the end of url of every page.. www.mysite.com/home.html I have couple of pages and those pages are linked with home page (every think is working find in browser). But when I validate using W3C link checker, I get broken link error message. I really don't know what can be issue. One more thing if I replace .html with .aspx or any other extension it is validated by W3C. I don't know what is issue.

HTML ARIA validation issues (HTML5)

谁说我不能喝 提交于 2020-01-24 05:22:24
问题 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 there on thursday (2 days ago). (For my validation I chose HTML5 / UTF8 - just like last time) For some reason I now get a: Element li is missing one or more of the following attributes: aria-checked, aria-expanded, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role."-error for every

“Attribute aria-expanded not allowed on element li at this point”

有些话、适合烂在心里 提交于 2020-01-14 04:07:27
问题 I have the following code (from here): <div role="menubar"> <ul role="menu" aria-label="functions" id="appmenu"> <li role="menuitem" aria-haspopup="true" tabindex="0" aria-expanded="false"> File <ul role="menu"> <li role="menuitem" tabindex="-1">New</li> <li role="menuitem" tabindex="-1">Open</li> <li role="menuitem" tabindex="-1">Print</li> </ul> </li> <li role="menuitem" aria-haspopup="true" tabindex="-1" aria-expanded="false"> Edit <ul role="menu"> <li role="menuitem" tabindex="-1">Undo<

How HTML5 page structure affects W3C validation and SEO [closed]

别等时光非礼了梦想. 提交于 2020-01-06 14:55:57
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 years ago . If we declare page as HTML5, Is it mandatory to follow HTML5 page structure ? . Below are two examples shows the ideal HTML5 page and page which is not following HTML5 structure. But when i validated these two pages using w3c validator, these pages successfully checked as HTML5

Does HTML tag name has a max size ( length )

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-06 14:54:44
问题 i do want to build a validator for HTML tagname , vdAPI.get({module:'html',subject:'tag'}).validator=function (tag){ return !vdAPI.nottags.contains(tag) && (tag.length>0 && tag.length <= vdAPI.MAX_LENGTH_TAG) } What is the suitable value of vdAPI.MAX_LENGTH_TAG ? 回答1: From the w3.org: The algorithm described below places no limit on the depth of the DOM tree generated, or on the length of tag names , attribute names, attribute values, Text nodes, etc. While implementors are encouraged to

Why is my script failing w3c validation?

允我心安 提交于 2020-01-04 14:15:17
问题 I have this piece of code: <script language="javascript" type="text/jscript"> document.write("<img src='http://dm.leadgenesys.com/jpgp.lgt?en=P.........TP_Q=&ur=' + escape(document.referrer) + '' border='0' alt='no alt' />"); </script> and... when I try to validate it, I'm given this error: document type does not allow element "img" here …rer) + '" border="0" alt="no alt" />'); The element named above was found in a context where it is not allowed. This could mean that you have incorrectly

Image border in Strict HTML using CSS

◇◆丶佛笑我妖孽 提交于 2020-01-04 04:52:09
问题 I have the following to display an clickable image (with no border) on a website: <a href="link"><img src="img" border="0" /></a> However this is not strict XHTML 1.0 so I changed it too: <img src="img" class="mystyle" /> And the CSS: mystyle img { border: 0px; } However this only works in Safari & Chrome and does not work in IE & FireFox. I understand that the w3 validators aren't necessary but was wondering if anyone has come across this and possibly a fix :) EDIT: Style was a typo, I meant

Attribute name not allowed on element meta at this point

微笑、不失礼 提交于 2020-01-02 04:38:25
问题 I am having the error multiple times here <meta name="description" content="Directus Media specialises in websites for small to medium businesses">​ http://validator.w3.org/check?uri=http%3A%2F%2Fcrimsoninformatics.info%2Fdirectus%2F&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.3+http%3A%2F%2Fvalidator.w3.org%2Fservices Also the link attribute error: I wrote :- <link rel="stylesheet" href="css/lib/essentials.css"/> And it gives me error that link is

Is W3C validation important? [duplicate]

对着背影说爱祢 提交于 2020-01-02 03:55:06
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: How important is W3C XHTML/CSS validation when finalizing work? I read about validation from many sources and most will say always validate your web page. It is important that your page validate. I understand the concept. But my site does not "validate", yet it works across every major browsers, does not produce errors in those browsers and looks correct in all browsers. This is an example of an error I get

Autocapitalize attribute on input element (used for iOS) breaks validation

不打扰是莪最后的温柔 提交于 2020-01-01 10:08:35
问题 As can be seen here, Safari and Safari for the iPhone support all HTML elements, including deprecated elements and even some proprietary elements that were never part of any W3C specifications. It's actually very useful including autocapitalize in the 'email' and 'website' fields in forms, as there's nothing so annoying as having to unselect the SHIFT key when filling in either of those two inputs. Doing this is trivial as all you need to do is add the autocapitalize=off attribute to the