G.O.C

· SCSS Complete Class

### Select and Options > \n ### Radio Buttons One choice from a group. Radios in a group share the same name. > \n\n !Remind students: same name="level" puts them in one group. ### Checkboxes Multiple selections allowed. > \n\n ### Buttons > \n\n\n ### Complete Registration Form Create registration.html and copy this body. It combines every form control. >

Student Registration

\n
\n

\n

\n

\n

\n

\n

\n

\n

\n

\n

\n

Experience Level:

\n \n \n

Skills:

\n \n \n \n


\n

\n \n \n
## 8. Semantic HTML & Accessibility ### Semantic HTML Choose elements for their meaning, not just as generic containers. Learn: header, nav, main, section, article, aside, footer. !This is one of the most important sections of the course. > #### Header >
\n

My Website

\n

Welcome to my website.

\n
#### Navigation > #### Main The dominant content of the document. >
\n

About Our Company

\n

We build websites.

\n
#### Section >
\n

Our Services

\n

We offer web development services.

\n
#### Article Self-contained content: blog posts, news, forum posts, product reviews. >
\n

How to Learn HTML

\n

HTML is the foundation of web development.

\n
#### Aside Related or supplementary content. > #### Footer > ### Complete Semantic Website Copy into index.html. It uses header, nav, main, sections, articles and footer. > \n\n\n \n \n Learn Web Development\n\n\n
\n

Learn Web Development

\n

Start your journey into web development.

\n \n
\n
\n
\n

Welcome

\n

Learn HTML, CSS, JavaScript, and other web technologies.

\n
\n
\n

Our Courses

\n

HTML

Learn how to structure webpages.

\n

CSS

Learn how to style webpages.

\n

JavaScript

Learn how to add interactivity.

\n
\n
\n

About Us

\n

We help beginners learn modern web development.

\n
\n
\n

Contact

\n

Email: hello@example.com

\n
\n
\n \n\n ### Details and Summary Expandable content. Click the question in your browser. >
\n What is HTML?\n

HTML is the markup language used to structure webpages.

\n
### Accessibility Pages should be usable by as many people as possible, including those using assistive technologies. #### Rule 1: Use semantic HTML Prefer nav for navigation and a real button for buttons. >
Click Me
The example above is a fake button; use button when appropriate. #### Rule 2: Use alt text > Students working together in a classroom Decorative images can have empty alt text. > #### Rule 3: Label forms > \n #### Rule 4: Use headings correctly H1 → H2 → H3, following the structure of the content. ## 9. Files & Multi-Page Websites ### File and Folder Structure > my-website/\n├── index.html\n├── about.html\n├── contact.html\n└── images/\n ├── logo.png\n └── profile.jpg #### Referencing an image > Company logo #### Linking to another page > About Us #### Going up a folder From pages/about.html to images/logo.png: > Company logo .. means "go up one directory". ### Multi-Page Website A real site has several pages: index.html, about.html, services.html, contact.html. Every page repeats the same navigation. #### index.html > \n\n\n \n \n Home\n\n\n
\n

My Website

\n \n
\n
\n

Welcome

\n

Welcome to our website.

\n
\n\n #### about.html Same as index.html, with title "About Us", h1 "About Us" and this main: >
\n

Who We Are

\n

We are a web development company focused on helping businesses build websites.

\n
## 10. HTML + CSS + JavaScript ### Connecting HTML to CSS HTML = structure, CSS = presentation. Project: index.html + style.css. Add this inside head: > style.css: > body {\n font-family: Arial, sans-serif;\n}\n\nh1 {\n color: blue;\n}\n\np {\n font-size: 18px;\n} ### Connecting JavaScript Project: index.html + style.css + script.js. Add this inside head: > In the body: > script.js: > const button = document.querySelector("#helloButton");\n\nbutton.addEventListener("click", function () {\n alert("Hello from JavaScript!");\n}); HTML creates the button, CSS styles it, JavaScript makes it interactive. ## 11. Tools & Best Practices ### VS Code and Emmet Emmet speeds up HTML. Type an abbreviation, then press Tab. > ! Generates the basic HTML document. > ul>li*5 Creates a ul with five li. > div.container Creates a div with class "container". > section#about Creates a section with id "about". > nav>ul>li*4>a Creates a navigation list with four links. ### HTML Best Practices #### 1. Use lowercase >

Hello

