0

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?

Paradox
  • 4,602
  • 12
  • 44
  • 88

2 Answers2

2

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".

Naatan
  • 3,424
  • 4
  • 32
  • 51
  • Thank you. I had set it to HTML5 in the preferences already, but it didn't fix it until I did the language selection from the ride side of the status bar. – Paradox Nov 11 '16 at 16:01
  • You might have opened the file before you changed your language preference in the preferences window. Komodo remembers the language of a file the next time you open it, and changing the default language in Preferences doesnt change it for files that are already opened. – Naatan Nov 11 '16 at 17:45
0

Can this Work?

<!DOCTYPE html>
<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>

this Might not work but guess Ill try

Edwald
  • 1
  • 1