【发布时间】:2016-01-31 21:49:52
【问题描述】:
我正在上一门网页设计课程,任务是制作一个具有以下要求的基本文本网站链接到外部页面 从网站嵌入的图像。
bold
italics
carriage return
list
font color change
font face change
comments
title
Heading <h1> <h2> etc...
在我上交之前,我想知道代码是否足够干净,以及在 0 到 100 的范围内如何评价它?
<!DOCTYPE html>
<html>
<head>
<title>DJ Khaled key to success</title>
</head>
<!---https://twitter.com/djkhaled/status/649808000987865088-->
<style>
body {
background-image: url("http://i-cdn.phonearena.com/images/articles/168223- image/First-HTC-One-M9-wallpaper.jpg");
background-color: #cccccc;
background-size: 1400px 675px;
background-repeat: no-repeat;
}
</style>
<body>
<font color="#0099ff"face="arial" size="7"><i>The key to more success is coco butter!</i></font></br>
<a href="http://www.theydontwantyouto.win/"><img src="https://usatftw.files.wordpress.com/2015/12/khaled1.gif?w=1000http://i.imgur.com/qsoXB3G.gif> width="300" height="230"></a>
<br><b>click the gif above for the key to success</B><br>
<h1>The keys to success -by DJ Khaled</h1>
<ol>
<li><b>The key is to make it.</b></li>
<li><b>Another one.</b></li>
<li><b>Key to more success is clean heart and clean face.</b></li>
<li><b>Smh they get mad when u have joy.</b></li>
<li><b>There will be roadblocks but we will overcome them.</b></li>
<li><b>You smart! You loyal! You're a genius!</b></li>
<li><b>Those that weather the storm are the great ones.</B></li>
<li><b>I changed a lot</b></li>
<li><b>They don't want you to jet ski.</b></li>
<li><b>I can deal with everything. I got the answer for anything.</B></li>
</body>
</html>
【问题讨论】:
-
我从来不知道 SO 会评价代码.. :) 代码审查更好..
-
不太适合这个网站,它是为了在你遇到困难时获得帮助。也就是说...您以
<b>打开但以</B>关闭。始终如一。一个提示是先将打开/关闭标签写在一起,然后在它们之间放置内容。好的代码编辑器或快捷工具将为您做到这一点。此外,正确缩进代码 - 同一级别的标签应该具有相同的缩进。例如。<body>在<html>内 & 应该缩进,在<ol>内缩进<li>项目 1 级但彼此处于同一级别。内联style并不理想,但对于第一个项目来说还可以。最后:你应该水上摩托!