如何优化这段HTML代码?

Alan S1 2009-07-21 09:43:07
如何优化这段HTML代码?大家可以讲以下的代码复制到一个新的html看看效果,我想优化优化,似乎重复的太多了。
<html http-equiv='Content-Type' content='text/html'; charset='utf-8'/><font face='Verdana' style='FONT-SIZE:18pt'><p><a target=_blank href='http://translation.infoseek.co.jp/'><font color='blue'>infoseek</font></a><font color='green' face='Latha' style='FONT-SIZE:15pt'>http://translation.infoseek.co.jp/</font></p><p><a target=_blank href='http://www.cndict.com'><font color='blue'>cndict</font></a><font color='green' face='Latha' style='FONT-SIZE:15pt'>http://www.cndict.com</font></p><p><a target=_blank href='http://dict.hjenglish.com/jp/'><font color='blue'>hjenglish dict</font></a><font color='green' face='Latha' style='FONT-SIZE:15pt'>http://dict.hjenglish.com/jp/</font></p></font></html>

...全文
87 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
junyi2003 2009-07-22
  • 打赏
  • 举报
回复
忘记把class="d" 去掉了 ,呵呵.
junyi2003 2009-07-22
  • 打赏
  • 举报
回复

<html http-equiv='Content-Type' content='text/html'; charset='utf-8'/>
<style>a {font-family:Verdana;font-size:18pt;color:blue;} span {font-family:Latha;font-size:15pt;color:green;}</style>
<base target=_blank />
<a href='http://translation.infoseek.co.jp/'>infoseek</a> <span class="d">http://translation.infoseek.co.jp/</span><p></p>
<a href='http://www.cndict.com'>cndict</a> <span class="d">http://www.cndict.com </span><br/><p></p>
<a href='http://dict.hjenglish.com/jp/'>hjenglish dict</a> <span class="d">http://dict.hjenglish.com/jp/</span>
</html>
aemyang1987 2009-07-21
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 hookee 的回复:]
HTML code<htmlhttp-equiv='Content-Type'content='text/html';charset='utf-8'/><style>
.t{font-family:Verdana;font-size:18pt;color:blue;}
.d{font-family:Latha;font-size:15pt;color:green;}</style><aclass=¡­
[/Quote]
hookee 2009-07-21
  • 打赏
  • 举报
回复

<html http-equiv='Content-Type' content='text/html'; charset='utf-8'/>
<style>
.t{font-family:Verdana;font-size:18pt;color:blue;}
.d{font-family:Latha;font-size:15pt;color:green;}
</style>
<a class="t" target=_blank href='http://translation.infoseek.co.jp/'>infoseek</a> <span class="d">http://translation.infoseek.co.jp/</span><p></p>
<a class="t" target=_blank href='http://www.cndict.com'>cndict</a> <span class="d">http://www.cndict.com </span><br/><p></p>
<a class="t" target=_blank href='http://dict.hjenglish.com/jp/'>hjenglish dict</a> <span class="d">http://dict.hjenglish.com/jp/</span>
</html>

61,115

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