HTML table markup tutorial (2): table border attributes BORDER

HTML table markup tutorial (2): table border attributes BORDER

By default, the border of the table is 0, and we can set the border line for the table.
Basic syntax
<TABLE BORDER=VALUE>
Syntax explanation <br />The BORDER attribute is used to define the width of the border line in pixels.
File example: 10-2.htm
Set the border line width.
01 <!-- ------------------------------ -->
02 <!-- File example: 10-2.htm -->
03 <!-- File Description: Set the border width of the table-->
04 <!-- ------------------------------ -->
05 <HTML>
06 <HEAD>
07 <TITLE>Set the border width of the table</TITLE>
08 </HEAD>
09 <BODY>
10 <H1>Mainstream web design software</H1>
11 <TABLE BORDER=1>
12 <TR>
13 <TD>Web Image Software</TD>
14 <TD>Fireworks</TD>
15 </TR>
16 <TR>
17 <TD>Web page creation software</TD>
18 <TD>Dreamweaver</TD>
19 </TR>
20 <TR>
21 <TD>Web animation software</TD>
22 <TD>Flash</TD>
23 </TR>
24 </TABLE>
25 <TABLE BORDER=10>>
26 <TR>
27 <TD>Web Image Software</TD>
28 <TD>Fireworks</TD>
29 </TR>
30 <TR>
31 <TD>Web page creation software</TD>
32 <TD>Dreamweaver</TD>
33 </TR>
34 <TR>
35 <TD>Web animation software</TD>
36 <TD>Flash</TD>
37 </TR>
38 </TABLE>
39 </BODY>
40 </HTML>
File description <br />Lines 11 to 24 are a complete table with a table border of 1 pixel, and lines 25 to 38 are the second complete table with a border width of 10 pixels.

<<:  How to get the size of a Linux system directory using the du command

>>:  View the command to modify the MySQL table structure

Recommend

CSS element hiding principle and display:none and visibility:hidden

1. CSS element hiding <br />In CSS, there ar...

React non-parent-child component parameter passing example code

React is a JAVASCRIPT library for building user i...

Docker connects to the host Mysql operation

Today, the company project needs to configure doc...

The vue project realizes drawing a watermark in a certain area

This article shares with you how to use Vue to dr...

Vue.js framework implements shopping cart function

This article shares the specific code of Vue.js f...

Implement a simple search engine based on MySQL

Table of contents Implementing a search engine ba...

HTML basic syntax is convenient for those who are just starting to learn HTML

1.1 General marking A general tag consists of an ...

Optimize the storage efficiency of BLOB and TEXT columns in InnoDB tables

First, let's introduce a few key points about...

How to implement h5 input box prompt + normal text box prompt

XML/HTML CodeCopy content to clipboard < input...

How to find out uncommitted transaction information in MySQL

A while ago, I wrote a blog post titled "Can...

Vue3 Vue CLI multi-environment configuration

Table of contents 1. Introduction 2. Switching 1....

Multiple solutions for cross-domain reasons in web development

Table of contents Cross-domain reasons JSONP Ngin...

jQuery simulates picker to achieve sliding selection effect

This article shares the specific code of jQuery t...