Skip to content

Exercises (HTML): Webmaking with HTML and CSS

Jonathan edited this page Jun 19, 2023 · 6 revisions

HTML section exercises

Exercise 1: Adding content elements

Instructions

  1. Together: Review the text in the body element of index.html. Decide on its structure in terms of headings, paragraphs, and lists.
  2. Add HTML content elements h1, h2, p, ul, and li to the content, where appropriate. Try to add at least one of each element before repeating elements.

Hints

  • Elements are made using tags, which are indicated by angle brackets, i.e. < and >.
  • Element tags usually come in pairs, e.g.: <h1> and </h1>.

Code snippets

<h1>Level 1 heading</h1>
<h2>Level 2 heading</h2>
<p>Paragraph or other text...</p>
<ul>
  <li>First list item</li>
  <li>Second list item</li>
</ul>

Clone this wiki locally