Session 7: HTML Fundamentals
HTML (HyperText Markup Language) is the building blocks of websites. Every website you visit is made of HTML.
Note: HTML only controls structure. CSS (next session) controls how it looks!
Tags are HTML's instructions. They use angle brackets < > and usually have an opening tag and closing tag.
Key: Notice opening <tag> and closing </tag>
Display images from the web or your computer.
Note: img tag doesn't have a closing tag!
src = where the image is located
alt =
text shown if image doesn't load
Link to other websites or pages.
a = anchor (link)
href = where the link
goes
Text between tags is what user clicks
Div (division) is a container that groups related content. Essential for organization!
Divs let you organize content and style groups of elements
Comments are notes in code that don't display on the website. Great for explaining code!
Semantic HTML uses tags that describe their meaning, not just appearance.
Why: Better for search engines, accessibility, organization
You can see HTML of any website by pressing Ctrl+U (or right-click "View Page Source")!
Cool fact: Complex websites have thousands of lines of HTML!
HTML is the foundation - next add CSS to make it beautiful
Next Session: CSS Styling & Web Design