8 HTML Styles
8 HTML Styles
DOCTYPE html>
<body>
Example
<p>I am normal</p>
I am Big </body>
</html>
<tagname style="property:value;">
Example
<body style="background-color:powderblue;">
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
HTML Text Color
The color property defines the text color for an HTML element:
Example
HTML Fonts
The font-family property defines the font to be used for an HTML element:
Example
Example
Example
Chapter Summary
Use the style attribute for styling HTML elements
Use background-color for background color