Web标准之路 勿使用W3C废弃的元素
发布时间:2009-07-13 12:25:00
我们进行CSS网页布局的时候,都知道它需要符合XHTML1.0规范。如果我们在进行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
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.
猜你喜欢
- 本文为大家分享了购物商城小程序,供大家参考,具体内容如下软件版本:python3.x功能:实现简单购物商城1.允许用户选择购买多
- 组件<template><div> <input id="upload_file&quo
- 导包import “github.com/smartystreets/goconvey”核心API顶
- 前言在我们实际开发中,经常需要将一组数据存储起来,以便使用。如果学习了其他的语言可能知道数组(Array)这个数据结构,它就可以将多个数据进
- 一、pyqt5的UI中嵌入matplotlib的方法1、导入模块导入模块比较简单,首先声明使用pyqt5,通过FigureCanvasQTA
- 一、读取配置文件我的目录如下,在config下有一个config.ini配置文件配置文件内容# 定义config分组[config]plat
- Properties类简要概括: Properties类是 键和值均为字符串的可以永久存储到文件中的key-value集合java.util
- 前言在程序中我们经常可以看到有很多的加密算法,比如说MD5 sha1等,今天我们就来了解下这下加密算法的吧,在了解之前我们需要知道一个模块嘛
- declare @t varchar(255),@c varchar(255) declare table_cursor cursor fo
- 随着“ * ”建设的逐步深入和 * 信息化的高速发展, * 计算机应用系统被广泛应用在各警种、各部门。与此同时,应用系统体系的核心、系统数据的
- 颜色目标检测就是根据物体的颜色快速进行目标定位。使用cv2.inRange函数设定合适的阈值,即可以选出合适的目标。建立项目colordet
- 终于能出来透口气,写点东西了。前段太忙,也很郁闷,现在调整过来点了。我的设计原则就是在满足需求的前提下,尽可能的简化,简化,再简化。有一次跟
- python的其中一个强大之处就是它可以方便的集成很多的非标准库,今天在GitHub上溜达又发现了一个脏话处理神器,导入better_pro
- 我们去一个受欢迎的地方买东西,难免会需要排队等待。如果有多个窗口的话,就会有不同队列的产生,当然每个队伍的人数也会出现参差不齐的现象。我们今
- 如何提取JSON数据指定内容假设我们要获取'pic_str'里的数据JSON数据{'err_no': 0,
- 前言三种场景:多个同字段的excel文件合并成一个excel多个不同字段的excel文件拼接成一个excel一个excel的多个sheet合
- 对于字典的操作,本篇介绍的是在其中添加值的方法,下面带来详细的介绍。1、通过键=值的方式进行添加。如果键存在,则会将旧的值进行覆盖,如果不存
- 今天看了看数据备份相关的东西,总结了几个MySQL数据备份的注意事项,简单分享一下吧。 对于MySQL备
- 本文实例讲述了python将文本转换成图片输出的方法。分享给大家供大家参考。具体实现方法如下:#-*- coding:utf-8 -*-fr
- 索引优化,查询优化,查询缓存,服务器设置优化,操作系统和硬件优化,应用层面优化(web服务器,缓存)等等。这里的记录的优化技巧更适用于开发人