(function(){var aa="function"==typeof Object.create?Object.create:function(a){var b=function(){};b.prototype=a;return new b},k;if("function"==typeof Object.setPrototypeOf)k=Object.setPrototypeOf;else{var l;a:{var ba={a:!0},ca={};try{ca.__proto__=ba;l=ca.a;break a}catch(a){}l=!1}k=l?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var da=k,ea=function(a,b){a.prototype=aa(b.prototype);a.prototype.constructor=a;if(da)da(a,b);else for(var c in b)if("prototype"!= c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.s=b.prototype};var m=this||self,fa=function(a){var b=typeof a;b="object"!=b?b:a?Array.isArray(a)?"array":b:"null";return"array"==b||"object"==b&&"number"==typeof a.length},n=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},ha=function(a,b,c){return a.call.apply(a.bind,arguments)},ia=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments, 2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}},p=function(a,b,c){p=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ha:ia;return p.apply(null,arguments)},q=function(a,b){function c(){}c.prototype=b.prototype;a.s=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.L=function(d,e,f){for(var g=Array(arguments.length-2),h=2;h<arguments.length;h++)g[h- 2]=arguments[h];return b.prototype[e].apply(d,g)}};var ja;var r=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},ka=Array.prototype.forEach?function(a,b){Array.prototype.forEach.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)e in d&&b.call(void 0,d[e], e,a)};function la(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}var t=function(){};a:for(var ma=["CLOSURE_FLAGS"],u=m,v=0;v<ma.length;v++)if(u=u[ma[v]],null==u)break a;function w(){var a=m.navigator;return a&&(a=a.userAgent)?a:""}var x=function(a){x[" "](a);return a};x[" "]=function(){};var y=-1!=w().indexOf("Gecko")&&!(-1!=w().toLowerCase().indexOf("webkit")&&-1==w().indexOf("Edge"))&&!(-1!=w().indexOf("Trident")||-1!=w().indexOf("MSIE"))&&-1==w().indexOf("Edge"), na=-1!=w().toLowerCase().indexOf("webkit")&&-1==w().indexOf("Edge");function oa(a,b){for(var c in a)b.call(void 0,a[c],c,a)}var z=function(a,b){return"string"===typeof b?a.getElementById(b):b},qa=function(a,b){oa(b,function(c,d){"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:pa.hasOwnProperty(d)?a.setAttribute(pa[d],c):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,c):a[d]=c})},pa={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan", frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},ra=function(a,b,c,d){function e(h){h&&b.appendChild("string"===typeof h?a.createTextNode(h):h)}for(;d<c.length;d++){var f=c[d];if(!fa(f)||n(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(n(f)){var g="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){g="function"==typeof f.item;break a}}g= !1}ka(g?la(f):f,e)}}},sa=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)},A=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}, B=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document},C=function(){this.h=m.document||document};C.prototype.g=function(){return z(this.h)};C.prototype.l=function(a,b,c){var d=this.h,e=arguments,f=e[1],g=sa(d,String(e[0]));f&&("string"===typeof f?g.className=f:Array.isArray(f)?g.className=f.join(" "):qa(g,f));2<e.length&&ra(d,g,e,2);return g};C.prototype.i=function(a,b){ra(B(a),a,arguments,1)};var ta=function(){this.g=0};ea(ta,t);var D=new ta;var E=function(a,b){this.type=a;this.target= b;this.defaultPrevented=!1};E.prototype.g=function(){this.defaultPrevented=!0};var ua=function(){if(!m.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{var c=function(){};m.addEventListener("test",c,b);m.removeEventListener("test",c,b)}catch(d){}return a}();var F=function(a){E.call(this,a?a.type:"");this.relatedTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.keyCode= 0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.h=null;if(a){var b=this.type=a.type,c=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;var d=a.relatedTarget;if(d){if(y){a:{try{x(d.nodeName);var e=!0;break a}catch(f){}e=!1}e||(d=null)}}else"mouseover"==b?d=a.fromElement:"mouseout"==b&&(d=a.toElement);this.relatedTarget=d;c?(this.clientX=void 0!==c.clientX?c.clientX:c.pageX,this.clientY= void 0!==c.clientY?c.clientY:c.pageY,this.screenX=c.screenX||0,this.screenY=c.screenY||0):(this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:va[a.pointerType]|| "";this.state=a.state;this.h=a;a.defaultPrevented&&F.s.g.call(this)}};q(F,E);var va={2:"touch",3:"pen",4:"mouse"};F.prototype.g=function(){F.s.g.call(this);var a=this.h;a.preventDefault?a.preventDefault():a.returnValue=!1};var G="closure_listenable_"+(1E6*Math.random()|0);var wa=0;var xa=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.h=e;this.key=++wa;this.g=this.u=!1},H=function(a){a.g=!0;a.listener=null;a.proxy=null;a.src=null;a.h=null};var I=function(a){this.src= a;this.g={};this.h=0};I.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.g[f];a||(a=this.g[f]=[],this.h++);var g=J(a,b,d,e);-1<g?(b=a[g],c||(b.u=!1)):(b=new xa(b,this.src,f,!!d,e),b.u=c,a.push(b));return b};var ya=function(a,b){var c=b.type;if(c in a.g){var d=a.g[c],e=r(d,b),f;(f=0<=e)&&Array.prototype.splice.call(d,e,1);f&&(H(b),0==a.g[c].length&&(delete a.g[c],a.h--))}},J=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.g&&f.listener==b&&f.capture==!!c&&f.h==d)return e}return-1}; var K="closure_lm_"+(1E6*Math.random()|0),L={},za=0,M=function(a,b,c,d,e){if(d&&d.once)return Aa(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)M(a,b[f],c,d,e);return null}c=N(c);return a&&a[G]?a.m.add(String(b),c,!1,n(d)?!!d.capture:!!d,e):Ba(a,b,c,!1,d,e)},Ba=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=n(e)?!!e.capture:!!e,h=O(a);h||(a[K]=h=new I(a));c=h.add(b,c,d,g,f);if(c.proxy)return c;d=Ca();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)ua||(e=g),void 0=== e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Da(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");za++;return c},Ca=function(){var a=Ea,b=function(c){return a.call(b.src,b.listener,c)};return b},Aa=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)Aa(a,b[f],c,d,e);return null}c=N(c);return a&&a[G]?a.m.add(String(b),c,!0,n(d)?!!d.capture:!!d,e):Ba(a, b,c,!0,d,e)},Fa=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Fa(a,b[f],c,d,e);else(d=n(d)?!!d.capture:!!d,c=N(c),a&&a[G])?(a=a.m,b=String(b).toString(),b in a.g&&(f=a.g[b],c=J(f,c,d,e),-1<c&&(H(f[c]),Array.prototype.splice.call(f,c,1),0==f.length&&(delete a.g[b],a.h--)))):a&&(a=O(a))&&(b=a.g[b.toString()],a=-1,b&&(a=J(b,c,d,e)),(c=-1<a?b[a]:null)&&Ga(c))},Ga=function(a){if("number"!==typeof a&&a&&!a.g){var b=a.src;if(b&&b[G])ya(b.m,a);else{var c=a.type,d=a.proxy;b.removeEventListener? b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Da(c),d):b.addListener&&b.removeListener&&b.removeListener(d);za--;(c=O(b))?(ya(c,a),0==c.h&&(c.src=null,b[K]=null)):H(a)}}},Da=function(a){return a in L?L[a]:L[a]="on"+a},Ea=function(a,b){if(a.g)a=!0;else{b=new F(b,this);var c=a.listener,d=a.h||a.src;a.u&&Ga(a);a=c.call(d,b)}return a},O=function(a){a=a[K];return a instanceof I?a:null},Ha="__closure_events_fn_"+(1E9*Math.random()>>>0),N=function(a){if("function"===typeof a)return a; a[Ha]||(a[Ha]=function(b){return a.handleEvent(b)});return a[Ha]};var P=function(){this.m=new I(this)};q(P,t);P.prototype[G]=!0;P.prototype.removeEventListener=function(a,b,c,d){Fa(this,a,b,c,d)};var Q=function(a,b,c){this.h=a;this.j=b||0;this.i=c;this.l=p(this.m,this)};q(Q,t);Q.prototype.g=0;Q.prototype.start=function(a){this.isActive()&&m.clearTimeout(this.g);this.g=0;var b=this.l;a=void 0!==a?a:this.j;if("function"!==typeof b)if(b&&"function"==typeof b.handleEvent)b=p(b.handleEvent,b);else throw Error("Invalid listener argument"); this.g=2147483647<Number(a)?-1:m.setTimeout(b,a||0)};Q.prototype.isActive=function(){return 0!=this.g};Q.prototype.m=function(){this.g=0;this.h&&this.h.call(this.i)};var Ia=function(){};var Ja=function(){};var R=function(a){this.g=a};q(R,Ja);var Ka=function(a){var b=B(a).createRange();if(3==a.nodeType)b.setStart(a,0),b.setEnd(a,a.length);else if(A(a)||3==a.nodeType){for(var c,d=a;(c=d.firstChild)&&(A(c)||3==c.nodeType);)d=c;b.setStart(d,0);for(d=a;(c=d.lastChild)&&(A(c)||3==c.nodeType);)d=c;b.setEnd(d, 1==d.nodeType?d.childNodes.length:d.length)}else c=a.parentNode,a=Array.prototype.indexOf.call(c.childNodes,a),b.setStart(c,a),b.setEnd(c,a+1);return b},La=function(a,b,c,d){var e=B(a).createRange();e.setStart(a,b);e.setEnd(c,d);return e};R.prototype.h=function(a){a.removeAllRanges();a.addRange(this.g)};var S=function(a){this.g=a};q(S,R);S.prototype.h=function(a,b){!b||this.g.collapsed?S.s.h.call(this,a,b):(a.collapse(this.g.endContainer,this.g.endOffset),a.extend(this.g.startContainer,this.g.startOffset))}; var T=function(a){this.g=a};q(T,R);T.prototype.h=function(a,b){b?a.setBaseAndExtent(this.g.endContainer,this.g.endOffset,this.g.startContainer,this.g.startOffset):a.setBaseAndExtent(this.g.startContainer,this.g.startOffset,this.g.endContainer,this.g.endOffset)};var Ma=function(){this.h=this.l=this.i=this.j=this.g=null;this.m=!1};q(Ma,Ia);var U=function(a){var b;if(!(b=a.g)){b=a.j||(a.j=U(a).g.startContainer);var c=null!=a.i?a.i:a.i=U(a).g.startOffset,d=a.l||(a.l=U(a).g.endContainer),e=null!=a.h?a.h: a.h=U(a).g.endOffset;b=na?new T(La(b,c,d,e)):y?new S(La(b,c,d,e)):new R(La(b,c,d,e));b=a.g=b}return b};var Na=function(a){this.g=a;this.h={}};q(Na,t);var Oa=[],Pa=function(a,b,c,d){Array.isArray(c)||(c&&(Oa[0]=c.toString()),c=Oa);for(var e=0;e<c.length;e++){var f=M(b,c[e],d||a.handleEvent,!1,a.g||a);if(!f)break;a.h[f.key]=f}};Na.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var V=function(a,b){a.style.display=b?"":"none"};var W=function(){};W.g=void 0; W.h=function(){W.g||(W.g=new W)};var X=function(a){P.call(this);a||(a=ja||(ja=new C));this.l=a;this.C=!1;this.i=null;this.v=void 0};q(X,P);W.h();X.prototype.g=function(){return this.i};var Qa=function(a){a.v||(a.v=new Na(a));return a.v};X.prototype.D=function(){this.i=sa(this.l.h,"DIV")};var Ra;var Sa=function(a,b,c){Array.isArray(c)&&(c=c.join(" "));var d="aria-"+b;""===c||void 0==c?(Ra||(c={},Ra=(c.atomic=!1,c.autocomplete="none",c.dropeffect="none",c.haspopup=!1,c.live="off",c.multiline=!1,c.multiselectable= !1,c.orientation="vertical",c.readonly=!1,c.relevant="additions text",c.required=!1,c.sort="none",c.busy=!1,c.disabled=!1,c.hidden=!1,c.invalid="false",c)),c=Ra,b in c?a.setAttribute(d,c[b]):a.removeAttribute(d)):a.setAttribute(d,c)};var Ta=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""},Ua=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)},Va=function(a,b){a.classList?b=a.classList.contains(b): (a=a.classList?a.classList:Ta(a).match(/\S+/g)||[],b=0<=r(a,b));return b},Wa=function(a,b){if(a.classList)a.classList.add(b);else if(!Va(a,b)){var c=Ta(a);Ua(a,c+(0<c.length?" "+b:b))}},Xa=function(a,b){a.classList?a.classList.remove(b):Va(a,b)&&Ua(a,Array.prototype.filter.call(a.classList?a.classList:Ta(a).match(/\S+/g)||[],function(c){return c!=b}).join(" "))};var Y=function(a,b){X.call(this,b);this.h=a};q(Y,X);Y.prototype.o="info";Y.prototype.j=!1;var Ya={info:"jfk-butterBar-info",error:"jfk-butterBar-error", warning:"jfk-butterBar-warning",promo:"jfk-butterBar-promo"},Za=function(a,b){if(a.i){var c=a.g(),d=Ya[b];Xa(c,Ya[a.o]);Wa(c,d)}a.o=b};Y.prototype.isVisible=function(){var a=this.g();return null!=a&&Va(a,"jfk-butterBar-shown")};Y.prototype.D=function(){this.i=this.l.l("DIV","jfk-butterBar");var a=this.g();a&&(Sa(a,"live","assertive"),Sa(a,"atomic","true"));this.h=this.h;if(a=this.g()){for(var b=this.l,c;c=a.firstChild;)a.removeChild(c);b.i(a,this.h)}this.j=this.j;(a=this.g())&&(this.j?Wa(a,"jfk-butterBar-mini"): Xa(a,"jfk-butterBar-mini"));Za(this,this.o)};var Z=function(a){var b;X.call(this,a);this.j=z(document,"copy-header-body-button");this.h=z(document,"raw_message_text");this.A=z(document,"copy-success");this.F=z(document,"copy-error");z(document,"bottom-area");a=new Y(z(document,"status-messages"));var c=z(document,"butterbar-wrap");if(a.C)throw Error("Component already rendered");a.i||a.D();c?c.insertBefore(a.i,null):a.l.h.body.appendChild(a.i);a.C=!0;Za(a,"info");this.o=a;this.J=new Q(this.K,1E4, this);a=document;if(a.getElementsByClassName)a=a.getElementsByClassName("raw_message")[0];else if(a=document,a.querySelectorAll&&a.querySelector)a=a.querySelector(".raw_message");else{if(a.querySelectorAll&&a.querySelector)a=a.querySelectorAll(".raw_message");else if(a.getElementsByClassName){var d=a.getElementsByClassName("raw_message");a=d}else{d=a.getElementsByTagName("*");var e={};for(c=b=0;a=d[c];c++){var f=a.className,g;if(g="function"==typeof f.split)g=0<=r(f.split(/\s+/),"raw_message");g&& (e[b++]=a)}e.length=b;a=e}a=a[0]||null}this.H=a||null;this.G=this.h.getAttribute("class")};ea(Z,X);Z.prototype.B=function(){var a=!1;this.h.removeAttribute("class");var b=this.h;b&&b.parentNode&&b.parentNode.removeChild(b);document.body.appendChild(this.h);try{var c=this.h;var d=na?new T(Ka(c)):y?new S(Ka(c)):new R(Ka(c));var e=new Ma;e.g=d;e.m=!1;var f=U(e),g=B(f.g.startContainer);f.h((g?g.parentWindow||g.defaultView:window).getSelection(),e.m);a=document.execCommand("copy")}catch(h){if(3<=D.g)throw Error("Recursive loop detected while trying to report exception. Message: null"); D.g++;D.g--}finally{(b=this.h)&&b.parentNode&&b.parentNode.removeChild(b),this.H.appendChild(this.h),this.h.setAttribute("class",this.G)}b=this.o.g();Wa(b,"jfk-butterBar-shown");this.J.start(1E4);a?(V(this.A,!0),V(this.F,!1)):(V(this.A,!1),V(this.F,!0))};Z.prototype.K=function(){var a=this.o.g();Xa(a,"jfk-butterBar-shown")};Z.prototype.I=function(a){13==a.keyCode&&this.B()};M(window,"load",function(){var a=new Z;if(document.queryCommandSupported("copy")){V(a.j,!0);var b=Qa(a),c=a.j,d=p(a.B,a);Pa(b, c,"click",d);b=Qa(a);c=a.j;a=p(a.I,a);Pa(b,c,"keypress",a)}})}).call(this);
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.
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.
<!DOCTYPE html>
<html>
and ends with </html>
<h1>
to <h6>
where <h1>
is the highest important heading and <h6>
is the least important sub-heading.<p>..</p>
tag.<a>
tag.
<a href="https://onecompiler.com/html">HTML online compiler</a>
<img>
tag, where src
attribute consists of image name.<button>..</button>
tag<ul>
for unordered/bullet list and <ol>
for ordered/number list, and the list items are defined in <li>
.<a href="https://onecompiler.com/html">HTML online compiler</a>
CSS(cascading style sheets) describes how HTML elements will look on the web page like color, font-style, font-size, background color etc.
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;
}
<table>
tag.<tr>
tag<th>
tag<td>
tag<caption>
tag<script>
is the tag used to write scripts in HTML<script src="script.js"></script>