Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
Hello my name is victor and i need to fix the error Uncaught SyntaxError: Unexpected token '<'
this is mmy code, thak you.
HTML
<title>Salón de Miembros - MHiM




  <div id="overlay">
    <div class="spinner">
    </div>
    
  </div>

  
    <div class="container-fluid">
      <a class="navbar-brand" href="index.php">
        
      </a>
      
        
      
      <div class="collapse navbar-collapse" id="navbarSupportedContent">
        <ul class="navbar-nav me-auto mb-2 mb-lg-0">
           
        </ul>
        
          <div class="row justify-content-center row_navform" align="center">
            <div class="col-sm-12 col-md-6 col-lg-6 col-xl-6 col_navform">
              <li class="nav-item dropdown ddstyle" style="list-style-type: none; list-style-image: initial">                <a class="nav-link dropdown-toggle" id="navbarDropdown" data-bs-toggle="dropdown">
                  </a>
          <a>^__i class="icon-instagram text-white"></a>
          <a>^__i class="icon-paper-plane text-white"></a>
        </p>
      </div>

      <div class="col-sm-12 col-md-12 col-lg-10 col-xl-10">
        <p class="text-white">© 2022 Copyright: ^__b>MY HOME IN MEXICO S.L.</p>
      </div>
    </div>


What I have tried:

I have tried to do everything I have searched for how to solve the error by searching several web pages and entered several forums looking for similar cases but I still have no solution
Posted
Updated 15-Jan-23 22:01pm
v2
Comments
Richard MacCutchan 12-Jan-23 4:31am    
Exactly which line causes the error?
Victor Gonzalez 2023 12-Jan-23 7:06am    
the firt one, when i excecute the code the error appears
Richard MacCutchan 12-Jan-23 7:33am    
If you mean that the line that contains <title> is the first line of this web page, then it is incomplete. But you have not really explained the problem in much detail, so that is a guess.
Victor Gonzalez 2023 12-Jan-23 9:30am    
this is my code
the error appers in line 1 colum 1, in others words when i execute the de code appers the error: Uncaught SyntaxError: Unexpected token '<' in the first line in !DOCTYPE html, i don´t know why
Richard MacCutchan 12-Jan-23 9:50am    
As I said earlier if the above is all of the code then it is not complete. And I do not understand what you mean by "execute the code", what you have is part of a web page, not an executable program.

If this is only part of the code, then please show the missing parts. Also when you have error messages then please use copy and paste to show us the complete message.

1 solution

<title>Salón de Miembros - MHiM
needs to be closed off -
<title>Salón de Miembros - MHiM</title>


This also looks like a lot of mix and match copied and pasted code - your "a" link elements has no links and there are added ">" within the elements -
<a>
^__i class="icon-instagram text-white"
THIS HERE --> >
</a>
          <a>^__i class="icon-paper-plane text-white"
AND HERE --> >
</a>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900