如何让图像显示在HTML5代码中

时间:2013-08-15 22:44:08

标签: html5

将代码上传到服务器时遇到问题。我需要在右边有一个骆驼的图像,但由于某种原因,图像不会出现。我已经尝试了示例代码,当使用它时,图像将出现,但不会出现在我的代码中。我将我的代码放在下面,所以任何帮助都会很精彩。这也是我对这种语言的第一次尝试,所以我对这一切都是新手。

<!DOCTYPE  html>

<!-- Fig. 2.18 Solution -->
<! __ Includes camel image -->

<html>
       <head>
          <meta charset = "utf-8">
              <title> Homework 1- 2.18 Solution </title>
       </head>
       <body>
          <table border = "1"   width = "640" >
             <tr>
                <td><h1> Objectives </h1>
                   <ul>
                      <li>  To be able to create tables with rows and
                            columns of data. </li>
                      <li>  To be able to control the display and formatting of tables. </li>
                      <li>   To be able to create and use forms. </li>
                   </ul>
                   <em> Yea, from the table of my memory I'll wipe away all 
                        trivial fond records. </em><br  />
                        William Shakespeare.
                   </td>
                   <td><imag src="camel.png"  alt= "Camel picture"
                         height = "310"    width = "200"  />
                </td>
             </tr>
          </table>
        </body>
     </html>

1 个答案:

答案 0 :(得分:1)

你需要使用<img src="camel.png" alt= "Camel picture" height = "310" width = "200" /> - 从'imag'中取出'a'。