By the end of this lesson, you will be able to:
Make sure you have:
:information_source: Info What is HTML? HTML (HyperText Markup Language) is the language that tells web browsers how to display content. Think of it as the skeleton of a website - it gives structure to everything you see on web pages!
When you open a website, your browser reads HTML code and displays it as a beautiful webpage. It's like magic! :sparkles:
:bulb: Tip: EduBlocks Connection In EduBlocks, each HTML block you drag represents real HTML code. When you snap blocks together, you're building a website just like professional developers do!
Every HTML document needs these four essential parts:
Did you know? Tim Berners-Lee created HTML in 1991. He wanted to make it easy for people to share information on the internet. Today, we use HTML5 - the newest and coolest version!
:memo: Fun Fact HTML has grown from a simple language to a powerful tool that powers billions of websites around the world!
:information_source: Info What is an HTML Element? An HTML element is like a container that holds your content. It has three parts:
Think of HTML elements like sandwich making:
Here's how it looks:
:bulb: Tip: EduBlocks Tip In EduBlocks, when you drag an element block, it automatically creates both the start and end tags for you. No need to worry about forgetting to close your tags!
HTML tags are special instructions wrapped in angle brackets < >
. They tell the browser what to do with your content.
Every HTML document has two important sections:
The Head Section :emoji:
The Body Section :emoji:️
:memo: Block Connection In EduBlocks, you'll find separate blocks for the head and body sections. Always put display content in the body blocks!
Think of attributes as special settings for your HTML elements. They give extra information or special powers to your tags!
:information_source: Info What are Attributes? Attributes are like adding toppings to your pizza - they make your HTML elements more interesting and functional! They always go inside the opening tag and follow this pattern:
attribute="value"
For example, when creating a link, you need to tell it WHERE to go:
:bulb: Tip: EduBlocks Hint In EduBlocks, attributes appear as input fields on your blocks. Just type in the values you want - no need to worry about quotes or syntax!
These are the building blocks of every webpage! Let's learn how to use them.
HTML gives you six different heading sizes:
<p>
tag) :page_facing_up:The <p>
tag creates paragraphs - perfect for your main text content!
Here's how it looks with EduBlocks:
:memo: Pro Tip Always use headings in order! Don't jump from h1 straight to h4. It's like reading a book - you need chapter titles before section titles!
Before watching the video, here's what we've learned:
Watch this video to see HTML in action with EduBlocks:
Having trouble? Here are common issues and solutions:
:bulb: Tip: Common Issues
- My webpage is blank!
- Check that your content is in the body section, not the head
- Make sure all tags are properly closed
- My heading looks weird
- Verify you're using the right heading number (h1-h6)
- Check that you haven't nested headings inside paragraphs
- EduBlocks won't connect
- Ensure blocks are compatible (body content goes in body section)
- Try refreshing the page and rebuilding
Now it's your turn! Try these challenges:
:memo: Remember Every professional web developer started exactly where you are now. Keep practicing with EduBlocks, and soon you'll be building amazing websites!