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 на задачах

Решайте задачи прямо в редакторе: запускайте тесты, отправляйте решение и получайте 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Математика
Легко

Среднее из трёх

Вычислите среднее трёх целых чисел.

Вы освоите АрифметикаДеление
Для начинающихLearning-pathVariables
Легко

Скалярное произведение двух векторов

Перемножьте два вектора поэлементно и сложите результаты — это основная операция любого нейрона.

Вы освоите ВекторыСкалярное произведение
Нейронные сетиискусственный интеллектмашинное обучение
Легко

Days in a Month

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

Вы освоите Правила календаряВспомогательные функции
Для начинающихУсловияФункцииLearning-path
Легко

Проверка на простое число

Определите, является ли число простым.

Вы освоите ДелимостьОптимизация циклов
Для начинающихЦиклыЧислаНачинающим студентам
Легко

Number Triangle

Build a triangle of increasing numbers.

Вы освоите Растущие строкиСчётчик между строками
Для начинающих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