當談到網頁設計時,我是一個完整的noob。我剛開始學習一些基礎知識。此刻,我正試圖讓圖像成爲我網頁的首要旗幟。我訪問了很多教程,並且每個教程都說如果在網頁的目錄中有一個專門用於圖像的文件並使用高度和寬度說明符來使其適合橫幅範圍,則使用代碼<img src="images/wood.jpg" height="168" width="100">
。有人說,我刷新頁面,並沒有圖像顯示。此外,還提供了關於如何在圖像的頂部重疊單詞的信息的獎勵點。圖像不顯示在html
<!DOCTYPE HTML>
<!--- COMMENT--->
<html long="en">
<head>
<meta charset="UTF -8"/>
<Title>Ken's Woodworking Emporium</title>
<link rel="stylesheet" type="text/css" href="style.css">
<!--[if lt IE 9]>
<script>
document.createElement("article");
document.createElement("aside");
document.createElement("footer");
document.createElement("header");
document.createElement("main");
document.createElement("nav");
document.createElement("section");
</script>
<![endif]-->
<meta name="description" contents= "Learn everything you want to know
about wood working."/>
<meta name="keyword" content=html5 canvas,html5,toutorial,html5 doctype,
video, learn/>
<meta name="robots" Content="index, follow"/>
<base href="http://localhost/html/"/>
<link rel= stylesheet" href="styles.css"/>
</head>
<body>
<header class="banner">
<h1>Woodworking</h1>
<img src="images/wood.jpg">
<p> Local woodworkers</p>
</header>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="archive.html">Archive</a></li>
<li><a href="about.html">About</a></li>
</ul>
</nav>
<main>
<section>
<h2>Carpenty</h2>
<article>
<header>
<h3>Details on carpentry</h3>
<p>(Author, date)</p>
</header>
<p>THis is the story text.This is the story text.</p>
<p>This is the story text.This is the story text.</p>
</article>
</section>
<section>
<article>
<header>
<h3>Custom carpentry.</h3>
<p>(Author, date)</p>
</header>
<p>THis is the story text.This is the story text.</p>
<p>This is the story text.This is the story text.</p>
</article>
</section>
<section>
<h2>Restoration</h2>
<article>
<header>
<h3>Old to new</h3>
<p>(Author, date)</p>
</header>
<p>THis is the story text.This is the story text.</p>
<p>This is the story text.This is the story text.</p>
</article>
</section>
<section>
<article>
<header>
<h3>refinishing.</h3>
<p>(Author, date)</p>
</header>
<p>THis is the story text.This is the story text.</p>
<p>This is the story text.This is the story text.</p>
</article>
</section>
</main>
<aside>
<h2>Have a request?</h2>
<p>If you have a custom order request feel free to contact us at 918-555-5555, or [email protected]</p>
</aside>
<footer>
<p>Footer information</p>
</footer>
</body>
</html>
這將依賴於直接稱爲「圖像」是在同一目錄下這個HTML文件,然後在「圖像」,一個名爲「wood.jpg」文件。這也都是區分大小寫的。瀏覽器控制檯中是否有任何錯誤?這應該告訴你是否引用了圖像的錯誤路徑或文件名。 –