Advertisement
KodingKid

Internal and External CSS in HTML

Mar 24th, 2021
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.28 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <style>
  5. body {background-color: tomato;}
  6. h1   {color: yellow;}
  7. h2    {color: green;}
  8. </style>
  9. </head>
  10. </html>
  11. <!--Internal CSS-->
  12. <!DOCTYPE html>
  13. <html>
  14. <head>
  15.   <link rel="stylesheet" href="mystyle.css">
  16. </head>
  17. </html>
  18. <!--External CSS-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement