Explanation:
These selectors are called element selectors and are simply used
as follows:
element-name { /* properties */ }
Explanation:
Example:
#test {color: green;}
/* makes a tag with id=’test’ green */
Explanation:
All occurrences of the strong element within a p element have a yellow background.
Explanation:
Example:
body > p {background-color: yellow;}
/* makes all p tags that have the
body tag as their immediate parent
have the background color yellow */
Explanation:
Example:
p ~ strong {font-style: italic;}
/* sets the font style to italic on
all strong tags that have a p tag
as a preceding sibling */
Explanation:
By applying an id rule, a style can be applied to just a single tag.
For example, if we name a tag with a unique id attribute as follows
Affected Text
Explanation:
Example: p[title$="!"] {color: red;}
Explanation:
Example: :default {background-color: red;}
Explanation:
Example: input:enabled {background-color:white;}
Explanation:
Example: strong:first-of-type {font-size:bigger;}
Explanation:
Example: *:not(h1) {color: black;}
Explanation:
Example: :valid {color: green;}
Explanation:
Example: :target{color:red;}
Explanation:
Example: :checked {color: blue;}
Explanation:
Example:
h1.note {text-decoration: underline;}
/* underlines all h1 tags with
class='note' */
Explanation:
Padding property is used to add space inside the text field, when we have many inputs after each other we can also add
some margin to add more space outside,
input[type=text] {padding:13px 30px; margin: 8px 0;}
Explanation:
For animating the width of search input when it gets focus we used CSS transition property,
input[type=text] {-webkit-transition: width 09s ease-in-out; transition: width 0.9s ease-in-out; } input[type=text]:focus {width:100%;}
Explanation:
CSS Basic UI Level 3 has many pseudo-classes like :widget, :invalid, :valid, :in-range, :required, :read-write, :read-only,
:optional, :out-of-range. CSS Selector Level 3 has the classes :disabled, :enabled, :indeterminate, :checked.
Explanation:
content inserts generated content, counter-reset creates or resets a counter, counter-increment increments the
value of the counter, counter() function adds the value of a counter to an element.
Explanation:
Mozilla CSS Extensions include :-moz-placeholder, :-moz-ui-invalid, :moz-ui-valid, :moz-submit-invalid.
::-webkit-input-placeholder is Webkit CSS Extension, :-ms-input-placeholder is Microsoft CSS Extension.
Explanation:
Formalize is an extension to common JavaScript frameworks like JQuery, Dojo, YUI etc., it helps to normalize and customize
the forms. Uni-form standardizes form markup, styling it with CSS, it also offers a few additional features when used with jQuery.
Explanation:
WebShim is a big tool that can help with browser HTML5 support, web form part can be very helpful. If you want to
normalize forms Twitter Bootstrap can greatly help.
Explanation:
WebKit includes various values like checkbox, button, button-level, menulist, scrollbarbutton-up, listitem,
scrollbarbutton-left, caret, textfield, textarea, searchfield, searchfield-decoration, slider-vertical, slider-horizontal,
scrollbargripper-horizontal etc.
Explanation:
Mozilla includes many values like menulist, radio, scrollbar, dialog, listbox, scrollbarbutton-down, scrollbar, resizer,
checkbox, scrollbarbutton-up, separator, toolbar, toolbox, statusbar, separator, toolbarbutton, window, treetwisty, treeview etc.
Explanation:
CSS box model include height, width, padding, margin and border. All text-fields have complete support for
every property related to CSS box model. Browser relies on system default styles when displaying these widgets.