Reputation: 9463
I am trying to display the following in a reveal.js slide
<section>
<pre><code>
<html>
<head>
<meta charset="utf-8">
<title>My HTML 5 Page</title>
<script src="modernizr.min.js"></script>
</head>
<body>
...
</body>
</html>
</code></pre>
</section>
However the <html>, <head>, <body>
tags are not displayed in the presentation. I have highlight.js loading, it just seems to ignore certain elements. Any idea of what could be wrong?
Thanks!
Upvotes: 0
Views: 1050
Reputation: 84
Escape the HTML tags with <
and >
<section>
<pre><code>
<html>
<head>
<meta charset="utf-8">
<title>My HTML 5 Page</title>
<script src="modernizr.min.js"></script>
</head>
<body>
...
</body>
</html>
</code></pre>
</section>
Upvotes: 3