top of page
Search
zakariyesahid96

CSS selectors

Below I will include the selectors I have learnt in css and explain it briefly.


The universal selector is used to select everything.


The element selector is used to select all images.


The ID selector is used to select an element with ID for example the 'Logout' option.


The class selector is used to select the element with class in the line of code.


The descendant selector is used to select all anchor tags that's really nested inside an li.


The adjacent selector is used to select only paragraph that are immediately preceded by an H1.


The attribute selector is used for when selecting input elements where type attribute is set to text.


There was alot to learn over the course of these classes and alot of note taking, more to follow




0 views0 comments

Recent Posts

See All

Kommentare


Post: Blog2_Post
bottom of page