Every element has a default style. Changing the default style is done with the style attribute:
HTML file: | Displayed by browser: |
---|---|
<!DOCTYPE html>
<html> <body> <h2 style="color:green;">I am Green</h2> <h2 style="color:blue;">I am Blue</h2> </body> </html> |
I am GreenI am Blue |