To JeSt PaRaGrAf
Every element on the page will be affected by the style.
Me too!
And me!
This is a paragraph.
Same as color name "Tomato":
Same as color name "Tomato", but 50% transparent:
In addition to the predefined color names, colors can be specified using RGB, HEX, HSL, or even transparent colors using RGBA or HSLA color values.
Result with opacity:
Result with rgba():
Notice how the text gets transparent as well as the background color when using the opacity property.
This paragraph has its own background color.
We are still in the div element.This property specifies what kind of border to display:
A dotted border.
A dashed border.
A solid border.
A double border.
A groove border.
A ridge border.
An inset border.
An outset border.
No border.
A hidden border.
A mixed border.
This property specifies the width of the four borders:
Some text.
Some text.
Some text.
Some text.
Some text.
Some text.
Note: The "border-width" property does not work if it is used alone. Always specify the "border-style" property to set the borders first.
This property specifies the color of the four borders:
A solid red border
A solid green border
A dotted blue border
Note: The "border-color" property does not work if it is used alone. Use the "border-style" property to set the borders first.
2 different border styles.
The three headings above are aligned center, left and right.
The text-align: justify; value stretches the lines so that each line has equal width (like in newspapers and magazines).