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

249
Views
No se puede cambiar el elemento HTML <h1> a un <form> como respuesta de función a la solicitud HTTPS usando node.js (Express)

Si trato de cambiar "

Hola Mundo

" a "etiqueta>Su nombre no se puede representar. que estoy haciendo mal? Vea el código a continuación...


 const express = require("express"); const app = express(); app.get("/currenttime", function (request, response) { response.send("<h1>" + new Date().toDateString() + "</h1>"); }); // localhost:3000/currenttime app.get("/", function (request, response) { response.send("<form><label>Your Name</label><input type='text'></form>"); }); //localhost:3000/ app.listen(3000);

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Debe agregar una etiqueta de cierre para su elemento de entrada.

 const express = require("express"); const app = express(); app.get("/currenttime", function (request, response) { response.send("<h1>" + new Date().toDateString() + "</h1>"); }); // localhost:3000/currenttime app.get("/", function (request, response) { response.send("<form><label>Your Name</label><input type='text' / ></form>"); }); //localhost:3000/ app.listen(3000);
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!