21 Website authoring (3)

Resources | Revision Questions | Information Communication Technology ICT

Login to see all questions

Click on a question to view the answer

1.

Consider the following HTML code:

<div class="highlight">
  <p>This is an important piece of text.</p>
</div>
  

Explain how the CSS rule .highlight { background-color: yellow; font-weight: bold; } would affect the appearance of the text within the

tag. Describe the effect of each CSS property.

2.

A website designer wants to ensure that a bookmark always takes the user to the top of a specific section of a long webpage, regardless of where the user is on the page. Describe how they could achieve this using HTML and explain the advantages of this approach compared to simply using an id attribute on the section itself.

3.

A web designer is creating a content layer for an online shop. The content layer needs to display product information, including the product name, description, price, and an image. Create a simple HTML table structure to display this information for one product. Ensure the table includes appropriate headers.