• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com专业计算机教程网站
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • html/xhtml
  • html5
  • CSS
  • XML/XSLT
  • Dreamweaver教程
  • Frontpage教程
  • 心得技巧
  • bootstrap
  • vue
  • AngularJS
  • HBuilder教程
  • css3
  • 浏览器兼容
  • div/css
  • 网页编辑器
  • axure
您的位置:首页 > 网页设计 >html/xhtml > XHTML中不再使用HTML中的一些废弃元素

XHTML中不再使用HTML中的一些废弃元素

作者:佚名 字体:[增加 减小] 来源:互联网 时间:2017-08-05

本文主要包含XHTML,废弃元素等相关知识,佚名 希望在学习及工作中可以帮助到您
我们进行CSS网页布局的时候,都知道它需要符合XHTML1.0规范,在jb51.net昨天的文章中,向大家介绍了DTD。如果我们在进行CSS网页布局的时候,还在使用被W3C废弃的元素,那就失去了使用CSS的意义,虽然它们可能同样被样式控制。


  在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
  T

您可能想查找下面的文章:

  • 详解HTML/XHTML中img图像标签的基本用法
  • 详解XHTML中的标题标签与段落标签的使用
  • XHTML中的常用标签整理
  • HTML与XHTML、以及HTML4与HTML5标签之间的区别简介
  • HTML与XHTML、以及HTML4与HTML5标签之间的区别简介
  • xHTML与HTML标签的写法有哪些不同
  • html,xhtml,xml的区别介绍
  • XHTML编码七条基本规范小结
  • XHTML标签语义化介绍
  • XHTML标签的嵌套规则分析

相关文章

  • 2017-08-05HTML中select下拉框内容显示不全部分被覆盖的解决方法
  • 2017-08-05HTML元素设置焦点的方法
  • 2017-08-05网页制作中使用规范的HTML代码的几点
  • 2017-08-05【HTML 元素】标记文字详解
  • 2017-08-05a标签的target链接指向iframe的方法
  • 2017-08-05通过disabled和readonly将input设置为只读效果
  • 2017-08-05HTML 特殊字符转换表
  • 2017-08-05W3C教程(9):W3C XPath 活动
  • 2017-08-05关闭IE启用图片工具列
  • 2017-08-05链接中的href=#是什么意思呢

文章分类

  • html/xhtml
  • html5
  • CSS
  • XML/XSLT
  • Dreamweaver教程
  • Frontpage教程
  • 心得技巧
  • bootstrap
  • vue
  • AngularJS
  • HBuilder教程
  • css3
  • 浏览器兼容
  • div/css
  • 网页编辑器
  • axure

最近更新的内容

    • 关于使用Textarea的注意事项
    • html a 链接标签title属性换行鼠标悬停提示内容的换行效果
    • html body标签详解与html常用的控制标记
    • html 表格比较宽溢出的解决方法
    • td 内容自动换行 table表格td设置宽度后文字太多自动换行
    • 一些HTML代码的编写风格建议小结
    • 使用相对宽度调整表格问题
    • iframe的各项参数整理附说明及使用示例
    • 移动端网页大小自适应的实现方法
    • 在js或css后加?v= 版本号不让浏览器缓存

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有