Edit
undo
redo
Select All
Link 3
Link 4
Link 5
Edit
Link 11
Link 12
Link 13
Link 14
Link 15
Link 16
Link 6
Link 7
Setting
Themes
default
3024-day
3024-night
abcdef
ambiance
base16-dark
base16-light
bespin
blackboard
cobalt
colorforth
darcula
dracula
duotone-dark
duotone-light
eclipse
elegant
erlang-dark
gruvbox-dark
hopscotch
icecoder
idea
isotope
lesser-dark
liquibyte
lucario
material
mbo
mdn-like
midnight
monokai
neat
neo
night
nord
oceanic-next
panda-syntax
paraiso-dark
paraiso-light
pastel-on-dark
railscasts
rubyblue
seti
shadowfox
solarized dark
solarized light
the-matrix
tomorrow-night-bright
tomorrow-night-eighties
ttcn
twilight
vibrant-ink
xq-dark
xq-light
yeti
yonce
zenburn
fullScreen
Auto Close Tags
Auto Close Brackets
Active Line
Line Numbers
fold Gutter
Link 5
Link 6
Preview »
Size:
625 x 571
KmarsHub
Demo v6.0 - KmarsHub
<!DOCTYPE html> <html> <body> <style> .html {border-radius: 16px;} </style> <p id="kmars">Click the button to change the layout of this paragraph</p> <a href="/2010/07/demo-v5.0.html">Demo v 5.0</a> <button onclick="myFunction()">Click Me!</button> <p>The <abbr title="World Health Organization">WHO</abbr> was founded in 1948.</p> <svg class="html" height="300" width="200"> <polygon points="0,0 120,0 200,80 200,300 0,300" style="fill:red;" /> Sorry, your browser does not support inline SVG. </svg> <svg class="html" height="300" width="200"> <polygon points="0,0 120,0 200,80 200,300 0,300" style="fill:lime;" /> Sorry, your browser does not support inline SVG. </svg> <svg class="html" height="300" width="200"> <polygon points="0,0 120,0 200,80 200,300 0,300" style="fill:blue;" /> Sorry, your browser does not support inline SVG. </svg> <script> function myFunction() { var x = document.getElementById("kmars"); x.style.fontSize = "30px"; x.style.color = "lime"; } </script> <script> /* When the user clicks on the button, toggle between hiding and showing the dropdown content menuEdit */ function menuEdit() { document.getElementById("dropEdit").classList.toggle("show"); var closeDrop = document.getElementById("dropSetting"); if (closeDrop.classList.contains('show')) { closeDrop.classList.remove('show'); } } function submenuEdit() { document.getElementById("subdropEdit").classList.toggle("show"); } function menuSetting() { document.getElementById("dropSetting").classList.toggle("show"); var closeDrop = document.getElementById("dropEdit"); if (closeDrop.classList.contains('show')) { closeDrop.classList.remove('show'); } } function submenuSetting() { document.getElementById("subdropSetting").classList.toggle("show"); } // Close the dropdown if the user clicks outside of it /* window.onclick = function(event) { if (!event.target.matches('.dropbtn')) { var dropdowns = document.getElementsByClassName("dropdown-content"); var i; for (i = 0; i < dropdowns.length; i++) { var openDropdown = dropdowns[i]; if (openDropdown.classList.contains('show')) { openDropdown.classList.remove('show'); } } } } */ </script> </body> </html>
×
HTML and CSS
Learn HTML
Learn CSS
Learn How To
XML
Learn XML
JavaScript
Learn JavaScript
×
HTML
HTML Tag Reference
HTML Event Reference
HTML Color Reference
HTML Attribute Reference
CSS
CSS Reference
CSS Browser Support
CSS Selector Reference
JavaScript
JavaScript Reference
HTML DOM Reference
×
Exercises
HTML Exercises
CSS Exercises
JavaScript Exercises
Quizzes
HTML Quiz
CSS Quiz
JavaScript Quiz
Top ↑