HTMLCoding day1
Hello everyone! Today we started learning HTML, the language used to build web pages. Here is everything from today's class in one place.
📽️ Class slides
Click here to open today's slides
📝 Quiz
Take the quiz after you have looked at the slides. You will see your score and the correct answers at the end. You can try it more than once.
📌 What we learned today
- A website is made of files. The browser (Chrome) asks the server for a page and draws it.
- HTML means HyperText Markup Language. It is the structure (the "walls") of a web page.
- A tag is written inside angle brackets, like
<p>. - Most tags come in pairs: an opening tag
<p>and a closing tag</p>. <head>holds information about the page.<body>holds what you can see.- An HTML file must end in .html, for example
index.html.
💻 Our first page
Type this in Notepad, save it as index.html, and open it in Chrome:
<html>
<head>
<title>My First Page</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>My name is ___.</p>
</body>
</html>
Remember: after you change the file, save it and press F5 in the browser to see the change.
🏠 Homework
- Open 3 websites and use right-click → View Page Source.
- Write down one tag you found on each website.
- Change your first page: add your name, your favorite game, and a new title.
See you next class! If you get stuck, ask your teacher or write your question in the comments below. 😊
Comments
Post a Comment