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)
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:
HeadingParagraph .The web page is with green background |
Color of Text
The color property of HTML defines the text color for an element.
HeadingThe paragraph text is in green color |
Fonts
The font-family property defines the font to be used for an HTML element.
Headingparagraph aaaaaa bbbbb ccc |
Text Size
The font-size property defines the text size for an HTML element.
HeadingThis is a paragraph |
Text Alignment
The text-align property defines the horizontal text alignment for an HTML element.
Heading in centerThis paragraph is in center. |
These syntax can be followed to apply simple styling on text and web page.
CONTINUE READING
HTML Styling
Ayesha
Tech writer at newsandstory