As part of jQuery training, I decided to make a simple tic-tac-toe game in JavaScript, and for now I am using an HTML table to separate and use graphic images in a table.
The images are either a small circle, or a large X or O. When the user clicks on the circle, it changes to X or O, and then checks if the game is won.
Lame, I know, but it's a good educational experience.
Images are the same size (the circle has many spaces) so that the size of the table does not change.
My question is double.
1 / Should I use CSS and not tables for formatting, and how is it best to do (HTML tables are very light)?
2 / Is there a better way than using images, so I donโt need to create a jpg before distributing it? I tried with text captions (<a>), but did the changing colors and underlines annoy me?
As you can probably tell, I like HTML, but not so with CSS.
source share