+ 1

i need help with this code my embedded CSS doesnt work for the <p> tag is this a explainable error?

<html> <head> <title> ExampleHTML </title> <style> p { align:center; size:5; } </style> </head> <body> <h1 align="center"><font color="#ffff00">HTML display</font></h1> <br /> <p>hi,this page was made using HTML, HTML is a programing language and on that topic did you know in 2014 only 18.3 million people knew how to code(thats 0.3% of the global population!). html is fun you can create tables</p> <table align="center" border="2"> <tr> <td>see???</td> <td>its amazing i know</td> <td>last table section!</td> </tr> <tr> <td align="center">jk*</td> <td colspan="2" align="center">there's more!</td> </table> <p align="center"><font size="5">and lines!</font></p> <br /> <hr /> <p align="center"><font size="5">small lines!</font></p> <br /> <hr width="50%" /> <div align="center">how many of you want to learn HTML?</div> <form align="center"> <input type="text" name="how many want to learn HTML?" /> </form> <p align="center"><a href="files\google.html">this is a link to google.com</a></p> </body> </html> please copy and paste this code into the code playground and send me a version where the CSS in the <style> tag works, thanks

16th Feb 2017, 5:23 PM
Damian
Damian - avatar
2 Réponses
+ 2
use text-align:center; in your CSS
16th Feb 2017, 5:57 PM
Christophe Nadeau
Christophe Nadeau - avatar
0
thanks
16th Feb 2017, 5:58 PM
Damian
Damian - avatar