Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

223
Vistas
My CSS and JS external files are not working in my project

I have a simple project with that files structure:

image of my structure

But my CSS and JS files are not loading...

<link rel="stylesheet" href="./css/main.css">

<script src="./js/main.js"></script>
about 4 years ago · Juan Pablo Isaza
3 Respuestas
Responde la pregunta

0

May be this should work :

 <link rel="stylesheet" href="css/main.css">
    
    <script src="js/main.js"></script>
about 4 years ago · Juan Pablo Isaza Denunciar

0

the below should works:

<link rel="stylesheet" href="../css/main.css">

<script src="../js/main.js"></script>

Add two dots instead of one.

For more information read: https://www.w3schools.com/html/html_filepaths.asp

about 4 years ago · Juan Pablo Isaza Denunciar

0

It should be work

<link rel="stylesheet" href="/www/public/css/main.css" type="text/css">

<script type="text/javascript" src="/www/public/js/main.js"></script>
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda