In: Computer Science
Create a un-order list that displays each day of the week with
corresponding office hours.
Set M-F for 9-5pm, Sat 10-2pm, Sun -closed. Use 3 spaces between
the day and time.
Example: Monday [3 spaces] 9am – 5pm
Generally, spaces inbetween a single elements sinks in un-ordered list, which be solved using ' ' keyword.
I have providing the code alongwith screenshot of output:
Code:
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<ul>
<li>Monday 9am – 5pm</li>
<li>Tuesday 9am – 5pm</li>
<li>Wednesday 9am – 5pm</li>
<li>Thursday 9am – 5pm</li>
<li>Friday 9am – 5pm</li>
<li>Saturday 10am – 2pm</li>
<li>Sunday Closed</li>
</ul>
</body>
</html>
Output: