Hey guys,
In this video, we have seen css variables. Css variables is a powerful tool for modern web development, defined within :root selector. So, root is a pseudo class selector, it is used to target the root element of a html document. It is often behave like the html selector, But when we compared with root pseudo class and html selector, the root has a higher specificity because, pseudo class selector has a higher specificty then the html selector. And css variables also know as custom properties. We often declared css variables within the root selector followed by double hyphen ( - - ) then the variable names. By using css variables within root pseudo class its primary uses is to define global css custom properties. This allows you to set values that can be reused throughout your stylesheet, which makes it easy to maintain and update styles across your website. So, :root is a valuable selector for setting global styles especially for css custom properties.
Pseudo-classess in css:
https://youtu.be/ypIjAosXul4
THANKS FOR WATCHING !
FOR MORE VIDEOS LIKE THIS
DO SUPPORT MY CHANNEL 😊
#html #css #css3 #csstutorial #variables #pseudoclasses #root
#webdevelopment #frontenddevelopment
Download
0 formats
No download links available.
TIRED OF REPETITIVE CSS? TRY VARIABLES | Root-pseudoclass | CSS TUTORIAL | TAMIL | DEVELOPER TECHIES | NatokHD