Visualizers

HTML Viewer and Runner

Paste or write HTML, CSS and JavaScript and see the page render live, with a console for logs and errors.

  • Runs in your browser
  • Instant results
  • Free, no sign-up
Loading the tool…

How to use the HTML Viewer

  1. Paste your HTML in the HTML tab, or start from a template. Add styles and scripts in the CSS and JavaScript tabs.
  2. The preview updates as you type; turn off Auto-run and press Run (Ctrl/Cmd + Enter) for bigger pages.
  3. Check the console, try a mobile width, then open the page in a new tab or download it as index.html.

Frequently asked questions

Can I paste a whole HTML file?

Yes. A full document with its own head and body is shown as it is; the CSS and JavaScript tabs are added to it.

Is it safe to run scripts here?

The preview runs in a sandboxed frame with no access to this page or your account, and nothing is uploaded. Your code is kept only in your browser.

Can I use external libraries?

Yes. Add a script or link tag with a CDN URL in the HTML tab, for example a CSS framework or a charting library.

ฝึก Python ด้วยโจทย์เขียนโค้ด

แก้โจทย์จริงใน editor นี้: รันทดสอบตัวอย่าง ส่งคำตอบ และรับรีวิวโค้ดจาก AI

โจทย์ Python ทั้งหมด
ง่าย

Rectangle Perimeter

Compute the perimeter of a rectangle from its sides.

คุณจะได้เรียนรู้ เลขคณิตค่าที่คืนกลับ
ผู้เริ่มต้นLearning-pathVariables
ง่าย

Distance Between Points

Compute the straight-line distance between two points.

คุณจะได้เรียนรู้ ทฤษฎีบทพีทาโกรัสรากที่สอง
ผู้เริ่มต้นฟังก์ชันLearning-pathคณิตศาสตร์
ง่าย

Average of Three

Average three whole numbers.

คุณจะได้เรียนรู้ เลขคณิตการหาร
ผู้เริ่มต้นLearning-pathVariables
ง่าย

ผลคูณจุดของเวกเตอร์สองตัว

คูณเวกเตอร์สองตัวทีละสมาชิกแล้วรวมผลลัพธ์ ซึ่งเป็นการคำนวณหลักของทุกนิวรอน

คุณจะได้เรียนรู้ เวกเตอร์ผลคูณจุด
โครงข่ายประสาทเทียมaiการเรียนรู้ของเครื่อง
ง่าย

Days in a Month

Return how many days a month has, including leap years.

คุณจะได้เรียนรู้ กฎของปฏิทินฟังก์ชันช่วย
ผู้เริ่มต้นเงื่อนไขฟังก์ชันLearning-path
ง่าย

ตรวจสอบจำนวนเฉพาะ

ตัดสินว่าตัวเลขเป็นจำนวนเฉพาะหรือไม่

คุณจะได้เรียนรู้ การหารลงตัวปรับลูปให้เร็วขึ้น
ผู้เริ่มต้นลูปตัวเลขนักเรียนมือใหม่
ง่าย

สามเหลี่ยมตัวเลข

สร้างสามเหลี่ยมที่มีตัวเลขเพิ่มขึ้นในแต่ละแถว

คุณจะได้เรียนรู้ แถวที่ยาวขึ้นตัวนับข้ามแถว
ผู้เริ่มต้นLearning-pathลูปซ้อนแพทเทิร์น
ง่าย

Min and Max Together

Find the smallest and largest value in one pass.

คุณจะได้เรียนรู้ ไล่รอบเดียวคืนหลายค่า
Arraysผู้เริ่มต้นฟังก์ชันLearning-path
ง่าย

นับคู่ที่มีผลรวมเท่ากับค่าที่กำหนด

นับจำนวนคู่ของตำแหน่งที่ค่ารวมกันได้เท่ากับเป้าหมายที่กำหนด

คุณจะได้เรียนรู้ คู่ดัชนีหลีกเลี่ยงการนับซ้ำ
Arraysผู้เริ่มต้นLearning-pathลูปซ้อน
ง่าย

Largest of Three

Pick the largest of three numbers without a built-in max.

คุณจะได้เรียนรู้ การเปรียบเทียบรวมเงื่อนไข
ผู้เริ่มต้นเงื่อนไขLearning-path
ง่าย

Hollow Square

Draw the outline of a square with * characters.

คุณจะได้เรียนรู้ ตรวจขอบสร้างสตริง
ผู้เริ่มต้นLearning-pathลูปซ้อนแพทเทิร์น
ง่าย

Simple Interest

Find the total amount after simple interest.

คุณจะได้เรียนรู้ ร้อยละโจทย์ปัญหา
ผู้เริ่มต้นLearning-pathVariables