Exercise #3 If else scholarship
<!DOCTYPE html>
<html>
<head>
<title>Form Elelents and attributes</title>
<style> //format and styles
div{
margin-bottom: 10px
}
label {
display: line-block
width: 120px;
}
fieldset {
background: #C1D82F;
}
legend {
padding: 20px 0;
}
body {background-color: #00A4E4;} // styles applied to body tag
</style>
</head>
<body>
<form action="/form/submit" method="GET or POST" >
<fieldset>
<legend>Personal Information:</legend>
<label for="fname">Name</label>
<input type="text"name="Name"id="dname"value"mary"/><br/><br/>
</fieldset>
<fieldset>
<legend> Result :</legend>
<html><br/><br/>
<body>
<script type = "text/javascript">
<!--
var grade= prompt("Enter grade");
if (grade>=75)
{
document.write("<b> COngrats You Passed " );
}
else
{
document.write("<i> Sorry You Failed" );
}
</script>
</body><br/><br/>
</html> <br/><br/>
</fieldset>
No comments:
Post a Comment