Login
Your Email
Pasword
Home
Write
Trending
History
Liked
Dashboard

How to use HTML Styles?

Setting the style of an HTML element is done with the style attribute

Do you have similar website/ Product?
Show in this page just for only $2 (for a month)
Create an Ad
0/60
0/180
The HTML style attribute use the  following syntax
The property is a CSS property. 
The value is a CSS value.
Background Color
The background-color property defines the background color for an HTML element.
To set the background color use the following code:

Heading


Paragraph .The web page is with green background



Color of Text
The color property of HTML defines the text color for an element.
Heading
The paragraph text is in green color


Fonts
The font-family property defines the font to be used for an HTML element.

Heading


paragraph aaaaaa bbbbb ccc



Text Size
The font-size property defines the text size for an HTML element.
Heading
This is a paragraph


Text Alignment
The text-align property defines the horizontal text alignment for an HTML element.
Heading in center
This paragraph is in center.

These syntax can be followed to apply simple styling on text and web page. 
CONTINUE READING
HTML
Styles
HTML Styling
Ayesha
Tech writer at newsandstory