三者的用途都是用来预格式化文本的(废话),你试着打一段文字,在源码里加几个回车,再看看给这段文字预格式化与不用预格式化就可以看出来了(当然,在这个帖子里是看不出来的):
asdf
asdfdfdf 5D精英网5D精英网 sdfa
sdfasdf
asdfsdf
asdfsdfsdf
fdsffadsf f dsafdsf
asdfdf5D精英网5D精英网
asdf
asdfdfdf 5D精英网5D精英网 sdfa
sdfasdf
asdfsdf
asdfsdfsdf
fdsffadsf f dsafdsf
asdfdf5D精英网5D精英网
5D精英网5D精英网
<%=Now()%>
pre跟listing差不多,只不过pre的字体比listing中的大一号,是2号字
xmp的功能比pre和listing都大,可以把HTML及其它语言源码包含到预格式化中