What attributes does td include in a web page?

青灯夜游
Release: 2023-01-07 11:41:38
Original
13961 people have browsed it

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

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

bgcolor char charoff colspan Specifies the number of columns that a cell can span. headers Specifies one or more header cells associated with the cell. height ##HTML5 Not supported. HTML 4.01 is deprecated. nowrap HTML5 is not supported. HTML 4.01 is deprecated. rowspan number scope colgroup HTML5 Not supported. valign middle HTML5 is not supported. width pixels Specifies the width of the cell.
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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!