In: Computer Science
take the following html code and make it work for html validator.
heres the ,html file
<!DOCTYPE html>
<html lang="en">
<head>
<title>
GettingStarted</title>
<meta charset="utf-8">
<link href="Style.css"
rel="stylesheet">
</head>
<body>
<header><h1>GettingStarted</h1></header>
<nav>
<b>
<a
href="Home.html">Home</a>
<a
href="GettingStarted.html">Getting
Started</a>
<a
href="MaterialsNeeded.html">Materials
Needed</a>
<a
href="TroubleShooting.html">TroubleShooting</a>
<a
href="InfoMaterials.html">Infomation on
materials</a>
<a
href="CommonSoftware.html">Common
Software</a>
<a
href="ContactUs.html">Contact Us</a>
</b>
</nav>
<div
class="pic"></div>
<main>
<p>
</p>
<ul>
<img src="placeholder.png"
alt="place holder" width="200" height="200">
<li> tool requirements:
scraper,glue stick , printing material ,unjammer tool , levler if
not auto calibration
</li>
<li>error if not done: prints
wont be level or print, or material will be jamed and not
print.</li>
<img src="placeholder.png"
alt="place holder" width="200" height="200">
<li>
calibration</li>
<li>error if not done:
unleveled printing bed and prints being knocked off bed or melt, or
results in no print.</li>
<img src="placeholder.png"
alt="place holder" width="200" height="200" >
<li> software
requirements</li>
<li>error if not done: won'
be able to upload files to be printed, bad layer adhesion or
resulting poor print </li>
</ul>
</main>
</body>
</html>
heres the .css file
body{background-image:url(sky.png);
background-repeat: no-repeat;
font-family: Arial, Helvetica, sans-serif;}
#wrapper { width:80%;
margin-left: auto ;
margin-right:
auto ;
background-color: #FFFFFF;
min-width:900px;
max-width:1000px;
box-shadow: 4px 4px 4px #133926;}
header{background-color: #00B386;
color: #FFFFFF;
text-align: center;
height:60px;
padding-top: 15px;
}
html {
background: url(back.png) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
body{
font-weight:bold;
color: #FFFFFF;
}
nav{background-color: #FFFFFF;
font-weight:bold;
text-align: center;
padding: 10px;
}
nav a {text-decoration: none;}
main{
padding:1px 20px 20px 20px;
display:block;
}
h1{margin-bottom:0;
margin-top:0;
font-family: Georgia,"Times New Roman",serif;
}
h2{color:#00664D;
text-shadow: 1px 1px #CCCCCC;
font-family: Georgia,"Times New Roman",serif;
}
h3{font-family: Georgia,"Times New Roman",serif;}
dt{color:#00664D;
}
.barn {color:#FFFF00;
}
ul{list-style-image: url(marker.gif);}
#contact{font-size:90%;}
footer{ font-size:75%;
font-style:italic;
padding:15px;
font-family:Georgia,"Times New Roman",serif;
text-align: center;}
#heroHome{background-image: url(homeimage.png);
height:300px;
background-repeat:no-repeat;
}
#heroBoard{
background-image: url();
height:300px;
background-repeat:no-repeat;
background-size: 100% 100%;
}
#heroTraining{
background-image: url();
height:300px;
background-repeat:no-repeat;
background-size: 100% 100%;
}
.placeholders{
width:200px;
height:200px;
background-image: url(placeholder.png);
background-repeat:none;
}
.pic {
float: left;
}
.container {
border: 3px solid blue;
padding: 20px 40px 40px;
max-width: 640px;
&__image {
display:
inline-block;
vertical-align:
top;
width: 46%;
margin: 20px 30px 0
0;
}
&__text {
display:
inline-block;
width: 46%;
@media (max-width:
620px) {
width: 100%;
}
}
}
Below is the corrected code. There was ONE issue
- We cannot directly place the <img> tag in the
<ul> tag. We must enclose all the <img> tags inside a
<ul> within a <li> tag
Kindly upvote if this
helped
<!DOCTYPE html>
<html lang="en">
<head>
<title> GettingStarted</title>
<meta charset="utf-8">
<link href="Style.css" rel="stylesheet">
</head>
<body>
<header>
<h1>GettingStarted</h1>
</header>
<nav>
<b>
<a href="Home.html">Home</a>
<a href="GettingStarted.html">Getting Started</a>
<a href="MaterialsNeeded.html">Materials Needed</a>
<a href="TroubleShooting.html">TroubleShooting</a>
<a href="InfoMaterials.html">Infomation on materials</a>
<a href="CommonSoftware.html">Common Software</a>
<a href="ContactUs.html">Contact Us</a>
</b>
</nav>
<div class="pic"></div>
<main>
<p>
</p>
<ul>
<li><img src="placeholder.png" width="200" height="200"></li>
<li> tool requirements: scraper,glue stick , printing material ,unjammer tool , levler if not auto calibration
</li>
<li>error if not done: prints wont be level or print, or material will be jamed and not print.</li>
<li><img src="placeholder.png" width="200" height="200"></li>
<li> calibration</li>
<li>error if not done: unleveled printing bed and prints being knocked off bed or melt, or results in no print.</li>
<li><img src="placeholder.png" width="200" height="200" ></li>
<li> software requirements</li>
<li>error if not done: won' be able to upload files to be printed, bad layer adhesion or resulting poor print </li>
</ul>
</main>
</body>
</html>