asked on
<body>
<h1> Registration Form </h1>
<form name="demo" onsubmit="return validateFormOnSubmit(this)" ]method = "GET"
action="http://young.scottswebservices.com">
<table summary="Demonstration form">
<tbody>
<tr>
<td><label for="Name"> Name:</label></td>
<td><input name="name" size="35" maxlength="50" type="text" id = "name"></td>
</tr>
<tr>
<td><label for="phone"> Phone:</label></td>
<td><input name="phone" size="35" maxlength="25" type="text" id = "phone"></td>
</tr>
<tr>
<td><label for="email"> Email:</label></td>
<td><input name="email" size="35" maxlength="30" type="text" id = "email"></td>
</tr>
<tr>
<td><label for="description"> Description </label></td>
<td><input name="description" size="35" maxlength="25" type="text" id = "description"></td>
</tr>
<tr>
<td>
<label for="subscribe"> Subscribe </label></td>
<td><input name="subscribe" size="35" maxlength="50" type="checkbox"></td>
</tr>
<tr>
<td> </td>
<td><input name="Submit" value="Send" type="submit" ></td>
<td> </td>
</tr>
</tbody>
</table>
</form>
</body>
ASKER
<style type="text/css" media="all">@import "form.css";</style>
____________form.css ___________
#center
{margin-left:auto; margin-right:auto;}
__________________________________________
___________________index.html _____________________________
<html>
<head>
<title></title>
<script type="text/javascript" src="/myjava.js"></script>
<style type="text/css" media="all">@import "form.css";</style>
</head>
<body>
<h1> Registration Form </h1>
<div id="center">
<form name="demo" onsubmit="return validateFormOnSubmit(this)" ]method = "GET"
action="http://young.scottswebservices.com">
<table summary="Demonstration form">
<tbody>
<tr>
<td><label for="Name"> Name:</label></td>
<td><input name="name" size="35" maxlength="50" type="text" id = "name"></td>
</tr>
<tr>
<td><label for="phone"> Phone:</label></td>
<td><input name="phone" size="35" maxlength="25" type="text" id = "phone"></td>
</tr>
<tr>
<td><label for="email"> Email:</label></td>
<td><input name="email" size="35" maxlength="30" type="text" id = "email"></td>
</tr>
<tr>
<td><label for="description"> Description </label></td>
<td><input name="description" size="35" maxlength="25" type="text" id = "description"></td>
</tr>
<tr>
<td>
<label for="subscribe"> Subscribe </label></td>
<td><input name="subscribe" size="35" maxlength="50" type="checkbox"></td>
</tr>
<tr>
<td> </td>
<td><input name="Submit" value="Send" type="submit" ></td>
<td> </td>
</tr>
</tbody>
</table>
</form>
</div>
</body>
</html>
form {
width: 300px;
margin: 0 auto;
}
ASKER
ASKER
ASKER
ASKER
Cascading Style Sheets (CSS) is a language used for describing the look and formatting of a document written in a markup language. Usually used to change web pages and user interfaces written in HTML, it can also be applied to any kind of XML document. CSS is designed primarily to distinguish the content of a document from its presentation.
TRUSTED BY
margin-left:auto; margin-right:auto;