Gone Away travel is a holiday booking website. Below is the home page for the website.
The following HTML and CSS is for a web page containing information about a trip to Naples.
style.css
body{
background-color:lightblue;
}
img{
height:200px;
width:250px;
}
h1{
font-family:Helvetica;
font-size:14px;
}
div{
background-color:white;
}
#city{
text-align:center;
font-size:20px;
}
p{
text-align:center;
font-size:12px;
}
naples.html
<!doctype HTML>
<html>
<head>
<title>Gone Away Travel - Naples</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>Gone Away Travel</h1>
<h1 id="city">Naples</h1>
<p>Come visit the lovely Naples, the third largest city in
Italy. Home to the best pizza in the world. View our
pictures below to help make up your mind.</p>
<div>
<img src="Media/naples1.png">
<p class="description">Stunning view of the Naples bay</p>
</div>
<div>
<img src="Media/naples2.png">
<p class="description">One of the many food markets in
Naples</p>
</div>
</body>
</html>
(i) The description of each photograph is to be right aligned, use Arial font and be the same size as the other paragraphs on the page.
Write a single CSS rule that would only style the descriptions
[3]
..............................................{ ................................................................ ................................................................ } |
(ii) The hyperlink below can be found on the Naples information page.
<a href="www.NaplesCity.co.uk">Official Naples city
guide</a>
State the type of addressing used in the hyperlink.
[1]