summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/conformance-checkers/xhtml/elements/code/010-isvalid.xhtml
blob: ed6aa2c4b48f5b6d991e630dba808d357e97a4fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>&lt;code&gt;</title>
</head>
<body>
  <!-- is structured inline -->
  <p><code class="class" xml:lang="en">text</code></p>

  <!-- is strictly inline -->
  <p><dfn><code class="class" xml:lang="en">text</code></dfn></p>

  <!-- can be empty -->
  <p>text <code></code></p>
  <p>text <dfn><code></code></dfn></p>

  <!-- can contain interactive -->
  <p><code><a>text</a></code></p>
  <p><dfn><code><a>text</a></code></dfn></p>
</body>
</html>