Our volunteers haven't translated this article into 正體中文 (繁體) yet. Join us and help get the job done!

Hola Mundo

auto-generate header id test : if...else

Hola Caracola!!

<h1>Hello World1</h1>
<p>This is an <i>awesome1</i> paragraph</p>
 

This is an experimental page for people who are starting out as an MDN contributor

h1{
color: yellow;
}
p{
font-size: low;
}

Result

Test Template

HTML Content

<canvas id='the_canvas'></canvas>

CSS Content

body, html, canvas {width:100%; height:100%;}

JavaScript Content

var canvas = document.getElementById('the_canvas');
var ctx = canvas.getContext('2d');

ctx.fillRect(50, 50, 100, 100);

 

Another livesample

JavaScript Content

const result = 1 + 1;
document.body.innerHTML += result;

Outputs:

End output
 

HTML Content

<div>Hola Mundo</div>