Create a web page and help users move between pages
In this lesson you will learn how to create a simple web page interface using HTML and CSS and how to connect web pages using navigation links.
11.5.3.2Create an interface using HTML and CSS
11.5.3.3Implement site navigation
I can: build a clear page, style it with CSS, and make links that work.
1. What is an interface?
A web interface is what users see and use on a page: text, images, menus, links and buttons. A clear interface helps users answer: “Where do I go next?”
The text after # must match the target id. Use each ID only once on a page.
Copy index.html and name the copy projects.html.
In the copy, change the title and h1 to Our Projects. Change the first section to describe a project. Remove its “See projects” link; keep the Contact section.
Keep the same stylesheet and menu. Move aria-current="page" from Home to Projects:
Answer:contacts and contact do not match. Change the link to href="#contact".
Link or button? Use <a href="..."> to go somewhere. Use <button> for an action, such as submitting a form. Styling a link like a button does not change its purpose.
Three ways to style a menu
The same links can look different. These examples show only the menu. Try the links: they jump to sections of this lesson.
A. Horizontal bar
Links share one dark background. Use flex-wrap so the menu can wrap on a small screen.
Use it on your website: choose one menu and copy its HTML and CSS. Replace the href values with your page names, such as index.html and projects.html, or your own section IDs.
Try: move through a menu with Tab and open a link with Enter. Which CSS property makes the third menu vertical?
4. Your task · 15–20 minutes
Use the example to make a two-page website for a school club of your choice.
Content: give each page a useful title, a heading and a short paragraph.
Style: choose a dark header colour and a light page background. Adjust the space inside content blocks.
Navigation: connect Home and Projects. Add a working Contact jump link and mark the current page.
Test: open both pages, click every link and make the browser window narrower. Press Tab to move between links and Enter to open one.
Before you finish:
□ Both pages use the same CSS and menu.
□ Text is easy to read; blocks have space around them.
□ Every link reaches the correct page or section.
□ The current page and keyboard focus are visible.
Explain your work — 3 short questions
What did HTML do? What did CSS do?
How is projects.html different from #contact in a link?
Why should both pages have the same menu?
Key ideas: HTML provides structure; CSS controls presentation. A filename opens a page; a fragment starting with # targets an ID on the current page. A consistent menu helps users find their way.
interface — интерфейсlayout — расположение элементовnavigation — навигацияlink — ссылкаdestination — место переходаspacing — отступы