Questions tagged [w3c]

The World Wide Web Consortium (W3C) is an international community that develops and publishes specifications and guidelines that define technologies like XML, HTML, and CSS.

The World Wide Web Consortium (W3C) is an international consortium which develops Web standards.

The W3C was founded in 1994 by Sir Tim Berners-Lee at MIT in collaboration with CERN, with support from DARPA and the European Commission.

The W3C is based at a number of host organizations including MIT, ERCIM, Keio University, and Beihang University. The current CEO is Dr. Jeffrey Jaffe.

Specifications developed by the W3C are released under its Patent Policy. This encourages innovation and adoption of such standards by enabling them to be implemented on a royalty-free basis.

A list of all standards and drafts published by the W3C can be found at http://www.w3.org/TR/

1249 questions
827
votes
6 answers

In CSS Flexbox, why are there no "justify-items" and "justify-self" properties?

Consider the main axis and cross axis of a flex container:                                                                                                                                                    Source: W3C To align flex items along the…
Michael Benjamin
  • 265,915
  • 79
  • 461
  • 583
427
votes
18 answers

Is there a W3C valid way to disable autocomplete in a HTML form?

When using the xhtml1-transitional.dtd doctype, collecting a credit card number with the following HTML will flag a warning on the W3C validator: there is no attribute…
matt b
  • 132,562
  • 64
  • 267
  • 334
272
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
  • 134,556
  • 218
  • 544
  • 822
247
votes
8 answers

Is quoting the value of url() really necessary?

Which of the following should I use in my stylesheets? /* Example #1: */ background-image: url(image.png); /* Example #2: */ background-image: url("image.png"); /* Example #3: */ background-image: url('image.png'); What does the W3C specify as the…
Poru
  • 7,776
  • 19
  • 59
  • 87
149
votes
5 answers

vertical alignment of text element in SVG

Let's say I have the SVG file: b
semekh
  • 3,471
  • 2
  • 20
  • 33
148
votes
10 answers

CSS3 box-sizing: margin-box; Why not?

Why don't we have box-sizing: margin-box;? Usually when we put box-sizing: border-box; in our style sheets we really mean the former. Example: Let's say I have a 2 column page layout. Both columns have a width of 50%, but they look kind of ugly…
Web_Designer
  • 64,966
  • 87
  • 197
  • 254
145
votes
3 answers

What can service workers do that web workers cannot?

What can service workers do that web workers cannot? Or vice versa? It seems that web workers are a subset of the functionality of service workers. Is this correct?
Ben Aston
  • 45,997
  • 54
  • 176
  • 303
132
votes
5 answers

Why are margin/padding percentages in CSS always calculated against width?

If you look at the CSS box model spec, you'll observe the following: The [margin] percentage is calculated with respect to the width of the generated box's containing block. Note that this is true for 'margin-top' and 'margin-bottom' as well. If…
mqp
  • 64,209
  • 13
  • 90
  • 122
126
votes
5 answers

Hex representation of a color with alpha channel?

Is there a W3 or any other noteworthy standard on how to represent a color (including alpha channel) in hex format? Is it #RGBA or #ARGB?
Patrick Klug
  • 13,181
  • 13
  • 70
  • 114
123
votes
6 answers

Are there any style options for the HTML5 Date picker?

I am really stoked about the HTML5 date picker. It is refreshing to know that the W3C is finally picking up some of the slack so we don't have to keep re-inventing such a common form of input. The caveat is that I don't see or foresee much in the…
Wray Bowling
  • 1,746
  • 2
  • 13
  • 18
106
votes
4 answers

How do I load an org.w3c.dom.Document from XML in a string?

I have a complete XML document in a string and would like a Document object. Google turns up all sorts of garbage. What is the simplest solution? (In Java 1.5) Solution Thanks to Matt McMinn, I have settled on this implementation. It has the right…
Frank Krueger
  • 64,851
  • 44
  • 155
  • 203
106
votes
6 answers

What is the shortest way to pretty print a org.w3c.dom.Document to stdout?

What is the easiest way to pretty print (a.k.a. formatted) a org.w3c.dom.Document to stdout?
flybywire
  • 232,954
  • 184
  • 384
  • 491
94
votes
7 answers

What are best practices to order elements in ?

