Every person who has ever studied programming has written "HelloWorld."
But the 99 multiplication table, I think, should also be a necessary program for every programming beginner.
This is the implementation of JavaScript, very suitable for beginners!!!
The following are code and comments
Here are some of the things that are covered in the code above
The <table> tag is defined as a table!
<tr>-Define Table rows
<th>-Defining headers
<td>-Define the table elements (specific data for a table)
Border= the "" property to set the border of the table!
<th> in the word default to bold center display!
Bgcolor= "" is also my familiar set table background color!
cellspacing= "" and cellspadding= "" is to set the spacing between the tables and the space in the cell! But both tags were removed by HTML5 and replaced by Border-collapse:separate | Collapse | Inherit
| Separate |
The default value. The borders will be separated. Border-spacing and Empty-cells properties are not ignored. |
| Collapse |
If possible, the border is merged into a single border. The Border-spacing and Empty-cells properties are ignored. |
| Inherit |
Specify that the value of the Border-collapse attribute should be inherited from the parent element. |
The above JavaScript implementation of the 99 multiplication table Simple example is a small series to share all the content, hope to give you a reference, but also hope that we support cloud habitat community.