Consider the main axis and cross axis of a flex container: &...
When using the xhtml1-transitional.dtd doctype, collecting a credit card number with the following HTML <input type="text" id="cardNumber" name="cardNumber" autocomplete='off'/> will flag a w...
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: ur...
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...
I know it's wrong to put a block element inside an inline element, but what about the following? Imagine this valid markup: <div><p>This is a paragraph</p></div> Now add th...
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 ca...
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...
What are the list of standard meta tags defined in W3C other than the below given at http://www.w3.org/wiki/HTML/Elements/meta <meta http-equiv="Content-Type" content="text/html; charset=utf-8" ...
I have a form that has two buttons. One for saving a record and the other for cancelling the save procedure. I am using the rails.js (a common AJAX/jQuery plug-in for those of you not in the know) ja...
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...