CSS style and HTML Tag elements are used. To add a border dotted line to different html tags, we select several common labels for alignment and set the border dotted line effect. 1. Common html tags: p tag spanullitabletrtd2 and the CSS attribute word borderwidthheight3. Implement dotted-line CSS. border is the border attribute. If CSS styles and HTML Tag elements are used
To add border dotted lines to different html tags, we select several common labels for alignment to set the border dotted line effect.
1. Common html tags
P tag
Span
Ul li
Table tr td
2. Examples use CSS attribute words
Border
Width
Height
3. Implementation of dotted-line CSS
Border is the border attribute. To implement the border effect of an object, you must set the border width, border color, and border style (solid line or dotted line)
Border: 1px dashed # F00: Set the border style width to 1px, dotted line, and dotted line to red.
4. instance description
We set the same width, height, and border effect for the preceding labels.
5. Complete HTML code:
-
-
- The dotted line of the html border demonstrates www.pcss5.com
-
P box
- Span Box
| Table |
Table 2 |
| Data |
Data 2 |
-
The above example sets the same style for different tags in html, including the same border dotted line.
6. browser Effect
Border dotted line effects for different html tags