Regarding formatting of an html page in a symmetrical way

+1 vote
84 views
asked Dec 15, 2012 in HTML by kalpana (3,995 points)

 

I am developing an html page , the html code is ...

<html>
<head>
<title> aaa</title>
</head>
<body>
<form method="get" action="helloServlet">
<br>Pinpad security Code Genrator.</br>
<br></br>
Store No. <input type="text" name="txtName"><br></br>
Register No.
<input type="Generate" >
<br><input type="submit" value="Generate">
</form>
</body>
</html>

The output is ...

http://imageshack.us/photo/my-images/832/av1xc.jpg/

1 Answer

0 votes
answered Dec 15, 2012 by anonymous

This will align the form in center

<html>
<head>
<title> aaa</title>
</head>
<body>
<form method="get" action="helloServlet">
    <br>
    <center>Pinpad security Code Genrator.</center>
<br>
<center>Store No. <input type="text" name="txtName"></center><br>
<center>Register No.<input type="Generate" ></center>
<br>
    <center><input type="submit" value="Generate"></center>
</form>
</body>
</html>
...