JavaScript implements a simple example of a 99 multiplication table _javascript Tips

Source: Internet
Author: User

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

 <! DOCTYPE html> 

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.