0

TRAVEL RESERVATION

i have used &nbsp for giving space but what should i do to align the text of both column <!DOCTYPE html> <html> <body> <center> <table> <tr><th><h1>TRAVEL RESERVATION FORM</h1></th></tr> <tr><th><h3>*denotes mandatory</h3></th></tr> <tr><td><table> <tr><td><input type="text" placeholder="Name" &nbsp>&nbsp;<input type placeholder="mobile number"></td></tr></table> <table> <tr><td><input type="email" placeholder="*Email ID"> <select name="Month of Travel"> <option value="Month of Travel">Month of Travel</option> <option value="jan">jan</option> <option value="feb">feb</option> <option value="march">march</option> <option value="april">april</option> <option value="may">may</option> <option value="june">june</option> <option value="july">july</option> <option value="aug">aug</option> <option value="sept">sept</option> </select></td></tr> </table> <table><tr><td> <select name="origin"> <option value="origin">origin</option> <option value="GOA">GOA</option> <option value="MUMBAI">MUMBAI</option> <option value="KERALA">KERALA</option> <option value="TAMILNADU">TAMILNADU</option> <option value="KOLKATA">KOLKATA</option></select> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<input type="text" placeholder="*Destination"> </td></tr></table> <table><tr><td> <input type="submit" value="GET A CALL"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

19th Sep 2018, 7:22 AM
shilpi kumari
shilpi kumari - avatar
4 Answers
+ 3
I don't understand why you would want to use the non-breaking space to separate two items in the same cell but have them aligned differently. Why wouldn't you dedicate each piece of data to its own cell (td) and just make some invisible borders? If you want other rows to span multiple columns, there's a way to do that too. That way you don't need to have so many separate tables. For reference: https://www.w3schools.com/html/html_tables.asp
19th Sep 2018, 9:15 AM
Janning⭐
Janning⭐ - avatar
+ 1
you could use <br/> to place them in separate lines
19th Sep 2018, 7:47 AM
Roel
Roel - avatar
+ 1
thanks for the help i referred the w3school site and it does helped me
19th Sep 2018, 10:41 AM
shilpi kumari
shilpi kumari - avatar
0
Excellent! :)
19th Sep 2018, 11:50 AM
Janning⭐
Janning⭐ - avatar