Attached are three screenshots: the first from Visual Studio Code editor, the second from freeCodeCamp preview, and the third is from liveweave.com preview. The code is basically the same for all three. The only modification appears in the code from Visual Studio Code. I am new to the platform and haven yet figured out how to link the stylesheet in app, so deleted the link and put the stylesheet in a style element in the html. The outputs are slightly different. Should I be concerned? BTW this for the HTML/CSS certification project 1/5.
from Visual Studio Code:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title> Car Survey</title>
<style>
body {
background-image: url(https://cdn.pixabay.com/photo/2019/08/09/06/12/car-racing-4394450_640.jpg);
background-repeat: no-repeat;
background-size: cover;
background-position: right;
font-family: Arial;
padding: 40;
}
h1 {
color: black;
font-weight: bold;
}
p {
color: black;
font-weight: bold;
font-size: 55px;
}
h1, p {
text-shadow: 0 0 3px #ff0000
}
form {
position: absolute;
right: 92px;
width: 300px;
background-color: #000;
opacity: 0.75;
color: #fff;
background-image: linear-gradient(to right, rgba(255,0,1), rgba(255,0,0,0));
}
label {
display: block;
}
fieldset{
border-top: 0;
border-left: 0;
border-right: 0;
}
fieldset:last-of-type{
border-bottom: none;
}
</style>
</head>
<body>
<h1 id="title">Dream Car Survey</h1>
<p id="description">Let's Talk About Your Dream Car!!</p>
<form id="survey-form">
<fieldset>
<label id="name-label">Enter your name: <input id="name" placeholder=name required /></label>
<label id="email-label">Enter your email: <input id="email" type="email" placeholder=email required /></label>
<label id="number-label">Enter your age: <input id="number" type="number" min="13" max="150" placeholder="13+" /></label>
</fieldset>
<fieldset>
<label>Do you drive?
<select id="dropdown" name="car-type">
<option value="">(select one)</option>
<option value="yes">Yes</option>
<option value="no">No</option>
</select>
</label>
<label>If so, what do you drive?</label>
<label><input type="checkbox" name="car-type" value="SUV" class="inline" />SUV
</label>
<label><input type="checkbox" name="car-type" value="Hatchback" class="inline" />Hatchback
</label>
<label><input type="checkbox" name="car-type" value="Coupe" class="inline" />Coupe
</label>
<label><input type="checkbox" name="car-type" value="Sedan" class="inline" />Sedan
</label>
<label><input type="checkbox" name="car-type" value="Van/Minivan" class="inline" />Van/Minivan
</label>
<label><input type="checkbox" name="car-type" value="Pickup" />Pickup
</label>
<label><input type="checkbox" name="car-type" value="Other" />Other
</label>
</fieldset>
<fieldset>Rate your car-smarts!
<label><input type="radio" name="car-smarts" value="1" />Not so smart</label>
<label><input type="radio" name="car-smarts" value="2" />Could be smarter</label>
<label><input type="radio" name="car-smarts" value="3" />Pretty car-smart</label>
<label><input type="radio" name="car-smarts" value="4" />Very car-smart</label>
<label><input type="radio" name="car-smarts" value="5" />Extremely car-smart</label>
</fieldset>
<fieldset>
<label>Tell us about your dream car:
<textarea name="about-my-dream-car" rows="3" cols="30" placeholder="about my dream car"></textarea>
</label>
<input type="submit" id="submit" value="Submit" />
</fieldset>
</form>
</body>
</html>
output in chrome via Visual Studio Code
from freeCodeCamp preview:
html:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title> Car Survey</title>
<link href="styles.css" rel="stylesheet" />
</head>
<body>
<h1 id="title">Dream Car Survey</h1>
<p id="description">Let's Talk About Your Dream Car!!</p>
<form id="survey-form">
<fieldset>
<label id="name-label">Enter your name: <input id="name" placeholder=name required /></label>
<label id="email-label">Enter your email: <input id="email" type="email" placeholder=email required /></label>
<label id="number-label">Enter your age: <input id="number" type="number" min="13" max="150" placeholder="13+" /></label>
</fieldset>
<fieldset>
<label>Do you drive?
<select id="dropdown" name="car-type">
<option value="">(select one)</option>
<option value="yes">Yes</option>
<option value="no">No</option>
</select>
</label>
<label>If so, what do you drive?</label>
<label><input type="checkbox" name="car-type" value="SUV" class="inline" />SUV
</label>
<label><input type="checkbox" name="car-type" value="Hatchback" class="inline" />Hatchback
</label>
<label><input type="checkbox" name="car-type" value="Coupe" class="inline" />Coupe
</label>
<label><input type="checkbox" name="car-type" value="Sedan" class="inline" />Sedan
</label>
<label><input type="checkbox" name="car-type" value="Van/Minivan" class="inline" />Van/Minivan
</label>
<label><input type="checkbox" name="car-type" value="Pickup" />Pickup
</label>
<label><input type="checkbox" name="car-type" value="Other" />Other
</label>
</fieldset>
<fieldset>Rate your car-smarts!
<label><input type="radio" name="car-smarts" value="1" />Not so smart</label>
<label><input type="radio" name="car-smarts" value="2" />Could be smarter</label>
<label><input type="radio" name="car-smarts" value="3" />Pretty car-smart</label>
<label><input type="radio" name="car-smarts" value="4" />Very car-smart</label>
<label><input type="radio" name="car-smarts" value="5" />Extremely car-smart</label>
</fieldset>
<fieldset>
<label>Tell us about your dream car:
<textarea name="about-my-dream-car" rows="3" cols="30" placeholder="about my dream car"></textarea>
</label>
<input type="submit" id="submit" value="Submit" />
</fieldset>
</form>
</body>
</html>
css:
body {
background-image: url(https://cdn.pixabay.com/photo/2019/08/09/06/12/car-racing-4394450_640.jpg);
background-repeat: no-repeat;
background-size: cover;
background-position: right;
font-family: Arial;
padding: 40;
}
h1 {
color: black;
font-weight: bold;
}
p {
color: black;
font-weight: bold;
font-size: 55px;
}
h1, p {
text-shadow: 0 0 3px #ff0000
}
form {
position: absolute;
right: 92px;
width: 300px;
background-color: #000;
opacity: 0.75;
color: #fff;
background-image: linear-gradient(to right, rgba(255,0,1), rgba(255,0,0,0));
}
label {
display: block;
}
fieldset{
border-top: 0;
border-left: 0;
border-right: 0;
}
fieldset:last-of-type{
border-bottom: none;
}
the result from freeCodeCamp preview screen:
from liveweave.com preview:
html:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title> Car Survey</title>
<link href="styles.css" rel="stylesheet" />
</head>
<body>
<h1 id="title">Dream Car Survey</h1>
<p id="description">Let's Talk About Your Dream Car!!</p>
<form id="survey-form">
<fieldset>
<label id="name-label">Enter your name: <input id="name" placeholder=name required /></label>
<label id="email-label">Enter your email: <input id="email" type="email" placeholder=email required /></label>
<label id="number-label">Enter your age: <input id="number" type="number" min="13" max="150" placeholder="13+" /></label>
</fieldset>
<fieldset>
<label>Do you drive?
<select id="dropdown" name="car-type">
<option value="">(select one)</option>
<option value="yes">Yes</option>
<option value="no">No</option>
</select>
</label>
<label>If so, what do you drive?</label>
<label><input type="checkbox" name="car-type" value="SUV" class="inline" />SUV
</label>
<label><input type="checkbox" name="car-type" value="Hatchback" class="inline" />Hatchback
</label>
<label><input type="checkbox" name="car-type" value="Coupe" class="inline" />Coupe
</label>
<label><input type="checkbox" name="car-type" value="Sedan" class="inline" />Sedan
</label>
<label><input type="checkbox" name="car-type" value="Van/Minivan" class="inline" />Van/Minivan
</label>
<label><input type="checkbox" name="car-type" value="Pickup" />Pickup
</label>
<label><input type="checkbox" name="car-type" value="Other" />Other
</label>
</fieldset>
<fieldset>Rate your car-smarts!
<label><input type="radio" name="car-smarts" value="1" />Not so smart</label>
<label><input type="radio" name="car-smarts" value="2" />Could be smarter</label>
<label><input type="radio" name="car-smarts" value="3" />Pretty car-smart</label>
<label><input type="radio" name="car-smarts" value="4" />Very car-smart</label>
<label><input type="radio" name="car-smarts" value="5" />Extremely car-smart</label>
</fieldset>
<fieldset>
<label>Tell us about your dream car:
<textarea name="about-my-dream-car" rows="3" cols="30" placeholder="about my dream car"></textarea>
</label>
<input type="submit" id="submit" value="Submit" />
</fieldset>
</form>
</body>
</html>
css:
body {
background-image: url(https://cdn.pixabay.com/photo/2019/08/09/06/12/car-racing-4394450_640.jpg);
background-repeat: no-repeat;
background-size: cover;
background-position: right;
font-family: Arial;
padding: 40;
}
h1 {
color: black;
font-weight: bold;
}
p {
color: black;
font-weight: bold;
font-size: 55px;
}
h1, p {
text-shadow: 0 0 3px #ff0000
}
form {
position: absolute;
right: 92px;
width: 300px;
background-color: #000;
opacity: 0.75;
color: #fff;
background-image: linear-gradient(to right, rgba(255,0,1), rgba(255,0,0,0));
}
label {
display: block;
}
fieldset{
border-top: 0;
border-left: 0;
border-right: 0;
}
fieldset:last-of-type{
border-bottom: none;
}
the result from liveweave.com preiew: