-1

メモ帳で Web ページを作成しています。初めて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画像の単なる代替テキストです。widthsrcおよびのような属性ですheight

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

また、URL が正しいことを確認してください。


また、DOCTYPE がないと、マークアップは無効になります。DOCTYPE を含めます (これは HTML5 のものです):

<!DOCTYPE html>

<html>
  ...
于 2012-09-27T04:31:02.370 に答える