CSS can assign a wide range of colours to elements using different notations. There are three notations as of now that are used that are explained below:
1. Hexadecimal notation
A colour in hexadecimal string notation always begins with the character “#â€. After that, the hexadecimal digits of the colour code is written. The string is case-insensitive.
2. RGB functional notation
RGB (Red/Green/Blue) functional notation, like hexadecimal string notation, represents colours using their red, green, and blue components (as well as, optionally, an alpha channel component for opacity). However, instead of using a string, the colour is defined using the CSS function RGB(). This function accepts as its input parameters the values of the red, green, and blue components and an optional fourth parameter, the value for the alpha channel.
3.HSL functional notation
Designers and artists often prefer to work using the HSL (Hue/Saturation/Luminosity) colour method. On the web, HSL colours are represented using HSL functional notation. The HSL() CSS function is very similar to the RGB() function in usage otherwise
Posted Date:- 2021-08-21 10:55:39
State the difference between Style Sheet and HTML?
What are the media types allowed by CSS?
What is the usage of Class selector?
Why is it easy to insert a file by importing it?
Comment on the Case-sensitivity of CSS ?
What are navigation bars in CSS?
Write all the position states used in CSS.
Explain the concept of pseudo-elements in CSS.
How can we add icons to the web page?
How would you style an image or element to have rounded corners?
What are contextual selectors?
What is the use of box-shadow in CSS?
What are the advantages and disadvantages of embedded style sheets?
What are the ways to integrate CSS as a web page?
What is the difference between padding and margin?
Write all the properties of the flexbox.
Differentiate Style Sheet concept from HTML?
Differentiate logical tags from physical tags?
Why should background and color be used as separate properties?
Which property controls the image scroll in the background?
How can image repetition of the backup be controlled?
How can the background color of an element be changed?
Name a few CSS style components
What is the property that is used for controlling image-scroll?
What is the overflow property in CSS used for?
How will you target an h2 and h3 with the same styling?
What are the ways to assign a certain colour to an element in CSS?
What are the different ways you could integrate CSS into your HTML page?
State the benefits and disadvantages of Embedded Style Sheets?
What merits and disadvantages do External Style Sheets offer?
Who postulates the specifications of CSS?
Enlist the media types CSS allows?
In how many ways can a CSS be integrated as a web page?
How block elements can be centered with CSS1?
What are the advantages of CSS ?
How can we calculate specificity?
Explain the term Responsive web design.
What are the limitations of CSS ?
Explain the concept of Tweening.
What are the uses of an embedded style sheet?
Distinguish between CSS2 and CSS3.