HTML specifies the attribute style of the element's inline style

黄舟
Release: 2017-11-03 13:43:10
Original
8880 people have browsed it

Example

Use the style attribute in HTML documents:

<h1 style="color:blue; text-align:center">This is a header</h1>
<p style="color:red">This is a paragraph.</p>
Copy after login

Definition and usage

The style attribute specifies the inline style of the element

## The #style attribute will override any global style settings, such as those specified in the