Skip to content

Category Archives: HTML

The :valid selector is used to select the form elements with a given value that validates according to the elements. This selector only works for… Read More
The class name is used as a selector in HTML which helps to give some value to the element attributes. The document.getElementById() method is used… Read More
The :out-of-range selector is used to select the elements that are lying outside the given range. This selector only works for input element with max… Read More
This :invalid selector is used to select every form elements which does not validate according to the elements. This selector works only for some form… Read More
The :first-child selector is used to select those elements which are the first-child elements. For :first-child selector the <!DOCTYPE> must be declared for IE8 and… Read More
The :disabled selector is used to select the disabled element. This property is mostly used on the form elements. Syntax: :disabled { // CSS property… Read More
The :root selector is used to select all the elements of an HTML Documents. This selector covers all the HTML elements or tags. Syntax: :root… Read More
The :in-range selector is used to selecting all elements that are given within a particular range value. It is mostly used in an input element… Read More
This selector is used to select every element which is not the first-child of its parent element. It is represented as an argument in the… Read More
To auto-resize an image or a video to fit in a div container use object-fit property. It is used to specify how an image or… Read More
This resizable property is used to set the resizable area of elements. It is mostly used with textarea and div elements. To disable resizable property… Read More
There are basically three different types of lists provided by HTML:   Ordered List Unordered List Description list There are several ways to design these three… Read More
The accept-charset attribute is used to define the character encoding and is used for form submission. The default value of the accept-charset attribute is “UNKNOWN”… Read More
There is no placeholder attribute in ‘select’ tag but it can make the placeholder for a ‘select’ box. There are many ways to create the… Read More
The onoffline event attribute works when the browser work in offline mode. It is supported by <body> tag only. It is an opposite of ononline… Read More

Start Your Coding Journey Now!