Questions tagged [w3c]

For questions about standards published by the World Wide Web Consortium (W3C). 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.

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/

1229 questions
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
251
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
  • 8,254
  • 22
  • 65
  • 89
212
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
  • 53,718
  • 65
  • 205
  • 331
166
votes
5 answers

vertical alignment of text element in SVG

Let's say I have the SVG file: b
semekh
  • 3,867
  • 2
  • 24
  • 34
156
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
  • 72,308
  • 93
  • 206
  • 262
142
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
  • 70,359
  • 14
  • 95
  • 123
133
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
  • 14,056
  • 13
  • 71
  • 118
109
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
  • 261,858
  • 191
  • 397
  • 503
108
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
  • 69,552
  • 46
  • 163
  • 208
104
votes
1 answer

Can a CSS pixel be a fraction?

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.
Kees C. Bakker
  • 32,294
  • 27
  • 115
  • 203
103
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" /> </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">148,487</li> <li class="s-award-bling s-award-bling__gold" title="229 gold badges">229</li> <li class="s-award-bling s-award-bling__silver" title="573 silver badges">573</li> <li class="s-award-bling s-award-bling__bronze" title="852 bronze badges">852</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-3069921"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>99</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/3069921/what-is-the-point-of-css-collapsing-margins" class="question-hyperlink">What is the point of CSS collapsing margins?</a></h3> <div class="excerpt">The CSS2 box model tells us that adjoining vertical margins collapse. I find it quite annoying, being the source of many design bugs. I hope that by understanding the purpose of collapsing margins, I will understand when to use them and how to avoid…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/w3c" class="post-tag grid--cell" title="show questions tagged 'w3c'" rel="tag">w3c</a> <a href="../../questions/tagged/css" class="post-tag grid--cell" title="show questions tagged 'css'" rel="tag">css</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jun 18 '10 at 13:22">asked Jun 18 '10 at 13:22</time> <a href="../../users/26155/tom" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/26155.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Tom" /> </a> <div class="s-user-card--info"> <a href="../../users/26155/tom" class="s-user-card--link">Tom</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">6,991</li> <li class="s-award-bling s-award-bling__gold" title="13 gold badges">13</li> <li class="s-award-bling s-award-bling__silver" title="60 silver badges">60</li> <li class="s-award-bling s-award-bling__bronze" title="78 bronze badges">78</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-4228658"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>86</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>6</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/4228658/what-values-for-checked-and-selected-are-false" class="question-hyperlink">What values for checked and selected are false?</a></h3> <div class="excerpt">I think according to W3 spec, you're supposed to do <input type="checkbox" checked="checked" /> And selected="selected" But, most browsers will accept it you just write "CHECKED" and don't give it a value. So, what if you do include 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/checkbox" class="post-tag grid--cell" title="show questions tagged 'checkbox'" rel="tag">checkbox</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 Nov 19 '10 at 19:30">asked Nov 19 '10 at 19:30</time> <a href="../../users/65387/mpen" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/65387.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="mpen" /> </a> <div class="s-user-card--info"> <a href="../../users/65387/mpen" class="s-user-card--link">mpen</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">272,448</li> <li class="s-award-bling s-award-bling__gold" title="266 gold badges">266</li> <li class="s-award-bling s-award-bling__silver" title="850 silver badges">850</li> <li class="s-award-bling s-award-bling__bronze" title="1,236 bronze badges">1,236</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>86</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" /> </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">10,293</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="42 silver badges">42</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-7122492"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>77</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>6</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/7122492/why-do-we-use-script-for-scripts-but-not-style-for-external-css" class="question-hyperlink">Why do we use <script> for scripts, but not <style> for external CSS?</a></h3> <div class="excerpt">A relative of mine who started to learn Web Development asked me this question. Why <script src="min.js"></script> and <link rel="stylesheet" href="min.css">? Why not <style href="min.css"></style>. Why do we use link tag to add external CSS in the…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/javascript" class="post-tag grid--cell" title="show questions tagged 'javascript'" rel="tag">javascript</a> <a href="../../questions/tagged/css" class="post-tag grid--cell" title="show questions tagged 'css'" rel="tag">css</a> <a href="../../questions/tagged/html" class="post-tag grid--cell" title="show questions tagged 'html'" rel="tag">html</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 Aug 19 '11 at 13:45">asked Aug 19 '11 at 13:45</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" /> </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">148,487</li> <li class="s-award-bling s-award-bling__gold" title="229 gold badges">229</li> <li class="s-award-bling s-award-bling__silver" title="573 silver badges">573</li> <li class="s-award-bling s-award-bling__bronze" title="852 bronze badges">852</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=81" rel="" title="Go to page 81">81</a> <a class="s-pagination--item" href="../../questions/tagged/w3c_page=82" rel="" title="Go to page 82">82</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 src="../../static/js/fromnow.js"></script> </body> </html>