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

Divs and Layout Structure

 

✅ Description:

Use <div> to group content and build basic layouts.

 

📘 Explanation:

  • <div> is a block element used to group sections of content.

  • Helps when adding CSS later for styling and layout.

 

💻 Code Example:

<div>
<h2>About Me</h2>
<p>I like art, science, and coding.</p>
</div>
 

🛠️ Exercise:

  • Group different sections (bio, hobbies, links) into <div> elements.