Text ng CSS
- Previous Page Offset ng Outline ng CSS
- Next Page Text Alignment ng CSS
TEXT FORMATTING
Text Formatting
Ang teksto na ito ay naka-style gamit ang ilang text formatting properties. Ang heading ay gumagamit ng text-align, text-transform, at color properties. Ang paragraph ay nakasindak, nakalaan ng alignment, at tinutukoy ang space sa pagitan ng mga character. Inalis ang underline mula sa kulay na ito "Subukan Lang Ako" link.
Ang teksto na ito ay ginagamit ang ilang text formatting attributes para sa pagtatakda ng estilo. Ang heading ay gumagamit ng text-align, text-transform, at color properties. Ang paragraph ay nakasindak, nakalaan ng alignment, at tinutukoy ang space sa pagitan ng mga character. Inalis ang underline mula sa kulay na ito“Subukan Lang Ako”Inalis ang underscore sa link.
Kulay ng Teksto
color
Ang attribute ay ginagamit para sa pagtatakda ng kulay ng teksto. Ang kulay ay tinutukoy ng mga sumusunod na halaga:
- Pangalan ng kulay - halimbawa "red"
- Heksadecimal na halaga - halimbawa "#ff0000"
- RGB Value - For example "rgb(255,0,0)"
View CSS Color Value, to get a complete list of possible color values.
The default text color of the page is defined in the body selector.
Example
body { color: blue; {} h1 { color: green; {}
Tip:For W3C compliant CSS: If you define color
properties, it is also necessary to define background-color
properties.
text color and background color
In this example, we define the background-color
Property and color
Property:
Example
body { background-color: lightgrey; color: blue; {} h1 { background-color: black; color: white; {}
- Previous Page Offset ng Outline ng CSS
- Next Page Text Alignment ng CSS