In: Computer Science
Using brackets you will need to create the HTML page and CSS style sheet for the given Form example.
Your page should have a title and a header in the body.
hey there ! i am done with the code .. Please give me a like to appreciate my work and efforts...
here is the code -
<!DOCTYPE html>
<html>
<head>
<title>City</title>
<!--style for all attributes -->
<style>
form
{
background-color: #eeeeee;
font: 10pt;
font-family: sans-serif ;
padding: 10px;
}
#citylabel
{
display: inline-block;
width: 55px;
text-align: left;
margin: 9px;
}
#city
{
width: 290px;
padding: 14px;
margin-top: 8px;
}
#button
{
border: 1px solid gray;
width: 190px;
padding: 12px;
margin-top: 6px;
}
#button:hover
{
background-color: aqua;
}
radio,label
{
margin-right: 25px;
font: 15pt;
}
</style>
</head>
<body>
<!--creating form -->
<form>
<label id = "citylabel"
for="city">City:</label><br>
<input type="text" id="city" name="city"><br>
<hr>
<input type="radio" id="beginner" name="citycheck"
value="beginner">
<label for="beginner">Beginner</label><br>
<input type="radio" id="intermediate" name="citycheck"
value="intermediate">
<label
for="intermediate">Intermediate</label><br>
<input type="radio" id="advanced" name="citycheck"
value="advanced">
<label for="advanced">Advanced</label>
<hr>
<input type="submit" id="button" value="LoolUp"/>
</form>
</body>
</html>
and the snapshot of the output is -
Thank You ! dONT forget to like !