手机
当前位置:查字典教程网 >网页设计 >XHTML >XHTML中不再使用HTML中的一些废弃元素
XHTML中不再使用HTML中的一些废弃元素
摘要:我们进行CSS网页布局的时候,都知道它需要符合XHTML1.0规范,在jb51.net昨天的文章中,向大家介绍了DTD。如果我们在进行CSS...

我们进行CSS网页布局的时候,都知道它需要符合XHTML1.0规范,在jb51.net昨天的文章中,向大家介绍了DTD。如果我们在进行CSS网页布局的时候,还在使用被W3C废弃的元素,那就失去了使用CSS的意义,虽然它们可能同样被样式控制。

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

ElementsandattributesthathavebeendeprecatedinthemostrecentversionofXHTML,XHTML1.0.

Elements

<applet></applet>

Theappletelementhasbeendeprecatedinfavorof<object></object>.

<basefont/>

Thebasefontelementhasbeendeprecatedinfavorofstylesheets.

<blackface></blackface>

TheblackfaceelementisaWebTV(MSNTV)elementthathasbeendeprecatedinfavorofstylesheets.

<blockquote></blockquote>

Theblockquoteelementisdeprecatedinfavorofstylesheetswhenusedtoindenttext.

<center></center>

Thecenterelementhasbeendeprecatedinfavorofstylesheets.

<dir></dir>

Thedirelementhasbeendeprecatedinfavorof<ul></ul>.

<embed/>

Theembedelementhasbeendeprecatedinfavorof<object></object>.

<font></font>

Thefontelementhasbeendeprecatedinfavorofstylesheets.

<i></i>

Theielementhasbeendeprecatedinfavorofstylesheets.

<isindex/>

TheisindexelementhasbeendeprecatedinfavoroftheinputelementandCGIforms.

<layer></layer>

Thelayerelementhasbeendeprecatedinfavorofstylesheets.

<menu></menu>

Themenuelementhasbeendeprecatedinfavorof<ul></ul>.

<noembed></noembed>

Thenoembedelementhasbeendeprecatedinfavorof<object></object>.

<s></s>

Theselementhasbeendeprecatedinfavorofstylesheets.

<shadow></shadow>

Theshadowelementhasbeendeprecatedinfavorofstylesheets.

<strike></strike>

Thestrikeelementhasbeendeprecatedinfavorofstylesheets.

<u></u>

Thestrikeelementhasbeendeprecatedinfavorofstylesheets.

Attributes

alink

ThealinkattributedefinesthecolorofanactivelinkontheWebpage.Ithasbeendeprecatedinfavorofstylesheets.

align

Usedtoalignelementsverticallyandhorizontallyonthedocumentpage,thealignattributehasbeendeprecatedinfavorofstylesheets.

background

Thebackgroundattributeisusedtodefineabackgroundimagefortheelement.Ithasbeendeprecatedinfavorofstylesheets.

border

Usedtodefineaborderaroundtheelement,theborderattributehasbeendeprecatedinfavorofstylesheets.

color

Usedtodefinethecoloroftheenclosedtext,thecolorattributehasbeendeprecatedinfavorofstylesheets.

compact

Thecompactattributeisusedinlisttagstocreatealistthattakesuplessspace.Ithasbeendeprecatedinfavorofstylesheets.

face

Usedtodefinethefontfaceoftheenclosedtext,thefaceattributehasbeendeprecatedinfavorofstylesheets.

height

Usedtodefinetheheightoftheelement,theheightattributehasbeendeprecatedinfavorofstylesheets.

language

Thelanguageattributeisusedtodefinethelanguageusedbythescriptelement.Ithasbeendeprecatedinfavorofthetypeattribute.

link

ThelinkattributedefinesthecolorofalinkontheWebpage.Ithasbeendeprecatedinfavorofstylesheets.

name

Thenameattributenamestheelementforusewithdynamiccontent,ithasbeendeprecatedinfavoroftheidattribute.

noshade

Thenoshadeattributeremovesthe3-Deffectfromhorizontalrules.Ithasbeendeprecatedinfavorofstylesheets.

nowrap

Usedtostoptablecontentsfromwrapping,thenowrapattributehasbeendeprecatedinfavorofstylesheets.

size

Usedtodefinethesizeoftheenclosedtext,thesizeattributehasbeendeprecatedinfavorofstylesheets.

start

Thestartattributeoflisttagsdefinesthestartingnumberofthelist.Thisattributehasbeendeprecatedinfavorofstylesheets.

text

ThetextattributedefinesthecolorofthetextontheWebpage.Ithasbeendeprecatedinfavorofstylesheets.

type

Thetypeattributeoflisttagsdefineswhattypeoflistshouldbeused.Thisattributehasbeendeprecatedinfavorofstylesheets.

value

Thevalueattributeoflisttagssetsthevalueofthelistitem.Thisattributehasbeendeprecatedinfavorofstylesheets.

version

TheversionattributedefinestheversionofHTMLusedbythedocument.IthasbeendeprecatedinfavorofDTDs.

vlink

ThevlinkattributedefinesthecolorofavisitedlinkontheWebpage.Ithasbeendeprecatedinfavorofstylesheets.

width

Thewidthattributedefinesthewidthinpixelsoftheelement.Ithasbeendeprecatedinfavorofstylesheets.

【XHTML中不再使用HTML中的一些废弃元素】相关文章:

HTML教程:收集的常用的HTML标签(6)

HTML中Form表单的method属性使用介绍

HTML中的标签和元素的区别详解

如何在HTML中加载Flash(2种实现方法)

XHTML标签的嵌套规则分析

浅谈HTML代码中的空格和空行

HTML中文件上传时使用的<input type="file">元素的样式自定义

HTML常用标签大全及html标签的特点

html-css设置标签样式不起作用的2点原因

浅谈HTML中的标记

精品推荐
分类导航