html4废弃了哪些元素,HTML中的一些废弃元素_html

如果我们在进行css网页布局的时候,还在使用被W3C废弃的元素,那就失去了使用CSS的意义,虽然它们可能同样被样式控制。

在Xhtml中不再使用HTML中的一些废弃元素。它们主要有以下一些。

Elements and attributes that have been deprecated in the most recent version of XHTML, XHTML 1.0.

Elements

The applet element has been deprecated in favor of .

The basefont element has been deprecated in favor of style sheets.

The blackface element is a webTV (MSN TV) element that has been deprecated in favor of style sheets.

The blockquote element is deprecated in favor of style sheets when used to indent text.

The center element has been deprecated in favor of style sheets.

The dir element has been deprecated in favor of 

The embed element has been deprecated in favor of .

The font element has been deprecated in favor of style sheets.

The i element has been deprecated in favor of style sheets.

The isindex element has been deprecated in favor of the input element and CGI forms.

The layer element has been deprecated in favor of style sheets.

The menu element has been deprecated in favor of 

The noembed element has been deprecated in favor of .

The s element has been deprecated in favor of style sheets.

The shadow element has been deprecated in favor of style sheets.

The strike element has been deprecated in favor of style sheets.

The strike element has been deprecated in favor of style sheets.

Attributes

alink

The alink attribute defines the color of an active link on the Web page. It has been deprecated in favor of style sheets.

align

Used to align elements vertically and horizontally on the document page, the align attribute has been deprecated in favor of style sheets.

background

The background attribute is used to define a background image for the element. It has been deprecated in favor of style sheets.

border

Used to define a border around the element, the border attribute has been deprecated in favor of style sheets.

color

Used to define the color of the enclosed text, the color attribute has been deprecated in favor of style sheets.

compact

The compact attribute is used in list tags to create a list that takes up less space. It has been deprecated in favor of style sheets.

face

Used to define the font face of the enclosed text, the face attribute has been deprecated in favor of style sheets.

height

Used to define the height of the element, the height attribute has been deprecated in favor of style sheets.

language

The language attribute is used to define the language used by the script element. It has been deprecated in favor of the type attribute.

link

The link attribute defines the color of a link on the Web page. It has been deprecated in favor of style sheets.

name

The name attribute names the element for use with dynamic content, it has been deprecated in favor of the id attribute.

noshade

The noshade attribute removes the 3-D effect from horizontal rules. It has been deprecated in favor of style sheets.

nowrap

Used to stop table contents from wrapping, the nowrap attribute has been deprecated in favor of style sheets.

size

Used to define the size of the enclosed text, the size attribute has been deprecated in favor of style sheets.

start

The start attribute of list tags defines the starting number of the list. This attribute has been deprecated in favor of style sheets.

text

The text attribute defines the color of the text on the Web page. It has been deprecated in favor of style sheets.

type

The type attribute of list tags defines what type of list should be used. This attribute has been deprecated in favor of style sheets.

value

The value attribute of list tags sets the value of the list item. This attribute has been deprecated in favor of style sheets.

version

The version attribute defines the version of HTML used by the document. It has been deprecated in favor of DTDs.

vlink

The vlink attribute defines the color of a visited link on the Web page. It has been deprecated in favor of style sheets.

width

The width attribute defines the width in pixels of the element. It has been deprecated in

欢迎大家阅读《HTML中的一些废弃元素_html》,跪求各位点评,若觉得好的话请收藏本文,by 搞代码

搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权

转载请注明原文链接:HTML中的一些废弃元素_html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值