+ 1

Need help in the below code, i want stuff to be middle/center aligned

<!DOCTYPE html> <html> <head> <title></title> </head> <body> <img src="http://ksubcollege.org/images/jkhe%20(42).jpg" height="30px" width="30px" align="center" alt="" /> <p align="center ><strong><big>COMPUTER STUDIES</strong></big></p> <p align="center" > (Internal & external students) </p> <p> <b>Name of student : ................................ </b> <br/> <b>examination no : ........................ </b> <br/> <b>school : ...................... </b> </p> <p> <table> <tr> <td align="center > For Maker's Use </td> </tr> <tr> <td>Section</td> <td>maximum mark</td> <td>marks obtained</td> </tr> <tr> <td><b>A</b></td> <td>15</td> <td></td> </tr> <tr> <td><b>B</b></td> <td>20</td> <td></td> </tr> <tr> <td><b>C</td> <td>25</td> <td></td> </tr> </table> </p> <hr width="70"% /> <p align="center" ><strong>Read Instructions</strong></p> </body> </html>

17th Apr 2019, 8:39 AM
David Holmes Ng'andu
David Holmes Ng'andu - avatar
4 odpowiedzi
+ 8
You can divide your html in different sections with a div tag and proving them a class. Then to that class use display:flex; property. Hope this is helpful. https://code.sololearn.com/W3H20x3RcCIJ/?ref=app
17th Apr 2019, 9:29 AM
Gurpreet Jhamat
Gurpreet Jhamat - avatar
+ 8
Drex Holmes align attribute is not supported for both <table> and <p> tags in html5. So you have to use CSS for aligning them, CSS might be inline or separate.
17th Apr 2019, 10:51 AM
Gurpreet Jhamat
Gurpreet Jhamat - avatar
+ 1
Gurpreer, i haven't yet leanrt about the -div- I was trying to reveise on what i have already learnt
17th Apr 2019, 10:18 AM
David Holmes Ng'andu
David Holmes Ng'andu - avatar
+ 1
Gurpreet, thanks for the info
17th Apr 2019, 8:02 PM
David Holmes Ng'andu
David Holmes Ng'andu - avatar