Agyan
adda
Run
Reset
Copy
CSS Tutorial › How to Add CSS › Internal and inline CSS
Back to tutorial
Code
Edit, then press Run or Ctrl+Enter
<!DOCTYPE html> <html> <head> <style> h2 { color: green; } </style> </head> <body> <h2>Styled by internal CSS</h2> <h2 style="color: crimson;">Inline CSS wins here</h2> </body> </html>
Result