By default, hyperlinks are underlined. However, they do not necessarily need to
ID: 3542222 • Letter: B
Question
By default, hyperlinks are underlined. However, they do not necessarily need to be.
Using the following listing as a guide, modify the code so that neither the active
hyperlinks nor the visited hyperlinks are underlined.
<html>
<head>
<style type="text/css">
ul
{
width:100%;
float:left;
}
li {
display:inline;
}
a
{
color:white;
background-color:green;
}
</style>
</head>
<body>
<ul>
<li><a
href="http://www.w3schools.com/css/css_quiz.asp">CSS
Quiz</a></li>
<li><a href="http://css.maxdesign.com.au/">MaxDesign
</a></li>
<li><a href="http://www.csszengarden.com/">Zen
Garden</a></li>
<li><a
href="http://www.w3.org/Style/CSS/Overview.en.html">W3
C CSS</a></li>
</ul>
</body>
</html>
Once you have completed the new html file save it for future upload to your
HostGator Site. Name the file
Explanation / Answer
<html>
<head>
<style type="text/css">
ul
{
width:100%;
float:left;
}
li {
display:inline;
text-decoration: none;
}
a
{
color:white;
background-color:green;
}
a:active {text-decoration:none;}
a:visited {text-decoration:none;}
</style>
</head>
<body>
<ul>
<li><a
href="http://www.w3schools.com/css/css_quiz.asp">CSS
Quiz</a></li>
<li><a href="http://css.maxdesign.com.au/">MaxDesign
</a></li>
<li><a href="http://www.csszengarden.com/">Zen
Garden</a></li>
<li><a
href="http://www.w3.org/Style/CSS/Overview.en.html">W3
C CSS</a></li>
</ul>
</body>
</html>
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.