5 Tweets 1 reads Feb 17, 2024
A brief recap of HTML styles:
🧵[Bookmark & RT]
What are HTML Styles?
The HTML style attribute is used to add styles to an element, such as color, font, size, and more.
Even though styling is mainly done through CSS, inline styles can also be applied using the style attribute within HTML tags.
Example:
▣ The HTML Style Attribute:
Setting the style of an HTML element, can be done with the style attribute.
The HTML style attribute has the following syntax:
Example:
Set the background color for a page to lightgreen👇🏼
That's a wrap!
Hope you enjoyed it.
If you find this post helpful, please :
- Like/Repost
- Follow me @mdrizwanalam72 so that you can't miss the next update.
Thankyou😊

Loading suggestions...