can use anything in any order? does placing of is important before this is most used, is it best way? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" …</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/html" class="post-tag grid--cell" title="show questions tagged 'html'" rel="tag">html</a> <a href="../../questions/tagged/css" class="post-tag grid--cell" title="show questions tagged 'css'" rel="tag">css</a> <a href="../../questions/tagged/xhtml" class="post-tag grid--cell" title="show questions tagged 'xhtml'" rel="tag">xhtml</a> <a href="../../questions/tagged/w3c" class="post-tag grid--cell" title="show questions tagged 'w3c'" rel="tag">w3c</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Dec 31 '09 at 20:49">asked Dec 31 '09 at 20:49</time> <a href="../../users/84201/jitendra-vyas" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/84201.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Jitendra Vyas" onerror="onImageLoadingError(this);" /> </a> <div class="s-user-card--info"> <a href="../../users/84201/jitendra-vyas" class="s-user-card--link">Jitendra Vyas</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">134,556</li> <li class="s-award-bling s-award-bling__gold" title="218 gold badges">218</li> <li class="s-award-bling s-award-bling__silver" title="544 silver badges">544</li> <li class="s-award-bling s-award-bling__bronze" title="822 bronze badges">822</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-1750865"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>85</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>17</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/1750865/best-way-to-view-generated-source-of-webpage" class="question-hyperlink">Best Way to View Generated Source of Webpage?</a></h3> <div class="excerpt">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…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/html" class="post-tag grid--cell" title="show questions tagged 'html'" rel="tag">html</a> <a href="../../questions/tagged/xhtml" class="post-tag grid--cell" title="show questions tagged 'xhtml'" rel="tag">xhtml</a> <a href="../../questions/tagged/firebug" class="post-tag grid--cell" title="show questions tagged 'firebug'" rel="tag">firebug</a> <a href="../../questions/tagged/w3c" class="post-tag grid--cell" title="show questions tagged 'w3c'" rel="tag">w3c</a> <a href="../../questions/tagged/web-developer-toolbar" class="post-tag grid--cell" title="show questions tagged 'web-developer-toolbar'" rel="tag">web-developer-toolbar</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Nov 17 '09 at 18:34">asked Nov 17 '09 at 18:34</time> <a href="../../users/82124/jeremy-kauffman" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/82124.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Jeremy Kauffman" onerror="onImageLoadingError(this);" /> </a> <div class="s-user-card--info"> <a href="../../users/82124/jeremy-kauffman" class="s-user-card--link">Jeremy Kauffman</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">9,973</li> <li class="s-award-bling s-award-bling__gold" title="5 gold badges">5</li> <li class="s-award-bling s-award-bling__silver" title="39 silver badges">39</li> <li class="s-award-bling s-award-bling__bronze" title="52 bronze badges">52</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-9080633"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>83</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/9080633/can-a-css-pixel-be-a-fraction" class="question-hyperlink">Can a CSS pixel be a fraction?</a></h3> <div class="excerpt">Can a CSS px be a fraction? Is it allowed by the standards? And if so, do the major browsers support it? Let's back the answers up with documentation, folks. </div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/css" class="post-tag grid--cell" title="show questions tagged 'css'" rel="tag">css</a> <a href="../../questions/tagged/w3c" class="post-tag grid--cell" title="show questions tagged 'w3c'" rel="tag">w3c</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jan 31 '12 at 13:51">asked Jan 31 '12 at 13:51</time> <a href="../../users/201482/kees-c-bakker" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/201482.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Kees C. Bakker" onerror="onImageLoadingError(this);" /> </a> <div class="s-user-card--info"> <a href="../../users/201482/kees-c-bakker" class="s-user-card--link">Kees C. Bakker</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">28,682</li> <li class="s-award-bling s-award-bling__gold" title="24 gold badges">24</li> <li class="s-award-bling s-award-bling__silver" title="104 silver badges">104</li> <li class="s-award-bling s-award-bling__bronze" title="188 bronze badges">188</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="s-pagination pager fr"> <div class="s-pagination--item is-selected">1</div> <a class="s-pagination--item" href="../../questions/tagged/w3c_page=2" rel="" title="Go to page 2">2</a> <a class="s-pagination--item" href="../../questions/tagged/w3c_page=3" rel="" title="Go to page 3">3</a> <div class="s-pagination--item s-pagination--item__clear">…</div> <a class="s-pagination--item" href="../../questions/tagged/w3c_page=83" rel="" title="Go to page 83">83</a> <a class="s-pagination--item" href="../../questions/tagged/w3c_page=84" rel="" title="Go to page 84">84</a> <a class="s-pagination--item" href="../../questions/tagged/w3c_page=2" rel="next" title="Go to page 2"> Next</a> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script> /* replace <time class="fromnow" /> with human delta between `datetime` attr and now */ document.addEventListener('DOMContentLoaded', function(){ var time_elements = document.querySelectorAll("time.fromnow"); for (var i=0; i<time_elements.length; i++) { time_elements[i].innerHTML = moment(time_elements[i].getAttribute("datetime")).fromNow(); } }); </script> </body> </html>