Ich bin ein komplettes Anfänger, wenn es um Webdesign geht. Ich habe gerade angefangen, ein paar Grundlagen zu lernen. Im Moment versuche ich ein Bild zum Hauptbanner meiner Webseite zu machen. Ich habe viele Tutorials besucht und jeder sagt, den Code <img src="images/wood.jpg" height="168" width="100">
zu verwenden, wenn Sie eine Datei im Verzeichnis der Webseite speziell für Bilder haben und Höhen- und Breitenangaben verwenden, um sie innerhalb der Grenzen des Banners zu platzieren. Nachdem ich das gesagt habe, aktualisiere ich die Seite und es wird kein Bild angezeigt. Außerdem ein Bonuspunkt für Informationen darüber, wie die Wörter über dem Bild eingeblendet werden.Bilder, die nicht in HTML erscheinen
<!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>
Dies wird sich auf eine direkte namens "images" im selben Verzeichnis wie diese HTML-Datei, dann in "Bilder", eine Datei namens "wood.jpg" verlassen. Es ist auch Groß-und Kleinschreibung. Haben Sie Fehler in der Browserkonsole? Das sollte Ihnen sagen, wenn Sie den falschen Pfad oder Dateinamen für das Bild referenziert haben. –