XHTML中不再使用HTML中的一些废弃元素
GPT4.0+Midjourney绘画+国内大模型 会员永久免费使用!
【 如果你想靠AI翻身,你先需要一个靠谱的工具! 】
在XHTML中不再使用HTML中的一些废弃元素。它们主要有以下一些。
Elements and attributes that have been deprecated in the most recent version of XHTML, XHTML 1.0.
Elements
<applet></applet>
The applet element has been deprecated in favor of <object></object>.
<basefont />
The basefont element has been deprecated in favor of style sheets.
<blackface></blackface>
The blackface element is a WebTV (MSN TV) element that has been deprecated in favor of style sheets.
<blockquote></blockquote>
The blockquote element is deprecated in favor of style sheets when used to indent text.
<center></center>
The center element has been deprecated in favor of style sheets.
<dir></dir>
The dir element has been deprecated in favor of <ul></ul>.
<embed />
The embed element has been deprecated in favor of <object></object>.
<font></font>
The font element has been deprecated in favor of style sheets.
<i></i>
The i element has been deprecated in favor of style sheets.
<isindex />
The isindex element has been deprecated in favor of the input element and CGI forms.
<layer></layer>
The layer element has been deprecated in favor of style sheets.
<menu></menu>
The menu element has been deprecated in favor of <ul></ul>.
<noembed></noembed>
The noembed element has been deprecated in favor of <object></object>.
<s></s>
The s element has been deprecated in favor of style sheets.
<shadow></shadow>
The shadow element has been deprecated in favor of style sheets.
<strike></strike>
The strike element has been deprecated in favor of style sheets.
<u></u>
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 favor of style sheets.
相关文章
- 在 Web 开发中,文本的视觉效果是提升用户体验的重要因素之一,通过 CSS 技巧,我们可以创造出许多独特的效果,例如文字镂空效果,本文将带你一步一步实现一个简单的文字镂空2024-11-17
- 在Html中,a标签默认的超链接样式是蓝色字体配下划线,这可能不满足所有设计需求,如需去除这些默认样式,可以通过CSS来实现,本文给大家介绍Html去除a标签的默认样式的操作代码2024-09-25
- 在HTML中,可以通过设置CSS的resize属性为none,来禁止用户手动拖动文本域(textarea)的大小,这种方法简单有效,适用于大多数现代浏览器,但需要在老旧浏览器中进行测试以确保2024-09-25
- 本文详细介绍了如何利用HTML和CSS实现多种风格的进度条,包括基础的水平进度条、环形进度条以及球形进度条等,还探讨了如何通过动画增强视觉效果,内容涵盖了使用HTML原生标签2024-09-19
- Canvas 提供了一套强大的 2D 绘图 API,适用于各种图形绘制、图像处理和动画制作,可以帮助你创建复杂且高效的网页图形应用,这篇文章主要介绍了HTML中Canvas关键知识点总结2024-06-03
- 本文主要介绍了html table+css实现可编辑表格的示例代码,主要使用HTML5的contenteditable属性,文中通过示例代码介绍的非常详细,需要的朋友们下面随着小编来一起学习学习2024-03-06
- 本文主要介绍了HTML中使用Flex布局实现双行夹批效果,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习2024-02-22
- 在网站开发中,登录页面是必不可少的一部分,本文就来介绍一下HTML+CSS实现登录切换,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需2024-02-02
- 本文主要介绍了HTML+CSS实现全景轮播的示例代码,实现了一个简单的网页布局,其中包含了五个不同的盒子,每个盒子都有一个不同的背景图片,并且它们之间有一些间距,下面就2024-02-02
- 来到圣诞节了,那么就可以制作一颗HTML的圣诞树送给朋友,没有编程基础的小白也可以按照步骤操作也可以运行起来代码的,喜欢的朋友快来体验吧2023-12-26
最新评论