Text Styling
text-decoration
The text-decoration
property can be applied to any text content, including links, headings, paragraphs, and lists. It adds line effects such as underlining. Common values:
csstext-decoration: none | line-through | underline | overline
Let's run the following example and see the difference between all the property values.
index.html
index.css
text-transform
The text-transform
property allows us to change the capitalization of text content in HTML elements.
csstext-transform: capitalize | lowercase | uppercase | none
Let's consider the difference between all the property values:
index.html
index.css
text-align
The text-align
property allows you to horizontally align text content.
csstext-align: start | end | center | justify
index.html
index.css
- , opens subtitles settings dialogsubtitles settings
- subtitles off
- , selectedEnglish Captions
- 2x
- 1.5x
- , selected1x
- 0.5x
This is a modal window.
Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
1. What CSS property allows to change the capitalization of text content?
2. What CSS property allows to horizontally align text content?
3. What CSS property allows you to add visual effects to the text content, such as underline or strike-through?
Tak for dine kommentarer!
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat