Web development is the process of creating pages and applications for a browser. Begin with HTML headings, paragraphs, and links; add CSS for appearance; then learn how JavaScript responds to actions. This overview follows those foundations in AI Ka School’s web curriculum.
Connect a CSS selector with the element it styles.
Explain the different jobs of HTML, CSS, and JavaScript.
Check a page for readable content and descriptive links.
[ READ · TRY · CHECK ]
Your lessons are ready.
Everything below is available without an account. Pause at each question and make a prediction before opening the answer.
01
LESSON 01 / 03
Content with HTML
Give a page a main heading, write a paragraph, and create a link with a meaningful label. Structure communicates what the content means.
The idea
HTML gives content meaning and a useful reading order.
A page normally has one main heading, paragraphs for explanation, and lists for groups of items. Links have destinations; their visible words should tell readers where they go. Meaningful structure helps people using keyboards and screen readers.
Start with content before decoration. If the text makes sense with styles turned off, you have a solid base for CSS.
WORKED EXAMPLE
A small club page
The heading names the page and the list groups the activities.
<h1>Moon Explorers Club</h1>
<p>We learn about the night sky.</p>
<ul><li>Draw a moon map</li><li>Track a planet</li></ul>
YOUR TURN
Should the main title be an h1 or a p?
Need a hint?
Which element tells the browser this is the page’s most important heading?
Check your answer
Use an h1. A paragraph is for body text.
Try it further: Which element belongs around the main page heading: h1, p, or a?
02
LESSON 02 / 03
Style with CSS
Select an element and change one property at a time. Explore spacing and colour while keeping the text readable.
The idea
CSS chooses elements, then changes their appearance.
A selector such as p matches every paragraph. A property such as color changes one aspect of its appearance. Add one rule at a time so you can see which change produced the result.
Keep text and background contrast readable. Spacing and line length matter as much as colour, especially on a narrow phone screen.
WORKED EXAMPLE
Style paragraphs
This rule changes every paragraph; it does not change the h1.
p {
color: #182033;
line-height: 1.6;
}
YOUR TURN
What would you select to style only a paragraph with class="intro"?
Need a hint?
A class selector starts with a dot.
Check your answer
Use .intro { ... }. It matches elements with that class.
Try it further: If the selector is p, which elements receive the style?
03
LESSON 03 / 03
Behaviour and accessible design
Understand how an event can trigger an action. Use links for navigation and buttons for actions, and check that a page makes sense without decorative styling.
The idea
JavaScript responds to actions; the HTML control should still fit its purpose.
Use a link when someone goes to another page and a button when an action changes the current page. A click listener can update text, reveal information, or validate an answer. The label should tell users what will happen.
Test the page with a keyboard and at a narrow width. A control is useful only if someone can find and activate it.
WORKED EXAMPLE
Respond to a button
The action changes the paragraph after the button is clicked.
Would you use a link or a button to open the next lesson?
Need a hint?
Opening another URL is navigation.
Check your answer
Use a link with a descriptive label such as “Next lesson: CSS”.
Try it further: Would you use a link or a button to open another page?
[ PUT IT TO WORK ]
Build a page about a fictional club
Create a simple club page with a heading, a short description, and a list of activities. Use fictional information, then personalise the colours and spacing.
Check your work
The page has one clear main heading.
The activity list uses list elements.
Link labels describe their destination.
[ GO DEEPER / FOLLOW THE SOURCE ]
Further reading
These sources support further study. The lessons above are original AI Ka School material.