HTML Styles | Style=font color
![HTML Styles](https://i.imgur.com/axBPWDg.jpg)
TheHTMLstyleattributeisusedtoaddstylestoanelement,suchascolor,font,size,andmore.TheHTMLStyleAttributeSettingthestyleofanHTMLelement,canbedonewiththestyleattribute.TheHTMLstyleattributehasthefollowingsyntax:Thisisaheading&l...
![HTML Styles](http://pix4.agoda.net/hotelimages/4172139/0/24097f8fc1c9959ea5062e8d6497eaad.jpg?s=800x)
The HTML style attribute is used to add styles to an element, such as color, font, size, and more.
The HTML Style AttributeSetting the style of an HTML element, can be done with the style attribute.
The HTML style attribute has the following syntax:
<tagname style="property:value;">
The property is a CSS property. The value is a CSS value.
You will learn more about CSS later in this tutorial.
Background ColorThe CSS background-color property defines the background color for an HTML element.
ExampleSet the background color for a page to powderblue:
<h1>This is a heading</h1><p>This is a paragraph.</p>
</body>
Try it Yourself »[1] ExampleSet background color for two different elements:
<h1 style="background-color:powderblue;">This is a heading</h1><p style="background-color:tomato;">This is a paragraph.</...
取得本站獨家住宿推薦 15%OFF 訂房優惠
本站住宿推薦 20%OFF 訂房優惠,親子優惠,住宿折扣,限時回饋,平日促銷
CSS Text | Style=font color
How to Change Text and Background Color in CSS | Style=font color
How to Change Text Color in HTML – Font Style Tutorial | Style=font color
How to change the font type | Style=font color
How to Change the HTML Font Color | Style=font color
How to Change the HTML Font Color | Style=font color
How to set font color in HTML? | Style=font color
How to set font color in HTML? | Style=font color
HTML <font> color Attribute | Style=font color
HTML font color 文字顏色 | Style=font color
HTML font color 文字顏色 | Style=font color
HTML font color 文字顏色 | Style=font color
HTML Font Style – How to Change Text Color and Size ... | Style=font color
HTML Styles | Style=font color
HTML Styles | Style=font color
[HTML] | Style=font color
使用說明 | Style=font color
![](https://i.imgur.com/axBPWDg.jpg)