CodePlayground

Playground HTML, CSS e JS

HTML

CSS

JavaScript

Resultado:

`); s.close(); } function downloadCode() { try { const n = document.getElementById("htmlCode").value; const t = document.getElementById("cssCode").value; const e = document.getElementById("jsCode").value; const i = `${n}`; const s = new Blob([i], { type: "text/html" }); const o = document.createElement("a"); o.href = URL.createObjectURL(s); o.download = "playground.html"; o.click(); } catch (n) { console.error("Erro ao baixar o arquivo:", n); } } runCode(); downloadCode();