w3c

W3C Compliance Testing: Methodology

We are going to redesign a large web service which has around 25 unique page templates delivering thousands of pages. One of the major requirements is w3c compliance (html 4.01 transitional / WCAG1.0). There are an infinite no. of validation errors as the code is shabby. 1) Since its an old application, starting from scratch is not an o...

How to write good alt text for images to help screen reader and blind user to understand what is picture about ?

How to write good alt text for images to help screen reader and blind user to understand what is picture about ? and if we are using Alt text then what should be in a Title="text" if we are using both in special cases like menu images etc ...

What is the limit of character to use in alt="text" according to WCAG 2.0?

What is the limit of character to use in alt="text" according to WCAG 2.0? ...

Best Way to View Generated Source of Webpage?

I'm looking for a tool that will give me the proper generated source including DOM changes made by AJAX requests for input into W3's validator. I've tried the following methods: Web Developer Toolbar - Generates invalid source according to the doc-type (e.g. it removes the self closing portion of tags). Loses the doctype portion of th...

Ruby W3C_Validators and Proxy

Hi, I'm trying to use the w3c_validators Ruby gem and I'm inside a proxy. So I wrote up a monkey patch that overrides the send_request method (validators.rb) and it seems to take the the settings okay. However, once I make the request I encounter this error: 302 "Found" (Net::HTTPRetriableError) I can't tell if this redirect is from...

What is Logically and semantically correct, A-grade browsers compatible and W3C valid way to clear float?

What is Logically correct and W3C valid way to clear float? zoom:1 is not valid by W3C and IE8 don't have hash layout problem overflow:hidden and overflow:hidden were not made to do this,as the spec intended overflow to be used <div class="clear"/> is not semantically correct and i don't want to add extra markup. clearfix hack generat...

Can we use any extension in LONGDESC or only .html is allowed by W3C?

Can we use any extension in or only HTML is allowed by W3C? and how LONGDESC link should be open , only as new windows or can we open Longdesc url in popup or lightbox? Does LONGDESC have any benefit for Site SEO? ...

HTML validator for Win32?

Does anybody know a fast, free local HTML validator to copy-and-paste code in, that shows errors directly on their respective lines? ...

How do you validate a page with AJAX content with a W3C service or similar.

I have a web page that is the parent to a bunch of pages that are loaded with in using the following code. function loadContent(elementSelector, sourceURL) { $(""+elementSelector+"").load("http://url.com/"+sourceURL+""); } To call this I would have a href like href="javascript:loadContent('#content','page.php')" How can you val...

Using HTML tags in JavaScript strings while complying with W3C rules

Here's my code: <a href="#"> <img src="myimage.jpg" onmouseover="showDescription( 'Text', 'Text with HTML tags in them<br />More text');" onmouseout="revertDescription();" alt="Image description"> The W3C Markup Validator doesn't like this. It doesn't want HTML tags inside my JavaScript code. Here's the...

Output W3C compliant XHTML from image slices

When slicing and saving for web in Photoshop CS4, the HTML layout output by Photoshop is done using tags, which is not what we want. Is there a way to get Photoshop to output W3C compliant tableless XHTML with CSS? Alternatively, is there another application that I can use to slice to W3C XHTML? ...

Is it possible to have W3C Standards Compliant Code when you have to support IE6?w3

I'm trying to motivate my team members to get our code to validate, but there seems to be some disillusionment because we are required to still support IE6. Do you guys have any thoughts to this end? This is what I'm going for: Semantic code - YES Validating code - YES Works in IE6 - YES Let's not argue over semantics ...

What are iframe alternatives?

Is iframe should not be used ever? how screen reader behaves with iframed content? Without iframe how we can embed any PHP page into asp.net based site? What are cross browser alternatives? ...

What is the best method to code physical address in html ?

What is the best method to code physical address in html ? in Semantic, Accessible and SEO way ...

Why isn't my document validating as XHTML 1.1 STRICT?

While target="_blank" is deprecated but, why W3C validator not giving ant error about this .you can paste and check this code validator? http://validator.w3.org/#validate_by_input <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <...

HTML: Do we really need different DocTypes?

why w3c has the conventions of different Doc-types .. ? Instead they could have recommended only one Doc-type (say loose type.. as it would prone to less number of SILLY errors) and would have standardized it to all browsers (including the ones in mob and PDAs) ..I haven't got any satisfying answer in any tutorial yet .. I have been read...

Is it good to put <p> inside <td> to put content text?

Which is more semantic and valid? <td> <p> content text </p> </td> or <td> content text </td> ...

What are pros and cons to use vendor-specific extesions , which are not included in W3C specifications?

I edited my question What is a vendor specific extension? A vendor specific extensions can start with a “-” (dash) or a “_” (underscore), usually followed by an abbreviation of the company or the browser project the extension is specific for, f.i. “-moz-” for Mozilla browsers, or “-webkit-” for WebKit based browser...

Can we use <a> directly in body, or it should always in any block level tag, see example ? xhtml

Which is right? <h2>heading 2</h2> <p><a href="#" target="_blank" title="Opens in a new window">link 1</a></p> <h2>heading 2 </h2> <p><a href="#" target="_blank" title="Opens in a new window">link 2</a></p> <h2>heading 2 </h2> <p><a href="#" target="_blank" title="Opens in a new window">link 3</a></p> <h2>heading 2 </h2> <p><a href="#" ...

Why does the W3C Validator fail on this JS code?

I'm trying to make a page XHTML 1.0 Transitional compliant. One of the issues the Validator has with my code lies within the following line: if (isNumeric(code) && code.length == 4) { Error: character "&" is the first character of a delimiter but occurred as data Here's another problematic line: aData = data.split("&&")...