w3c

Alternatives to using autocomplete in forms

So the autocomplete="off" attribute is invalid HTML according to the w3c. Are there valid ways to do this in HTML, CSS or JavaScript? Or do we just have to plan on some of our forms not validating because we want to use this functionality. ...

Is a a-href around an object (ie. flash) just a bad idea or is there actually a standard about how a click on such an object has to be handled?

I was having this discussion with one of my colleagues. He created a piece of code that put an a-href around an object where a flash is to be loaded. When I saw this I almost cried out and told him to use the clickTag instead. He told me that it works fine with the a-href. I checked it out, and the code worked fine in ie6-8 and firefox...

Node.TEXT_NODE and IE7

Hello. I've some javascript that tests DOM node types against like this: if(node.nodeType == Node.TEXT_NODE) { Of course, it all works fine in Firefox, Safari, and Opera. But Internet Explorer 7 is complaining that Node (with the capital N) is undefined. But that's part of DOM Level 2! Do I really need to change my code to us...

How to link a header in a standards-compliant way?

I have a block of HTML that looks like this: <div id="header"> <h1>title</h1> <h2>subtitle</h2> </div> I'm using a CSS technique to hide all that text and replace it with an image. But I want to link the whole block to the homepage. I can't wrap it in <a> because that wouldn't be standards-compliant. So how do I do it? My solutio...

Problem with non-standard HTML attributes?

Possible Duplicates: Non-Standard Attributes on HTML Tags. Good Thing? Bad Thing? Your Thoughts? Is there a generic attribute for all HTML elements aside from ID and class? I have a series of divs that I would like to attatch extra info to. My idea was to use non-standard attributes to hold these values. Is this a bad idea, ...

Will XForms ever become practical?

I read some articles about XForms. Will this standard ever become practical? Any body using this right now? Is it wise to start using now itself? ...

What is currently the best HTML/CSS/Javascript configuration?

I'm getting more into jQuery and so have set up a HTML/Javascript/CSS base site which I use for all my tests. Since these tests will eventually turn into PHP and ASP.NET MVC websites, I want to use this opportunity to get the basics down right again for modern browsers and web standards before building the scripting languages on top of ...

Mobile Website Markup Tags?

Hey, Seems like an easy answer to find .. however I have spent hours searching with no luck. What are the official tags that developers are supposed to use on mobile web apps? Like <callout><phone><map><address> Does w3c have an official list? ...

Why has innerHTML not been added to the w3c specs?

Is there any particular reason that it isn't in any of the the specs? It seems to be supported in all browsers, (although I'll admit it doesn't work right in all of them...since you have to use libraries like innerXHTML to get it to work right thanks to Internet Explorer. Is innerHTML in danger of disappearing from forthcoming versions...

IE cannot find the W3C XHTML DTD (Error 2146697204)

I have a template that starts every page like this: <?xml version="1.0" encoding="utf-8"?> <!-- blah blah--> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > <html xmlns="http://www.w3.org/1999/xhtml"&gt; ... </html> that produces the error: The XML page can...

Why are JS scripts usually place in the header of a document?

Why are JS scripts usually place in the header of a document? Is it required by standards, or is it just a convention with no particular reason? ...

Can we place `<img>` inside `<h1>` according to web standards?

Can we place <img> inside <h1> according to web standards? like this <h1> Demo text <img src="anyimage.jpg"/> </h1> ...

is -negative margin or padding invalid CSS according to W3C ?

is -negative margin or padding are invalid CSS aaccording to W3C ? ...

HTML 5 - Sneaky stuff

HTML 5 is the new W3C definition for HTML and will likely represent the direction the internet goes as people find the next killer apps that work in it. There are the much publicized 'public' coding features like the <video> tag, but I'm wondering what low-level coding tricks people have found so far that could be important, useful, int...

End tag for "input" omitted, but OMITTAG NO was specified

Hi, this is the problem I found when I validate my site with w3c validator, please help. link ...

What is negative point on using W3C presentational xhtml tag ?

If some xhtml tag are presentational but valid in W3C then if i use then what is negative point of using those Tags in terms of semantic, code maintanance. I'm talking about b, big, br, hr, i, and small.Are all presentational tags deprecated? ...

Is &nbsp; allowed to make space in terms of semantic, web standards and accessibility and cross browser compatibility?

Is &nbsp; allowed to make space in terms of semantic, web standards and accessibility and cross browser compatibility? ...

curl w3c-markup-validator localy is slow, how do I make it faster?

I am using curl like this: curl -s -F "uploaded_file=@/path_to_file;type=text/html" -F output=soap12 http://localhost/w3c-markup-validator/check >text.xml && xsltproc script/guilbep_soap_w3c.xsl text.xml xsltproc is fast; but curl is not. does it come from the fact that w3c-markup-validator is local? or from w3c-markup-validator itsel...

div closing syntax in ie8

I've just discovered that using <div /> instead of <div></div> completely destroys my page in IE8. Even though I only had the empty tag syntax in one single place, half the page didn't even render. Is this a bug in IE8 or is this correct standards implementation? I'm astounded if this is correct behaviour and Microsoft have deliberately...

Whole code of Asp.net page renders in a form tag is it W3C valid?

Whole code of Asp.net page renders in a form tag is it W3C valid to render everything in form tag? <body> <form runat="server"> remaining code..... </form> </body> ...