Home
HTML
HTML Attributes
Tryit: HTML style attribute
Run ❯
Get your
own
website
Result Size:
625 x 534
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <h2>The style Attribute</h2> <p>The style attribute is used to add styles to an element, such as color:</p> <p style="color:red;">This is a red paragraph.</p> </body> </html>