Rashielea Coding Club

Lesson 2: πŸ“ Headings and paragraphs

By the end of this session, you will be able to:

Recap from Week 1

Last week you created your first webpage! You learned about:

Today, we’re going to expand that page with more headings and paragraphs.

Step 1: Headings

Headings are like titles or chapter names. They range from <h1> (the biggest) to <h6> (the smallest).

Example:

<h1>My Cool Website</h1>
<h2>About Me</h2>
<h3>My Hobbies</h3>

πŸ’‘ Tip: Use headings to show what each part of your page is about.

Step 2: Paragraphs

Paragraphs hold your text. They are wrapped in <p> tags.

Example:

<p>I love coding because I can create games and websites.</p>
<p>My favourite subject at school is science.</p>

πŸ’‘ Tip: Each paragraph should cover one idea or topic.

Step 3: Lists

When you have a lot of information on your page, it can be helpful to break it up using a list.

Lists can be ordered, like this:

  1. this is item one
  2. this is item two
  3. this is item three

or unordered, like this:

Lists are different to paragraphs because you need an opening and closing tag for the list, and also for each list item

create a list like this:

<ul>
<li>item one</li>
<li>item two</li>
<li>and so on...</li>
</ul>

use <ul> tags for an unordered list, or <ol> for an ordered list.

Step 4: Try it yourself

Edit your Week 1 page and:

Remember to close your tags!

Click Save, then View your page in the browser. Make sure your headings and paragraphs appear correctly.

Step 5: Challenge (Optional)

Add one more section with a heading and paragraph about a hobby or skill you want to learn this year. Show it to a friend at the club!