summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/conformance-checkers/xhtml/elements/img/043-isvalid.xhtml
blob: 21a73c7610824a5e4722f33220c78b10be12a3e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>&lt;img&gt;</title>
</head>
<body>
  <!-- is structured inline -->
  <p><a href='foo'><img
      src="url"
      alt="text"
      width="42"
      height="095"
      ismap="ismap"
      class="class"
      xml:lang="en"></img></a></p>

  <!-- is strictly inline -->
  <p><a href='foo'><dfn><img
      src="url"
      alt="text"
      width="42"
      height="095"
      ismap="ismap"
      class="class"
      xml:lang="en"></img></dfn></a></p>

  <!-- src and alt are required, others optional -->
  <p><img src="ur" alt="text"></img></p>
</body>
</html>