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.

Pratiquez Python avec des défis de code

Résolvez des problèmes concrets dans cet éditeur : lancez les tests, soumettez et recevez une relecture IA.

Tous les défis Python
Facile

Rectangle Perimeter

Compute the perimeter of a rectangle from its sides.

Vous apprendrez ArithmétiqueValeurs de retour
débutantLearning-pathVariables
Facile

Distance entre deux points

Calculez la distance en ligne droite entre deux points.

Vous apprendrez Théorème de PythagoreRacines carrées
débutantfonctionsLearning-pathmathématiques
Facile

Average of Three

Average three whole numbers.

Vous apprendrez ArithmétiqueDivision
débutantLearning-pathVariables
Facile

Produit scalaire de deux vecteurs

Multipliez deux vecteurs élément par élément et additionnez les résultats, l'opération de base de tout neurone.

Vous apprendrez VecteursProduit scalaire
Réseaux de neuronesaiapprentissage automatique
Facile

Days in a Month

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

Vous apprendrez Règles du calendrierFonctions utilitaires
débutantconditionsfonctionsLearning-path
Facile

Vérification de nombre premier

Déterminez si un nombre est premier.

Vous apprendrez DivisibilitéOptimiser une boucle
débutantbouclesnombresétudiant débutant
Facile

Number Triangle

Build a triangle of increasing numbers.

Vous apprendrez Lignes croissantesCompteur entre les lignes
débutantLearning-pathboucles imbriquéesmotifs
Facile

Min and Max Together

Find the smallest and largest value in one pass.

Vous apprendrez Un seul passagePlusieurs valeurs de retour
ArraysdébutantfonctionsLearning-path
Facile

Count Pairs With a Sum

Count pairs of positions whose values add up to a target.

Vous apprendrez Paires d'indicesÉviter les doubles comptes
ArraysdébutantLearning-pathboucles imbriquées
Facile

Largest of Three

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

Vous apprendrez ComparaisonsCombiner des conditions
débutantconditionsLearning-path
Facile

Hollow Square

Draw the outline of a square with * characters.

Vous apprendrez Détection des bordsConstruire des chaînes
débutantLearning-pathboucles imbriquéesmotifs
Facile

Simple Interest

Find the total amount after simple interest.

Vous apprendrez PourcentagesProblèmes concrets
débutantLearning-pathVariables