Add a table with borders for each cell in Javadoc
•
Java
I know I can use HTML tags in Java documents How do I add a table with borders for each cell? I want the cells to align like a real table I know the basic label
<table> <tr> <td> cell 11 </td> <td> cell 21</td> </tr> <tr> <td> cell 12 </td> <td> cell 22</td> </tr> </table>
So how do you add borders and keep the table columns the same width?
Solution
Put the comment of @ RP in the answer. You can use the border attribute of the table like this:
<table border="1"> <tr> <td> cell 11 </td> <td> cell 21</td> </tr> <tr> <td> cell 12 </td> <td> cell 22</td> </tr> </table>
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码