HTML for Kids: A Beginner’s Course | HTML and CSS

✅ Description:

Understand the three main ways to apply CSS and learn how to use internal and external stylesheets.

📘 Explanation:

  1. Inline CSS: style right in the tag

  2. Internal CSS: style inside a <style> tag in the HTML <head>

  3. External CSS: link a separate .css file

 

💻 Code Example (Internal CSS):

 
<head>
<style>
h1 {
color: red;
}
</style>
</head>
 

🛠️ Exercise:

  • Create a webpage and use internal CSS to style the background and text.

  • Then create a separate .css file and link it to the HTML.