Paradox Paradox - 24 days ago 11
HTML Question

"HTML: Error: <nav> is not recognized!" In Komodo Edit

I am working on an index.html file and inside my head and body tag, I have a nav element. However, in Komodo Edit, version 10.1.1, build 17414, platform linux-x86_64., It red-underlines the nav element and gives me the following erorr message:


HTML: Error:
<nav>
is not recognized!


This is what my code looks like:

<html>
<head>
<link rel="stylesheet" type="text/css" href="/static/css/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="/static/js/script.js"></script>
<script src="/socket.io/socket.io.js"></script>
</head>
<body><div class="sidebar"></div><nav class="main menu">

<ul class = button-container>
<li>
<i class="fa fa-font" style="font-size:6em;"></i>
</li>

...

<li>
<i class="fa fa-picture-o" style="font-size:6em;"></i>
</li>
</ul>

<ul class="export button-container">
<li>
<i class="fa fa-floppy-o" style="font-size:6em;"></i>
</li>
</ul>

</nav>
<nav class="menu font" style="display: none;">
<p>Font</p>
</nav>

...

<nav class="menu picture" style="display: none">
<p>Pictures</p>

</nav>
</body>
</html>


Does anyone know what might be causing this?

Answer

Komodo has 2 "Languages" that cover HTML, one is called "HTML" and one is called "HTML5". HTML5 covers the nav element, HTML does not. You need to change your language selection to HTML5.

The language selection is done from the right side of the statusbar, it should currently say "HTML".

Comments