Questions tagged [web-standards]

Technologies for creating and interpreting web-based content which are carefully designed to deliver the greatest benefits to the greatest number of web users while ensuring the long-term viability of any document published on the Web.

The World Wide Web Consortium (W3C), along with other groups and standards bodies, has established technologies for creating and interpreting web-based content. These technologies, which we call “web standards,” are carefully designed to deliver the greatest benefits to the greatest number of web users while ensuring the long-term viability of any document published on the Web.

Designing and building with these standards simplifies and lowers the cost of production, while delivering sites that are accessible to more people and more types of Internet devices. Sites developed along these lines will continue to function correctly as traditional desktop browsers evolve, and as new Internet devices come to market.

351 questions
453
votes
5 answers

What's the difference between ISO 8601 and RFC 3339 Date Formats?

ISO 8601 and RFC 3339 seem to be two formats that are common the web. Should I use one over the other? Is one just an extension? Do I really need to care that bad?
Brig Lamoreaux
320
votes
10 answers

input type="submit" Vs button tag are they interchangeable?

input type="submit" and button tag are they interchangeable? or if there is any difference then When to use input type="submit" and when button ? And if there is no difference then why we have 2 tags for same purpose?
Jitendra Vyas
  • 148,487
  • 229
  • 573
  • 852
314
votes
10 answers

Is it a good practice to use an empty URL for a HTML form's action attribute? (action="")

I am wondering if anyone can give a "best practices" response to using blank HTML form actions to post back to the current page. There is a post asking what a blank HTML form action does here and some pages like this one suggest it is fine but I'd…
Matt Mitchell
  • 40,943
  • 35
  • 118
  • 185
269
votes
13 answers

Can I use non existing CSS classes?

I have a table where I show/hide a full column by jQuery via a CSS class that doesn't exist: …
totymedli
  • 29,531
  • 22
  • 131
  • 165
260
votes
27 answers

Is there a query language for JSON?

Is there a (roughly) SQL or XQuery-like language for querying JSON? I'm thinking of very small datasets that map nicely to JSON where it would be nice to easily answer queries such as "what are all the values of X where Y > 3" or to do the usual SUM…
allclaws
  • 5,575
  • 8
  • 30
  • 27
173
votes
1 answer

Valid content-type for XML, HTML and XHTML documents

What are the correct content-types for XML, HTML and XHTML documents? I need to write a simple crawler that only fetches these kinds of files. Nowadays http://example.net/index.html can serve for example a JPEG file due to mod_rewrite, so I need to…
astropanic
  • 10,800
  • 19
  • 72
  • 132
165
votes
9 answers

Is a DIV inside a TD a bad idea?

It seems like I heard/read somewhere that a
inside of a
was a no-no. Not that it won't work, just something about them not being really compatible based on their display type. Can't find any evidence to back up my hunch, so I may be…
jcollum
  • 43,623
  • 55
  • 191
  • 321
142
votes
25 answers

How can HTML5 "replace" Flash?

A topic of debate that's seen a resurgence since the unveiling of the iPad is the issue of Flash versus HTML5. There are those that suggest that HTML5 will one day supplant/replace Adobe Flash. I do not develop software that runs in a browser, so…
Mike Willekes
  • 5,960
  • 10
  • 33
  • 33
116
votes
5 answers

What is the proper way to URL encode Unicode characters?

I know of the non-standard %uxxxx scheme but that doesn't seem like a wise choice since the scheme has been rejected by the W3C. Some interesting examples: The heart character. If I type this into my browser: http://www.google.com/search?q=♥ Then…
Josh Gibson
  • 21,808
  • 28
  • 67
  • 63
106
votes
2 answers

Do browsers send "\r\n" or "\n" or does it depend on the browser?

This question has bothered me for a million years... whenever I create a website with a textarea that allows multi-line (such as a "Bio" for a user's profile) I always end up writing the following paranoid code: // C# code sample... bio =…
Timothy Khouri
  • 31,315
  • 21
  • 88
  • 128
106
votes
4 answers

Why is not in HTML 5 Tag list while is?

Shouldn't both be removed? Or does it mean we should use ? Why is removed but is not? What is the problem with which does not apply to ? http://www.w3schools.com/html5/html5_reference.asp
Jitendra Vyas
  • 148,487
  • 229
  • 573
  • 852
103
votes
4 answers

how to mix links ( tag ) and headings (

tag ) in web standard?

What is the correct code to create a link with heading 1 according to web standards? is it

stackoverflow

or

stackoverflow

Thanks
ahmed
  • 14,316
  • 30
  • 94
  • 127

98
votes
11 answers

Why is there no OFFICIAL JavaScript reference?

I tried to search for a JavaScript reference, but there's none available. The best two suggested sources are MDN (Mozilla Developer Network) and ECMA (https://262.ecma-international.org/12.0/) Why?
huy
  • 4,782
  • 6
  • 36
  • 42
95
votes
5 answers

HTML: Characters allowed for name attribute of input element?

I have a PHP script that will generate s dynamically, so I was wondering if I needed to filter any characters in the name attribute. I know that the name has to start with a letter, but I don't know any other rules. I figure square brackets…
DLH
  • 2,771
  • 3
  • 23
  • 30
95
votes
4 answers

Do SVG docs support custom data- attributes?

In HTML5, elements can have arbitrary metadata stored in XML attributes whose names start with data- such as

. Is this part of the SVG spec too? In practice this technique works fine for SVG docs in many places. But I'd like…

Leopd
  • 41,333
  • 31
  • 129
  • 167
1
2 3
23 24