Home  >  Article  >  Web Front-end  >  What attributes does td include in a web page?

What attributes does td include in a web page?

青灯夜游
青灯夜游Original
2021-07-01 16:44:1814002browse

The attributes included in td in the web page are: abbr, align, axis, bgcolor, char, charoff, colspan, headers, height, nowrap, rowspan, width, class, id, style, hidden, etc.

What attributes does td include in a web page?

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

tags define standard cells in HTML tables. The text within the

element is usually ordinary left-aligned text.

Attributes in td

bgcolorcharcharoffcolspanSpecifies the number of columns that a cell can span. headersSpecifies one or more header cells associated with the cell. height##HTML5 Not supported. HTML 4.01 is deprecated. nowrapHTML5 is not supported. HTML 4.01 is deprecated. rowspannumberscopecolgroupHTML5 Not supported. valignmiddleHTML5 is not supported. widthpixels Specifies the width of the cell.

HTML global attributes--attributes that can be used with all HTML elements

Attribute Value Description
abbr text HTML5 Not supported. Specifies the abbreviated version of the content in the cell.
align left
#right
center
justify
char
HTML5 Not supported. Specifies the horizontal alignment of cell content.
axis category_name ##HTML5 Not supported. Category cells.
rgb(x,x,x)#xxxxxx
colorname
HTML5 Not supported. HTML 4.01 is deprecated. Specifies the background color of the cell.
character HTML5 Not supported. Specifies which character should be used to align content.
number HTML5 Not supported. Specifies the offset of the alignment character.
number
header_id
pixels%
Set the height of the cell.
nowrap Specifies whether the content in the cell should be wrapped.
Set the number of rows that the cell can span.
colrow
rowgroup

Define the method to associate header cells with data cells.
topbottom
baseline

Specifies the vertical arrangement of cell contents.
%
##HTML5 Not supported. HTML 4.01 is deprecated.
Attributes Description
accesskey Set the keyboard shortcut for accessing elements.
class Specifies the class name of the element
contenteditable Specifies whether it can be edited The content of the element.
contextmenu Specifies the context menu of an element. When the user right-clicks the element, a context menu appears
data-* Used to store custom data for the page
dir Set the text direction of the content in the element.
draggable Specify whether an element can be dragged
dropzone Specify whether to drag data Copy, move, or link, or delete
hidden The hidden attribute specifies that the element is hidden.
id Specifies the unique id of the element
lang Set the language code of the content in the element .
spellcheck Detect whether the element is spelled incorrectly
style Specify the inline style of the element (inline style)
tabindex Set the tab key control order of elements.
title Specifies additional information for the element (can be displayed in a tooltip)
translate Specify whether the value of an element needs to be translated when the page is loaded

Recommended tutorial: "html video tutorial"

The above is the detailed content of What attributes does td include in a web page?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn