手机
当前位置:查字典教程网 >网页设计 >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中的一些废弃元素】相关文章:

XHTML入门学习教程:XHTML网页图片应用

在HTML中引入CSS的3种方式使用介绍

XHTML常用的结构标签

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

几个老式播放器的嵌入代码

HTML网页制作的强大8条技巧

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

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

HTML学习笔记--HTML的语法详解(必看)

HTML中Li标签的使用示例

精品推荐
分类导航