How to detect if JavaScript is disabled?

Updated:

Problem:

You have a website contains javascript. But the user of your site disables the javascript or the browser doesn’t work javascript properly. In this case, you need to give a warning to the user that “The site isn’t able to work properly without the browser Javascript enabled”. Read More →

CSS Specificity

Updated:

In the CSS Selectors lesson, you’ve seen that the same element can be selected in multiple ways. Also, in the CSS Cascade lesson you’ve learned that when more than one style rules are applied to an element then cascading takes place and specificity is one of the main factors that determines which style rules will be applied to that HTML element. In this lesson you’ll learn detail about specificity.

Read More →

CSS Combinators

Updated:

From CSS3, some selectors are known as combinators. CSS3 introduces one new combinator and has taken the remaining combinators from the CSS2 where it were known as selectors. Read More →

CSS Cascade

Updated:

From the previous lessons, you learnt that a style rule is applied to an HTML element. But, there have situations when multiple rules are defined for a single element. In this case cascading happens. It is the word that is the elaboration form of the letter C in CSS. Read More →

CSS Inheritance

Updated:

We human being gets many characteristics like skin color, hair color, height etc. from our parents and ancestor. Similarly, when you apply CSS styles in an HTML element, the other elements inside it get those styles automatically.

Read More →