In this example, the result would be a white foreground color because the user style sheet overrides the browser style sheet, and in the absence of a author declaration that will be used. The background will also be white because that is the color specified by the author, which overrides all declarations by the browser and user. This demonstrates why it is important to always specify a background color with the foreground color. Finally, the font size would be 16 pixels because that is what the browser specifies and neither the user nor author contradict it. The weight sort sorts declarations according to their weight.
Declarations can have normal weight or important weight.
If there are still conflicting values for a given property of an element, the specificity sort prevails. Universal selectors have a specificity of 0. The highest number wins. The order sort As mentioned earlier, rules at the end of the style sheet take precedence over those at the start. Inline style is assumed to be read after embedded style, which is read after linked style.