← CodePrimer
HTML Beginner Basics

Internal CSS with style tag

How do I put CSS inside the HTML file?

Internal stylesheet.

Sample
<head>
  <style>
    body { font-family: system-ui, sans-serif; }
    .note { color: #334155; }
  </style>
</head>

Notes

Fine for demos; prefer external CSS for real projects.

Keywords: style · internal · css

Related

Need more coins?

You do not have enough coins for this action.

Your balance: 0 coins

Share