w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



img, occurrences

Multiple img elements are allowed per HTML5 document within different elements: see img parents

Valid Syntax 1
1 img element present
1
2
3
4
5
6
7
8
9
10
11
<!doctype html>
<html>
<head>
<title>... <⁄title>
<⁄head>
<body>

<img>

<⁄body>
<⁄html>
Valid Syntax 2
multiple img elements present
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!doctype html>
<html>
<head>
<title>...</title>
</head>
<body>

<p>... <img>...<img>...<img>...</p>
<a>... <img>...</a>
<h1>... <img>...</h1>
<figure>... <img>...</figure>

</body>
</html>
img intro img optional img browser display img parents server-side image map (ismap) vs client-side image map (usemap) img syntaximg alt attributeimg ismap attributeimg usemap attributeimg width, height attributesimg src attributeimg accesskey attributeimg class attributeimg draggable attributeimg hidden attributeimg id attributeimg lang attributeimg style attributeimg tabindex attributeimg title attributeimg translate attribute