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
30
votes
3 answers

Specifying the value output of of an HTML5 input type = date?

I'd like to add native date pickers to my application, which currently uses a legacy, home-rolled system. Date input support isn't widespread, yet, but if I could present both implementations based on compatibility, that would be ideal. Is there any…
Stefan Kendall
  • 66,414
  • 68
  • 253
  • 406
30
votes
6 answers

Why do some major websites use invalid HTML?

I noticed that many websites, even Google and some banking sites, have poorly-written HTML with no quotes around the values of attributes, or using characters such as ampersands not escaped correctly in links. In other words, many use markup that…
netrox
  • 5,224
  • 14
  • 46
  • 60
28
votes
2 answers

Why can't I have a numeric value as the ID of an element?

Working on a project, nearly finished and just tidying up the HTML and I find out that you're not really allowed to have an ID that is just a number- < a> attribute "id" has invalid value "567" The attribute ID is of type ID. As described above,…
penpen
  • 935
  • 3
  • 12
  • 22
27
votes
3 answers

Multiple Forms With Input Fields With The Same Name Attribute? Good Or Bad?

Is it an acceptable practice to have multiple HTML forms on a page with input fields that share the same name attribute? For example, the page contains a listing of all players and users are allowed to vote for the best player so next to each player…
Richard Knop
  • 81,041
  • 149
  • 392
  • 552
23
votes
2 answers

Semantics, standards and using the "lang" attribute for source code in markup

I haven't been able to find authorative explanations, microformats or guidelines for the following, so I'm throwing it open. If I've missed something, speak up! Let's say you have an HTML page that includes an example of some programming source code…
Flambino
  • 18,507
  • 2
  • 39
  • 58
23
votes
10 answers

What is the best way to learn about RDF / OWL?

What references offer a good summary/tutorial for using RDF/OWL? There seem to be enough tools (Protege, Topbraid, Jena, etc.) that knowing the syntax of the markup languages is not necessary, but knowing the concepts is, of course, still critical.…
rcreswick
  • 16,483
  • 15
  • 59
  • 70
23
votes
5 answers

Why is there no synchronous WebSocket support in Web Workers when there is synchronous FileSystem support?

I understand why browser vendors don't want to help me block their UI thread. However, I don't understand why there is: no sleep(2) in Web Workers no synchronous WebSockets API There is a synchronous FileSystem API. There is also a synchronous…
Janus Troelsen
  • 20,267
  • 14
  • 135
  • 196
22
votes
8 answers

UI best practice question: Cancel button or Cancel link

I have a discussion with a colleague about what the "web standard" is for canceling in an form. In our discussion we have a "change password" page as example. We have a designed "send" button and "cancel" button. Both the same design. He claims that…
Paul Peelen
  • 10,073
  • 15
  • 85
  • 168
20
votes
3 answers

Negative Margins, Hack or Not?

I've come across various posts where people are stating that negative margins are hacks. Thus I've strayed away from using them with exception to particular cases when I can justifiably use them, like throwing text off the screen with margin:-9999px…
Alex
  • 34,899
  • 5
  • 77
  • 90
19
votes
3 answers

When should I use HTTP header "X-Content-Type-Options: nosniff"

I've been running some penetration tests using OWASP ZAP and it raises the following alert for all requests: X-Content-Type-Options Header Missing. I understand the header, and why it is recommended. It is explained very well in this StackOverflow…
HappyDog
  • 1,230
  • 1
  • 18
  • 45
18
votes
22 answers

How important is it to follow web standards?

I recently found out that most of the major websites fail W3C's markup and CSS validation tests. Therefore, how important is it really to follow web standards?
user69439
  • 213
  • 2
  • 3
18
votes
4 answers

Learning HTML5 and CSS3

Imagine somebody today, March 1 2011, has never written a webpage and would like to know what they should read to start building web pages today. They don't care about backwards compatibility, but want to build with web standards so that they will…
user371187
  • 181
  • 1
  • 3
18
votes
5 answers

Why are HTML5 and XHTML 2 separate standards?

Is there a reason why these two standards are being developed separately? They seem to be solving the same problem but what are the differences and, if they are to remain separate, what roles are they expected to take in web development in the…
Tim Wardle
  • 1,723
  • 1
  • 14
  • 14
17
votes
8 answers

(X)HTML Markup for Book Titles

Should book titles be contained in an tag? If not is there more appropriate markup?
ahsteele
  • 26,243
  • 28
  • 134
  • 248
17
votes
4 answers

Rem-Based Layouts, Zooming on chrome is inconsistent, PX vs REM

I've been wracking my brain over this one, google searches don't really have much in the way of help or even documentation of this problem but it's greatly affecting my current conversion to a mobile-friendly design. Everywhere I go, everyone's…
Aren
  • 54,668
  • 9
  • 68
  • 101
1 2
3
23 24