Hello guys myself Harshith.G.B. Today we are going to continue our journey of learning HTML. Today we will be learning 2 more topics, that are :
HTML colors
HTML CSS
HTML colors
HTML colors are specified with predefined color names, or with RGB, HEX, HSL, RGBA, or HSLA values.
An RGB color value represents Red, Green, and Blue light sources. An RGBA color value is an extension of RGB with an Alpha channel (opacity).The range of colors in RGB is between 0 to 255. In HTML, a color can be specified as an RGB value, using this formula :
rgb(red, green, blue)
In HTML, colors can be specified using a hexadecimal value in the form :
#rrggbb
Where rr stands for the color red, gg stands for the color green and bb stands for the color blue.
HSL stands for Hue, Saturation and Lightness. HSLA color values are an extension of HSL with an Alpha channel (opacity).In HTML, a color can be specified as an HSL value using this formula :
hsl(hue, saturation, lightness)
HTML CSS
Cascading Style Sheets (CSS) is used to format the layout of a webpage. With CSS, you can control the color, font, the size of text, the spacing between elements, how elements are positioned and laid out, what background images or background colors are to be used, different displays for different devices and screen sizes, and much more!
Tip : The word cascading means that a style applied to a parent element will also apply to all children elements within the parent. So, if you set the color of the body text to "blue", all headings, paragraphs, and other text elements within the body will also get the same color (unless you specify something else)!
CSS can be added to HTML documents in 3 ways :
Inline - By using the
style
attribute inside HTML elements.Internal - By using a
<style>
element in the<head>
section.External - By using a
<link>
element to link an external CSS file.
Awesome bro
Keep doing up the good work