Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

216
Views
Estructuración de código: cómo incluir un archivo (JS, PHP, etc.) en HTML

¿cómo estás?

Quiero estructurar mi código con el mayor cuidado posible, pero no sé cómo hacerlo. En un solo archivo, tengo código PHP, JS y HTML y me preguntaba si era posible separar los contenidos al incluir su "ruta" en el código html.

Por ejemplo, cómo puedo separar el código php y el código js:

 <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> { js code } { php code } </body> </html>``` Thank you in advance for the information I would receive
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Puede usar el archivo '.php' como predeterminado y luego simplemente poner html en eso

 <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <script src="file.js"></script> <?php include('file.php') ?> </body> </html>
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!