Exercise

  1. Inside the <body> tags, write the following snippet of text as header text ‘Webpage components’.
  2. Enter the following text as paragraph text: ‘This website contains all of the basic elements used to create a webpage.’
  3. Wrap these snippets of text in a div and give it an id of ‘introduction-text’.
  4. Wrap a <span> tag around the first word of the paragraph and give it a class of ‘firstWord’.

Images

In Chapter 2, we demonstrated how to make use of images in web design and how to set fixed heights to our images. Let’s now add some images into our website.