Ways to Color Text in HTML

1. Pakai style inline

This is an example of red text using inline styles.
and the color is red
which is boring

This is an example of blue text using inline styles.
and the color is blue
which is boring

2. pakai CSS

This text is brown, using a CSS class.
and this is 2nd paragraph.
dan ternyata perlu titik.

This text is blue, using a CSS class.
and this is 2nd paragraph.
dan ternyata perlu titik.

This text is green, using a CSS class.
and this is 2nd paragraph.
dan ternyata perlu titik.

3. pakai html font Tag (Deprecated)

This is red text using the deprecated font tag.

This is blue text using the deprecated font tag.

4. pakai RGB or Hexadecimal Colors

This text is red using RGB values.

This text is blue using a hexadecimal color code.

5. Using Gradient Text (CSS Advanced Styling)

This is an example of text with a gradient color using advanced CSS styling.