QUESTION IMAGE
Question
list exercises
directions: create an html file called lastname - firstname - lists.html. create a webpage that shows everything all together on 1 page.
all headers are the same size. all text is the same size
list #1
- apple
- banana
- carrot
list #2
- playstation
- xbox 360
- wii
- psp
- gameboy
list #3
- coca cola
- coke zero
- diet coke
- coke
- sprite
- sprite zero
- pepsi cola
- pepsi
- diet pepsi
- mountain dew
This is an HTML - related task. HTML (Hyper - Text Markup Language) is used to create web pages. For List #1, we use the <ol> (ordered list) tag. For List #2, we use the <ul> (unordered list) tag. For List #3, which is a nested list, we use nested <ol> tags. We also need to set the same size for headers and text. We can use CSS (Cascading Style Sheets) for this. For simplicity, we can use inline CSS.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
<!DOCTYPE html>
<html>
<head>
<title>Lists Exercise</title>
<style>
h2,
p {
font - size: 16px;
}
</style>
</head>
<body>
<h2>List #1</h2>
<ol>
<li>Apple</li>
<li>Banana</li>
<li>Carrot</li>
</ol>
<hr>
<h2>List #2</h2>
<ul>
<li>PlayStation</li>
<li>Xbox 360</li>
<li>Wii</li>
<li>PSP</li>
<li>GameBoy</li>
</ul>
<hr>
<h2>List #3</h2>
<ol>
<li>Coca Cola
<ol>
<li>Coke Zero</li>
<li>Diet Coke</li>
<li>Coke</li>
<li>Sprite</li>
<li>Sprite Zero</li>
</ol>
</li>
<li>Pepsi Cola
<ol>
<li>Pepsi</li>
<li>Diet Pepsi</li>
<li>Mountain Dew</li>
</ol>
</li>
</ol>
</body>
</html>