HTML Adventures
What is HTML?
HTML stands for HyperText Markup Language. It's the code that makes up all websites on the internet! Think of HTML as the skeleton of a webpage - it gives it structure.
Fun Fact: The first website ever created is still online! You can visit it at http://info.cern.ch
HTML Building Blocks
HTML uses "tags" to create different parts of a webpage. Tags are like containers that hold your content:
<h1>
to<h6>
- Headings (h1 is the biggest)<p>
- Paragraphs for text<img>
- For showing pictures<a>
- Links to other pages<div>
- A box to put things in<button>
- Clickable buttons
Creating Your First Webpage
Every HTML page starts with this basic structure:
<!DOCTYPE html> <html> <head> <title>My Awesome Page</title> </head> <body> <h1>Welcome to My Website!</h1> <p>This is my first webpage. I made it myself!</p> <img src="robot.jpg" alt="A friendly robot"> </body> </html>
Pro Tip: Always close your tags! For every <tag>
there should be a matching </tag>
HTML for Robotics
HTML is used to create control panels for robots! You can make buttons to move a robot, displays to show sensor readings, and more.
As you learn more HTML, you'll be able to create interfaces to control real robots from your computer or tablet!