did i code this table correctly?
<html> <head> <title> Table Assignment </title> <style type = "text/css"> .tablebg1 { background-color: #97FFFF; font-size: 18px; color: #FF1493; } .tablebg2 { background-color: #8A2BE2; font-size: 18px; color: #7FFF00; } .tablebg3 { background-color: #808080; font-size: 18px; color: #FFD700; } .tablebg4 { background-color: #7CFC00; font-size: 18px; color: #FFB6C1; </style> </head> <body> <table BORDER = "1" WIDTH = 100%, HEIGHT = 20%> <tr> <td WIDTH = 50% class = "tablebg1">I</td> <td class = "tablebg2">am</td></tr> <tr HEIGHT = 50%> <td class = "tablebg3">a</td> <td class = "tablebg4">Student</td> </tr> </table> </body> </html>
It looks good to me. But one thing to point out. Add indents to your code. If I missed anything, me having trouble reading it would be the problem. But overall, it's just HTML and it looked good.
For table aspect, yeah it looks good. I don't know what's your story with this assignment. Schoolwork? But I just want to say that table is considered a bad practice nowadays. Only use it if you have to present information in a tabular format. Don't use table as a layout.
Join our real-time social learning platform and learn together with your friends!