Senin, 14 November 2016

What is the cascading rule of CSS

As there are multiple ways to specify style information, if more than one rule is specified for the same element in the same document or in multiple documents, the conflicting rules will be resolved based on the rules specified below. More specific rules get preference over less specific rules. For example, consider the below style rules: p b {color:green} b {color:red} Now, consider the below HTML code: <b>Hello</b><p><b>Welcome to CSS</b></p> In the above example, the word Hello will appear in red color and the text Welcome to CSS will appear in green color as the style information for <b> tag

The post What is the cascading rule of CSS appeared first on Coding Security.


What is the cascading rule of CSS
read more

Tidak ada komentar:

Posting Komentar