What is ‘important’ declaration?


Important declaration is a declaration with increased weight. Declaration with increased weight will override declarations with normal weight. If both reader’s and author’s style sheet contain statements with important declarations the author’s declaration will override the reader’s.

BODY {background: white ! important; color: black}

In the example above the background property has increased weight while the color property has normal.



Explore posts in the same categories: CSS Interview Questions


BOOKMARK THIS : del.icio.us | Digg it | Furl | reddit |


Related Questions :

  • What is a Declaration?
  • A declaration declares one or more variables or methods for use later in the JSP source file. A declaration must contain...
  • What is a Declaration ?
  • A declaration declares one or more variables or methods for use later in the JSP source file. A declaration must contain...
  • What is declaration
  • The very first thing in an XML document, which declares it as XML. The minimal declaration is The declaration is...
  • What is the use of ‘using’ declaration?
  • A using declaration makes it possible to use a name from a namespace without the scope operator....
  • What is the difference between declaring a variable and defining a variable?
  • In declaration we just mention the type of the variable and it's name. We do not initialize it. But defining...
  • Can I attach more than one declaration to a selector?
  • Yes. If more than one declaration is attached to a selector they must appear in a semi colon separated list,...
  • How memory is reserved using a declaration statement ?
  • Memory is reserved using data type in the variable declaration. A programming language implementation has predefined sizes for its data...
  • What’s different about namespace declaration when comparing that to package declaration in Java?
  • No semicolon. Package declarations also have to be the first thing within the file, can’t be nested, and affect all...
  • What is CSS declaration?
  • CSS declaration is style attached to a specific selector. It consists of two parts; property which is equivalent of HTML...
  • What are abstract classes, abstract methods?
  • Simply speaking a class or a method qualified with "abstract" keyword is an abstract class or abstract method. You create an...

    Comment:

    You must be logged in to post a comment.