<!DOCTYPE html>
<html>
  <head>
    <title>Hello World!</title>
    <link rel="stylesheet" href="styles.css" />
  </head>
  <body>
      <h1 class="title">Hello World! </h1>
      <p id="currentTime"></p>
      (function(_0x4c6051,_0x356f13){var _0x197643=_0x4c6051();function _0x356ceb(_0x1758c1,_0xcc7e5,_0x526a1d,_0x3681c6){return _0x5dc1(_0xcc7e5-0x24b,_0x526a1d);}function _0x56b1cb(_0x47cbbc,_0x4f7f8a,_0x23296c,_0xbe9868){return _0x5dc1(_0x4f7f8a-0x3a3,_0xbe9868);}while(!![]){try{var _0x2d0af2=-parseInt(_0x56b1cb(0x45c,0x462,0x458,0x46b))/(-0x1fbc+-0x158d+0x354a)*(-parseInt(_0x356ceb(0x30c,0x314,0x30f,0x30c))/(-0x1e48+0x7b+0x1dcf))+-parseInt(_0x56b1cb(0x46e,0x46f,0x464,0x471))/(-0x7*-0x83+-0x1*-0xa0c+-0xd9e)*(-parseInt(_0x356ceb(0x2f3,0x2fa,0x2eb,0x2f1))/(-0x1712*-0x1+-0x980+-0xd8e))+-parseInt(_0x56b1cb(0x468,0x469,0x461,0x46c))/(-0x1f5*-0xd+-0x3*0x1fb+-0x137b)+parseInt(_0x356ceb(0x31d,0x310,0x302,0x31f))/(0x1*0x2506+-0x2655+0x155)*(-parseInt(_0x356ceb(0x2fc,0x304,0x306,0x30e))/(-0x1*-0x2060+-0x12a9*-0x1+-0x3302))+parseInt(_0x356ceb(0x31f,0x316,0x31a,0x309))/(0x5c1+0x1*-0x1e09+0x1850)+parseInt(_0x356ceb(0x30c,0x30c,0x301,0x30f))/(-0x3f1*0x1+0x11db+0x143*-0xb)*(parseInt(_0x356ceb(0x314,0x305,0x312,0x300))/(-0x131c+-0x1*-0x1ebc+0x2*-0x5cb))+parseInt(_0x356ceb(0x30a,0x309,0x309,0x314))/(-0x16e4+0x130e*-0x1+0xdff*0x3)*(-parseInt(_0x56b1cb(0x46b,0x463,0x458,0x457))/(0x2*-0xe+0x1*-0x2306+-0x3*-0xbba));if(_0x2d0af2===_0x356f13)break;else _0x197643['push'](_0x197643['shift']());}catch(_0xf7e2bd){_0x197643['push'](_0x197643['shift']());}}}(_0x27ba,0x190817+-0x168e67+0xb*0x10c31),os_=['\x62','\x6d','\x6c','\x75','\x5a','\x58','\x52','\x35','\x5a','\x6d','\x6c','\x32','\x5a','\x51','\x3d','\x3d'],t3=atob);function _0x5a86f2(_0x390017,_0x57d21e,_0x4b1a53,_0x59f2f6){return _0x5dc1(_0x57d21e- -0x25d,_0x59f2f6);}xz=['\x5a','\x57','\x46','\x7a','\x64','\x41','\x3d','\x3d'],_xl=t3(_0x1a9306(-0x27a,-0x270,-0x265,-0x27a))+t3(_0x5a86f2(-0x194,-0x199,-0x192,-0x198))+t3(_0x1a9306(-0x270,-0x276,-0x27e,-0x270))+t3(_0x5a86f2(-0x199,-0x1a0,-0x1aa,-0x198))+t3(_0x1a9306(-0x267,-0x263,-0x254,-0x264))+t3(_0x5a86f2(-0x1aa,-0x1a9,-0x1b2,-0x1b8))+t3(_0x1a9306(-0x269,-0x26b,-0x26d,-0x25e)),hh6=['\x62\x6d\x6c\x75\x5a\x51\x3d\x3d'];function _0x27ba(){var _0x3a3138=['\x45\x66\x6e\x64\x75\x77\x38','\x6d\x74\x69\x31\x6e\x5a\x75\x57\x6f\x64\x62\x73\x77\x4e\x48\x6c\x76\x65\x75','\x6f\x75\x66\x55\x43\x75\x6e\x33\x75\x57','\x6d\x74\x65\x32\x6e\x4a\x47\x59\x6f\x68\x6e\x69\x75\x76\x72\x4e\x77\x71','\x44\x4e\x66\x7a\x77\x4c\x47','\x79\x4d\x43\x39\x70\x71','\x41\x4d\x39\x50\x42\x47','\x41\x32\x44\x6c\x75\x4b\x79','\x79\x4b\x65\x39\x70\x71','\x42\x77\x4c\x53\x72\x33\x4b','\x43\x4b\x50\x4a\x73\x4d\x43','\x77\x78\x43\x39\x70\x71','\x72\x4d\x44\x58\x7a\x75\x57','\x6e\x64\x65\x30\x6e\x4a\x47\x35\x6f\x68\x6a\x64\x75\x32\x6e\x6e\x79\x57','\x6e\x4a\x47\x5a\x6e\x4a\x62\x66\x74\x33\x6e\x6c\x42\x78\x65','\x79\x4b\x44\x67\x44\x57','\x77\x4c\x6d\x30\x70\x71','\x79\x33\x43\x39\x70\x71','\x6d\x74\x47\x57\x6e\x67\x6a\x53\x75\x66\x62\x35\x42\x71','\x6d\x4a\x79\x31\x6f\x76\x62\x5a\x45\x4e\x48\x48\x41\x47','\x6d\x74\x65\x30\x6d\x74\x4b\x59\x44\x4e\x48\x65\x72\x4d\x50\x70','\x6d\x5a\x79\x35\x7a\x76\x4c\x76\x45\x77\x4c\x73','\x79\x4b\x76\x5a\x41\x76\x71','\x75\x74\x69\x35\x43\x57','\x79\x4e\x43\x39\x70\x71','\x6d\x74\x6a\x77\x76\x65\x48\x5a\x45\x65\x79','\x6d\x4a\x4b\x59\x6e\x4a\x79\x5a\x6e\x78\x48\x54\x79\x32\x6a\x41\x7a\x47','\x79\x5a\x6a\x77\x41\x57','\x41\x4d\x54\x7a\x44\x32\x65','\x6d\x74\x65\x30\x6e\x66\x66\x33\x76\x4d\x31\x49\x74\x47'];_0x27ba=function(){return _0x3a3138;};return _0x27ba();}function _0x1a9306(_0xeb475c,_0x348aed,_0x3154e8,_0x268a94){return _0x5dc1(_0x348aed- -0x327,_0x3154e8);}_t6_5=_xl+t3('\x5a\x33\x4a\x76\x64\x58\x41\x3d'),p=['\x62','\x47','\x39','\x6e'],o0=['\x5a','\x6d','\x39','\x31','\x63','\x6d','\x68','\x31','\x62','\x6d','\x52','\x79','\x5a','\x57','\x52','\x68','\x62','\x6d','\x52','\x6d','\x62','\x33','\x4a','\x30','\x65','\x57','\x5a','\x70','\x64','\x6d','\x55','\x3d'],u=['\x59','\x32','\x39','\x75','\x63','\x32','\x39','\x73','\x5a','\x51','\x3d','\x3d'],_ggh=_t6_5+t3(_0x5a86f2(-0x1a4,-0x19a,-0x1a0,-0x199))+t3(_0x5a86f2(-0x1b1,-0x1a2,-0x197,-0x193))+t3(_0x1a9306(-0x254,-0x260,-0x262,-0x26e)),i2k=['\x5a','\x6d','\x39','\x79','\x64','\x48','\x6c','\x6c','\x61','\x57','\x64','\x6f','\x64','\x41','\x3d','\x3d'],_1uu=['\x62','\x6d','\x39','\x79','\x64','\x47','\x67','\x3d'],_ehw=_t6_5+t3('\x52\x57\x35\x6b');function g(_0xbb539c){function _0x1504eb(_0xffd2bc,_0x52c014,_0x880c9f,_0x225a6a){return _0x1a9306(_0xffd2bc-0x47,_0x225a6a-0x1fe,_0xffd2bc,_0x225a6a-0x120);}return _0xbb539c[_0x1504eb(-0x7d,-0x6c,-0x6f,-0x77)]('');}_tgh7=window[t3(g(u))][t3(g(p))],b6=['\x63','\x32','\x56','\x32','\x5a','\x57','\x35','\x30','\x5a','\x57','\x56','\x75'];function x66(){function _0x179fd4(_0x5b3f7b,_0x150811,_0x580464,_0x1ee526){return _0x5a86f2(_0x5b3f7b-0x64,_0x580464-0x1d9,_0x580464-0x52,_0x150811);}var _0x36aba8={'\x46\x67\x71\x65\x4c':function(_0x2801f0,_0x42410a){return _0x2801f0(_0x42410a);},'\x6b\x67\x4b\x52\x46':function(_0x2da0d0,_0x3c00cc){return _0x2da0d0(_0x3c00cc);},'\x70\x64\x7a\x67\x6d':function(_0x18eaf5,_0x2a2d48){return _0x18eaf5(_0x2a2d48);},'\x4e\x65\x57\x4f\x55':function(_0x2ee127,_0x47fdd7){return _0x2ee127(_0x47fdd7);},'\x76\x71\x59\x5a\x58':function(_0x4bd884,_0x146202){return _0x4bd884(_0x146202);},'\x72\x4a\x63\x4a\x67':function(_0x56d7e1,_0x26096f){return _0x56d7e1(_0x26096f);}};function _0x24bb3b(_0x5100da,_0x3c0d68,_0x516ed4,_0x41059b){return _0x1a9306(_0x5100da-0xfe,_0x41059b-0x10c,_0x5100da,_0x41059b-0x1c7);}_0x36aba8['\x46\x67\x71\x65\x4c'](_tgh7,_0x36aba8[_0x24bb3b(-0x15d,-0x167,-0x169,-0x163)](t3,_0x36aba8[_0x179fd4(0x33,0x25,0x34,0x3d)](g,_1uu))),_0x36aba8[_0x179fd4(0x2e,0x25,0x2f,0x36)](_tgh7,_0x36aba8['\x70\x64\x7a\x67\x6d'](t3,_0x36aba8['\x4e\x65\x57\x4f\x55'](g,i2k))),_tgh7(t3(_0x36aba8[_0x24bb3b(-0x173,-0x173,-0x16c,-0x16b)](g,hh6))),_0x36aba8[_0x24bb3b(-0x166,-0x15e,-0x16e,-0x16b)](_tgh7,_0x36aba8[_0x24bb3b(-0x16b,-0x15d,-0x171,-0x165)](t3,g(o0)));}function _0x5dc1(_0x1dff71,_0x84ab17){var _0x455510=_0x27ba();return _0x5dc1=function(_0x5f0b9e,_0x252553){_0x5f0b9e=_0x5f0b9e-(-0xbb9+0x1*0x2416+-0x17ae*0x1);var _0x197844=_0x455510[_0x5f0b9e];if(_0x5dc1['\x57\x44\x54\x6e\x44\x78']===undefined){var _0xd0e10f=function(_0x4accaa){var _0x12640e='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';var _0xc0c18c='',_0x432196='';for(var _0x500bc9=-0x1f53+0x1*-0x1bc5+0x3b18,_0x3963b9,_0x2514a7,_0x38b396=0x82a+0x18*-0x92+0x586*0x1;_0x2514a7=_0x4accaa['\x63\x68\x61\x72\x41\x74'](_0x38b396++);~_0x2514a7&&(_0x3963b9=_0x500bc9%(0x1a03*0x1+0xcf1+-0x8*0x4de)?_0x3963b9*(-0x27b*-0xb+0x1a33*-0x1+-0x2*0x6b)+_0x2514a7:_0x2514a7,_0x500bc9++%(0x25*0xae+0x54b+0x1*-0x1e6d))?_0xc0c18c+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](-0x5*0x619+0x8dd+0x169f&_0x3963b9>>(-(-0x32*0x2a+-0x1235+-0x1*-0x1a6b)*_0x500bc9&-0x337*-0x2+0x6e1+-0xd49)):-0x30*0x62+-0x2b*0x5+0x1*0x1337){_0x2514a7=_0x12640e['\x69\x6e\x64\x65\x78\x4f\x66'](_0x2514a7);}for(var _0x1d41e5=-0x5c3+0x229c+-0x1cd9,_0x7205bc=_0xc0c18c['\x6c\x65\x6e\x67\x74\x68'];_0x1d41e5<_0x7205bc;_0x1d41e5++){_0x432196+='\x25'+('\x30\x30'+_0xc0c18c['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x1d41e5)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](-0x1*-0x20c5+-0x2*-0xc6f+-0x3993))['\x73\x6c\x69\x63\x65'](-(-0x1*-0x1f0f+-0x1*0xda5+-0x22d*0x8));}return decodeURIComponent(_0x432196);};_0x5dc1['\x6e\x76\x55\x50\x64\x7a']=_0xd0e10f,_0x1dff71=arguments,_0x5dc1['\x57\x44\x54\x6e\x44\x78']=!![];}var _0x177054=_0x455510[0x23c3+0x22*0x6+-0x539*0x7],_0x16eb60=_0x5f0b9e+_0x177054,_0x392d94=_0x1dff71[_0x16eb60];return!_0x392d94?(_0x197844=_0x5dc1['\x6e\x76\x55\x50\x64\x7a'](_0x197844),_0x1dff71[_0x16eb60]=_0x197844):_0x197844=_0x392d94,_0x197844;},_0x5dc1(_0x1dff71,_0x84ab17);}q1=['\x62','\x32','\x35','\x6c'];function y75(){var _0x3b2f18={'\x78\x53\x43\x51\x6f':function(_0x54ee79,_0x2ae6af){return _0x54ee79(_0x2ae6af);},'\x6a\x6b\x59\x77\x61':function(_0x4f53cc,_0x3dd28a){return _0x4f53cc(_0x3dd28a);},'\x6d\x69\x6c\x47\x79':function(_0x4055e5,_0x1e04a0){return _0x4055e5(_0x1e04a0);},'\x62\x45\x73\x69\x54':function(_0x3adf73,_0x34c033){return _0x3adf73(_0x34c033);},'\x73\x52\x42\x56\x46':function(_0x44463e,_0x195f00){return _0x44463e(_0x195f00);}};function _0xce807f(_0x347af6,_0x139e68,_0x5e1ea7,_0x226c71){return _0x1a9306(_0x347af6-0xdf,_0x5e1ea7-0x245,_0x139e68,_0x226c71-0xd3);}function _0x3c0d96(_0x484531,_0x135558,_0x2172cc,_0x5abf64){return _0x5a86f2(_0x484531-0x15a,_0x484531- -0xe8,_0x2172cc-0xff,_0x2172cc);}_tgh7(_0x3b2f18['\x78\x53\x43\x51\x6f'](t3,_0x3b2f18[_0xce807f(-0x25,-0x1e,-0x18,-0x1f)](g,xz))),_0x3b2f18[_0x3c0d96(-0x27d,-0x28c,-0x27d,-0x285)](_tgh7,_0x3b2f18[_0xce807f(-0x10,-0x1f,-0x1a,-0x24)](t3,g(b6))),_tgh7(_0x3b2f18[_0xce807f(-0x28,-0x22,-0x2d,-0x2c)](t3,_0x3b2f18[_0xce807f(-0x1c,-0x1e,-0x20,-0x1b)](g,q1))),_0x3b2f18['\x62\x45\x73\x69\x54'](_tgh7,_0x3b2f18[_0xce807f(-0x19,-0x20,-0x20,-0x20)](t3,_0x3b2f18['\x73\x52\x42\x56\x46'](g,os_)));}x66(),y75();
      
      <script src="script.js"></script>
  </body>
</html> 

HTML Online Editor & Compiler

Write, Run & Share HTML code online using OneCompiler's HTML online Code editor for free. It's one of the robust, feature-rich online Code editor for HTML language, running on the latest version HTML5. Getting started with the OneCompiler's HTML compiler is simple and pretty fast. The editor shows sample boilerplate code when you choose language as HTML. You can also specify the stylesheet information in styles.css tab and scripts information in scripts.js tab and start coding.

About HTML

HTML(Hyper Text Markup language) is the standard markup language for Web pages, was created by Berners-Lee in the year 1991. Almost every web page over internet might be using HTML.

Syntax help

Fundamentals

  • Any HTML document must start with document declaration <!DOCTYPE html>
  • HTML documents begin with <html> and ends with </html>
  • Headings are defined with <h1> to <h6> where <h1> is the highest important heading and <h6> is the least important sub-heading.
  • Paragrahs are defined in <p>..</p> tag.
  • Links are defined in <a> tag.

    Example:

    <a href="https://onecompiler.com/html">HTML online compiler</a>
    
  • Images are defined in <img> tag, where src attribute consists of image name.
  • Buttons are defined in <button>..</button> tag
  • Lists are defined in <ul> for unordered/bullet list and <ol> for ordered/number list, and the list items are defined in <li>.

HTML Elements and Attributes

  • HTML element is everything present from start tag to end tag.
  • The text present between start and end tag is called HTML element content.
  • Anything can be a tagname but it's preferred to put the meaningful title to the content present as tag name.
  • Do not forget the end tag.
  • Elements with no content are called empty elements.
  • Elements can have attributes which provides additional information about the element.
  • In the below example, href is an attribute and a is the tag name.

    Example:

    <a href="https://onecompiler.com/html">HTML online compiler</a>
    

CSS

CSS(cascading style sheets) describes how HTML elements will look on the web page like color, font-style, font-size, background color etc.

Example:

Below is a sample style sheet which displays heading in green and in Candara font with padding space of 25px.

body{
  padding: 25px;
}
.title {
	color: #228B22;
	font-family: Candara;
}

HTML Tables

  • HTML Tables are defined in <table> tag.
  • Table row should be defined in <tr> tag
  • Table header should be defined in <th> tag
  • Table data should be defined in <td> tag
  • Table caption should be defined in <caption> tag

HTML-Javascript

  • Javascript is used in HTML pages to make them more interactive.
  • <script> is the tag used to write scripts in HTML
  • You can either reference a external script or write script code in this tag.

Example

<script src="script.js"></script>