-1

我正在记事本中建立一个网页。我是第一次使用 html5。我相信我做了正确的编码来插入这些图像,但它们没有出现在页面上。这是代码:我可以使用一些帮助,拜托。谢谢你。

 <html>
 <head>
 <title>My practice website</title>
 <meta charset="utf-8">
 <html lang="en">
 <meta name="keywords" content="html, css, javascript, history, poems, poetry"/>

 <meta name="description" content="This site is about my personal life, poems, poetry, images of family, myself"/>
 <meta name="author" content="schweidel tyson">

 <meta http-equiv="refresh" content="30" />
 <link rel="stylesheet" type="text/css" href="mainstyesheet.css"/>

 <body style="background-color: #ccffff;">
 </head>

 <body/>
 <h1>Welcome to my website</h1>

 <img src="http://www.html.net/logo.png"/>


 <p>This is basically a personal website build to showcase my fledging talent in webdesign to put up pictures of my family and friends. I also like poetry, so there will be some poems.</p><b/>

 <a href="http://www.html.net/">This is a link to a good html tutorial</a><br/><br/>

 <a href="http://html5doctor.com/">This is another great tutorial link</a><br/><br/>

 <a href="http://www.w3schools.com/">A tutorial for styles link</a>

 <img src=My practice website/My Website/images/high yellow.jpg" width="192 height="256"/><alt="African Amereican light-skined woman"><br/><br/>

 <img src="http://www.zimbio.com/My website/images/trendy.jpg" width="352" width="400"/><alt="African American Woman">

 <img src="My practice website/My website/my new pic.jpg" width="104" height="104"/>  <alt="me at the domiciliary">

 </body>
 </html>
4

1 回答 1

0

您的 HTML 有点偏离:

<img src="..." width="104" height="104"/>  <alt="me at the domiciliary">

alt只是图像的替代文本。它是一个属性,就像width,srcheight

<img src="..." width="104" height="104" alt="me at the domiciliary" />

此外,请确保您的网址正确。


此外,如果没有 DOCTYPE,您的标记是无效的。包括一个 DOCTYPE(这里是一个 HTML5 的):

<!DOCTYPE html>

<html>
  ...
于 2012-09-27T04:31:02.370 回答