Cell merge

1. Horizontal cell merge can add a colSPAN attribute to the TD tag to specify that a cell is to be treated as multiple cells (horizontal)

For example: < td colspan=”2″ >< /td >

Meaning: Treat the current cell as if it were two cells

2. Vertical cell merge You can add a rowSPAN attribute to the TD tag to specify that a cell should be treated as multiple cells (vertical)

For example: < TD rowspan=”2″ >< /td >

Meaning: Treat the current cell as if it were two cells

Note:

  • As a result of treating a cell as multiple cells, there will be more cells, so we need to delete some cells to display properly
  • It is important to remember that cell merges are always backward or downward, not forward or upward

shortcuts

Quickly move the selected code up and down

  • Move up: Ctrl + Shift + ↑
  • Move down: Ctrl + Shift + ↓

Quickly merge and expand code (merge and expand a tag)

  • Merge: Ctrl + –
  • Expand: Ctrl + +

Fast merge and expand code (merge and expand all selected tags)

  • Merge: Ctrl + Shift + –
  • Expand: Ctrl + Shift + +

Quickly start a new line shift + Enter

Form tag-input

What is a form? Forms are designed to collect user information

What are form elements? What is an element?

  • In HTML, tags/tags/elements refer to tags in HTML
  • Example :< a > A tag/A tag /a element

Form elements are just tags in HTML, but they are special. All form tags in the browser have a special look and feel and default functions

Form format:

  • < form >
  • < table element >Copy the code
  • < /form >

Common form elements

  • The input tag has a type attribute. This attribute has many types of values, which determine the function and appearance of the input tag

Note:

  • By default, single check boxes are not mutually exclusive. To be single check boxes mutually exclusive, each single check box label must have a name attribute, and then the name attribute must be set to the same value
  • To make a checkbox default, add a checked attribute to the input tag
  • In HTML, if the value of the attribute is the same as the name of the attribute, you can write only one. However, values must be written in XHTML, so we recommend not omitting values in enterprise development