Are self-closing tags valid in HTML5?

Updated:

Problem:

You have an HTML page which contains non-void elements (which have contents with end tag). Suppose <div></div>, <p></p>. Now you don’t want to use end tag (</div>) and instead you like to use self-closing tags like this – <div />, <p />.
Is there any validity of this format in HTML5?

Read More →

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 →