Practicing HTML :) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
18th Jul 2017, 11:41 AM
Tohur Ahmed Toha
Tohur Ahmed Toha - avatar
5 Answers
+ 7
What's the goal targeted by posting this minimalistic invalid html5 code? @@ <!DOCTYPE html> <!-- well, this is Html5 --> <html> <head> <title>Portal</title> </head> <body> <p align="center"> <!-- 'align' attribute is deprecated ... and <font>, <b> and <i> elements also: you must use css and avoiding them, or use best suited semantical element instead --> <font color="red"><i><b> Welcome to the Portal</b></i> </font> </p> </body> </html> Fixed code: <!DOCTYPE html> <html> <head> <title>Portal</title> <style> p { text-align: center; font-weight: bold; font-style: italic; } </style> </head> <body> <p> Welcome to the Portal </p> </body> </html> ... but anyway, your <p> content looks more as a title, so will semantically benefit of use of <h1> element rather ;P
18th Jul 2017, 12:55 PM
visph
visph - avatar
+ 2
That's not the purpose of the forum
18th Jul 2017, 11:53 AM
Skayo
Skayo - avatar
+ 1
Thanks for fixing. :) @visph
18th Jul 2017, 3:19 PM
Tohur Ahmed Toha
Tohur Ahmed Toha - avatar
0
There is code playground for this.
18th Jul 2017, 12:02 PM
mexikodro thanksgiving samples 1/1
mexikodro thanksgiving samples 1/1 - avatar
0
Ikr. :v @sayako
18th Jul 2017, 12:04 PM
Tohur Ahmed Toha
Tohur Ahmed Toha - avatar