#### 2. Indent your code Indent nested elements so the structure is visible. #### 3. Use semantic elements header, nav, main, section, article, footer, when they match the content. #### 4. Use meaningful names Good: class="course-card". Less descriptive: class="box1". #### 5. Don't use HTML for styling > Hello That old approach is avoided; use CSS instead. #### 6. Don't use tables for layout Tables are for tabular data. Use CSS layout techniques for page layout. ## 12. Projects ### Mini Project 1: Personal Profile Page Create profile.html. Requirements: name, profile image, biography, skills, hobbies, education, social links, contact information. > \n
\n

John Smith

\n

Web Development Student

\n
\n
\n
\n

About Me

\n John Smith\n

I am learning web development and building my first websites.

\n
\n
\n

My Skills

\n \n
\n
\n

My Hobbies

\n \n
\n
\n \n !Students should modify the starter, not submit it as is. ### Mini Project 2: Recipe Website Create recipe.html. Requirements: recipe name, image, description, ingredients, instructions, cooking time, servings. >
\n

Jollof Rice

\n

A delicious Nigerian rice dish.

\n
\n
\n
\n Plate of jollof rice\n
Homemade jollof rice.
\n
\n
\n

Ingredients

\n \n
\n
\n

Instructions

\n
    \n
  1. Prepare the tomato mixture.
  2. \n
  3. Cook the sauce.
  4. \n
  5. Add the rice.
  6. \n
  7. Cook until the rice is tender.
  8. \n
\n
\n
### Mini Project 3: Blog Page Create blog.html. Structure: header, navigation, main, article (title, author, date, image, introduction, sections, conclusion), aside, footer. >
\n
\n
\n

How I Started Learning Web Development

\n

By John Smith

\n

Published:

\n
\n

My journey into web development started when I became interested in how websites work.

\n

Learning HTML

\n

HTML was the first technology I learned.

\n

Learning CSS

\n

After HTML, I started learning CSS.

\n
\n
### Final Project: Course Website Build a complete course website. > course-website/\n├── index.html\n├── courses.html\n├── course-details.html\n├── instructors.html\n├── about.html\n├── contact.html\n├── login.html\n├── register.html\n└── images/\n ├── logo.png\n ├── instructor.jpg\n └── course.jpg #### Homepage structure Header (logo, navigation, login, register) → Main (hero, featured courses, why choose us, instructors, testimonials) → Footer. #### Homepage code Create index.html: > \n\n\n \n \n LearnHub\n\n\n
\n

LearnHub

\n \n

Login | Register

\n
\n
\n
\n

Learn Skills. Build Your Future.

\n

Learn web development, programming, design, and technology from experienced instructors.

\n Explore Courses\n
\n
\n

Featured Courses

\n

HTML for Beginners

Learn how to build webpages from scratch.

Level: Beginner

View Course
\n

CSS & SCSS

Learn how to create beautiful and maintainable websites.

Level: Beginner

View Course
\n

JavaScript

Learn how to make websites interactive.

Level: Beginner

View Course
\n
\n
\n

Why Learn With Us?

\n \n
\n
\n

Our Instructors

\n

John Smith

Frontend Developer

\n

Mary Johnson

Software Engineer

\n
\n
\n \n\n ## 13. Practice & Review ### Exercise System Every module has three levels. #### Level 1: Follow Copy the instructor's code, run it, understand what it does. #### Level 2: Modify Change things. For example change this heading to "My Academy" and the paragraph to your own description. >

LearnHub

#### Level 3: Build Don't copy; build from requirements. Example: a personal portfolio page with a heading, profile image, biography, skills list, projects, social links and contact information. !This is where actual learning happens. ### Knowledge Check Students should answer these before moving to CSS. #### Q1: What does HTML stand for? HyperText Markup Language. #### Q2: What is HTML used for? Structuring and describing the content of webpages. #### Q3: h1 versus p? h1 is a top-level heading; p is a paragraph. #### Q4: What does the about link do? > About It creates a link to about.html. #### Q5: What does src do? > It specifies the source/location of the image. #### Q6: What is alt? Alternative text describing the image. #### Q7: ul versus ol? ul = unordered list; ol = ordered list. #### Q8: What is form used for? Collecting/submitting user input. #### Q9: Why use label? It labels a form control and associates the label with that control. #### Q10: What is semantic HTML? Using elements by their meaning and purpose, such as nav, main, article and footer. ### Final HTML Mental Model HTML = content (text, images, links, forms, tables) + structure (header, main, sections, footer) + meaning (nav, article, section, aside, footer). Learning path: HTML → CSS → JavaScript → Git/GitHub → APIs → Backend → Generative AI / LLMs → AI-powered applications. !Key principle: don't memorize tags; HTML describes what the content is and how the document is structured.