type selector css

input:not([type]), // type attribute not present in markup input[type=""], // type attribute present, but empty input[type=text] // type is explicitly defined as 'text' In an HTML page, the content depends on HTML tags. input[type] { View this simple example of CSS type selector in a separate browser window. .intro. Next, you will learn about simplifying your CSS through the use of selector groups. CSS universal selectors select any type of elements in an HTML page. Note: the terminology used here in CSS 2.1 is different from what is used in CSS3. CSS Selectors. We can write the ID attribute for any HTML tag. The default input type is 'text'. Therefore, a selector of