A pseudo class in CSS is an information about the element which not available through any specific attribute in HTML. For example. HTML5 and CSS3 brings a plenty of new features which makes it easier to reduce the user of JavaScript for form validation, what it requires is just a few lines of HTML5 and CSS3 code to validate and style your forms.For example, :first-child targets the first element o