Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Mastering Text Styling in CSS | Styling Text in CSS
CSS Fundamentals
course content

Course Content

CSS Fundamentals

CSS Fundamentals

1. Getting Started with CSS
2. Styling Text in CSS
3. The CSS Box Model & Spacing Elements
4. Mastering Flexbox for Layouts
5. Adding Decorative Effects with CSS

book
Mastering Text Styling in CSS

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:

text-decoration: none | line-through | underline | overline

Let's run the following example and see the difference between all the property values.

index.html

index.html

styles.css

styles.css

copy

Output

text-transform

The text-transform property allows us to change the capitalization of text content in HTML elements.

text-transform: capitalize | lowercase | uppercase | none

Let's consider the difference between all the property values:

index.html

index.html

styles.css

styles.css

copy

Output

text-align

The text-align property allows you to horizontally align text content.

text-align: start | end | center | justify
index.html

index.html

styles.css

styles.css

copy

Output

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?

question mark

What CSS property allows to change the capitalization of text content?

Select the correct answer

question mark

What CSS property allows to horizontally align text content?

Select the correct answer

question mark

What CSS property allows you to add visual effects to the text content, such as underline or strike-through?

Select the correct answer

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 1

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

course content

Course Content

CSS Fundamentals

CSS Fundamentals

1. Getting Started with CSS
2. Styling Text in CSS
3. The CSS Box Model & Spacing Elements
4. Mastering Flexbox for Layouts
5. Adding Decorative Effects with CSS

book
Mastering Text Styling in CSS

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:

text-decoration: none | line-through | underline | overline

Let's run the following example and see the difference between all the property values.

index.html

index.html

styles.css

styles.css

copy

Output

text-transform

The text-transform property allows us to change the capitalization of text content in HTML elements.

text-transform: capitalize | lowercase | uppercase | none

Let's consider the difference between all the property values:

index.html

index.html

styles.css

styles.css

copy

Output

text-align

The text-align property allows you to horizontally align text content.

text-align: start | end | center | justify
index.html

index.html

styles.css

styles.css

copy

Output

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?

question mark

What CSS property allows to change the capitalization of text content?

Select the correct answer

question mark

What CSS property allows to horizontally align text content?

Select the correct answer

question mark

What CSS property allows you to add visual effects to the text content, such as underline or strike-through?

Select the correct answer

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 1
some-alt