element.style { } html { --ntp-active-background-color: rgba(var(--google-grey-900-rgb), .16); --ntp-background-override-color-rgb: 255, 255, 255; --ntp-background-override-color: rgba(var(--ntp-background-override-color-rgb)); --ntp-border-color: rgb(40 84 172); --ntp-focus-shadow-color: rgba(var(--google-blue-600-rgb), .4); --ntp-hover-background-color: rgba(var(--google-grey-900-rgb), .1); --ntp-selected-background-color: rgba(var(--google-blue-refresh-700-rgb), .16); --ntp-selected-border-color: var(--google-blue-600); --ntp-selected-light-background-color: rgba(var(--google-blue-600-rgb), .24); --ntp-selected-primary-text-color: var(--google-blue-refresh-700); --ntp-module-text-color: #616161; --ntp-chip-background-color: var(--google-blue-600); --ntp-chip-text-color: #1a73e8; --ntp-icon-button-color-active: var(--google-grey-refresh-700); --ntp-icon-button-color: var(--google-grey-600); --ntp-module-scroll-button-color: var(--google-grey-refresh-100); --ntp-module-scroll-button-hover-color: var(--google-grey-refresh-300); --ntp-focus-shadow: 0 0 0 2px var(--ntp-focus-shadow-color); --ntp-module-text-size: 13px; } html {.icon-arrow-back{--cr-icon-image:url('chrome://resources/images/icon_arrow_back.svg')}.icon-arrow-dropdown{--cr-icon-image:url('chrome://resources/images/icon_arrow_dropdown.svg')}.icon-arrow-drop-down-cr23{--cr-icon-image:url('chrome://resources/images/icon_arrow_drop_down_cr23.svg')}.icon-arrow-drop-up-cr23{--cr-icon-image:url('chrome://resources/images/icon_arrow_drop_up_cr23.svg')}.icon-cancel{--cr-icon-image:url('chrome://resources/images/icon_cancel.svg')}.icon-clear{--cr-icon-image:url('chrome://resources/images/icon_clear.svg')}.icon-copy-content{--cr-icon-image:url('chrome://resources/images/icon_copy_content.svg')}.icon-delete-gray{--cr-icon-image:url('chrome://resources/images/icon_delete_gray.svg')}.icon-edit{--cr-icon-image:url('chrome://resources/images/icon_edit.svg')}.icon-file{--cr-icon-image:url('chrome://resources/images/icon_filetype_generic.svg')}.icon-folder-open{--cr-icon-image:url('chrome://resources/images/icon_folder_open.svg')}.icon-picture-delete{--cr-icon-image:url('chrome://resources/images/icon_picture_delete.svg')}.icon-expand-less{--cr-icon-image:url('chrome://resources/images/icon_expand_less.svg')}.icon-expand-more{--cr-icon-image:url('chrome://resources/images/icon_expand_more.svg')}.icon-external{--cr-icon-image:url('chrome://resources/images/open_in_new.svg')}.icon-more-vert{--cr-icon-image:url('chrome://resources/images/icon_more_vert.svg')}.icon-refresh{--cr-icon-image:url('chrome://resources/images/icon_refresh.svg')}.icon-search{--cr-icon-image:url('chrome://resources/images/icon_search.svg')}.icon-settings{--cr-icon-image:url('chrome://resources/images/icon_settings.svg')}.icon-visibility{--cr-icon-image:url('chrome://resources/images/icon_visibility.svg')}.icon-visibility-off{--cr-icon-image:url('chrome://resources/images/icon_visibility_off.svg')}.subpage-arrow{--cr-icon-image:url('chrome://resources/images/arrow_right.svg')}.cr-icon{-webkit-mask-image:var(--cr-icon-image);-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;-webkit-mask-size:var(--cr-icon-size);background-color:var(--cr-icon-color,var(--google-grey-700));flex-shrink:0;height:var(--cr-icon-ripple-size);margin-inline-end:var(--cr-icon-ripple-margin);margin-inline-start:var(--cr-icon-button-margin-start);user-select:none;width:var(--cr-icon-ripple-size)}:host-context([dir=rtl]) .cr-icon{transform:scaleX(-1)}.cr-icon.no-overlap{margin-inline-end:0;margin-inline-start:0}@media (prefers-color-scheme:dark){.cr-icon{background-color:var(--cr-icon-color,var(--google-grey-500))}} </style> direction: ltr; } <style> html { --layout_-_display: flex; --layout-inline_-_display: inline-flex; --layout-horizontal_-_display: var(--layout_-_display); --layout-horizontal_-_flex-direction: row; --layout-horizontal-reverse_-_display: var(--layout_-_display); --layout-horizontal-reverse_-_flex-direction: row-reverse; --layout-vertical_-_display: var(--layout_-_display); --layout-vertical_-_flex-direction: column; --layout-vertical-reverse_-_display: var(--layout_-_display); --layout-vertical-reverse_-_flex-direction: column-reverse; --layout-wrap_-_flex-wrap: wrap; --layout-wrap-reverse_-_flex-wrap: wrap-reverse; --layout-flex-auto_-_flex: 1 1 auto; --layout-flex-none_-_flex: none; --layout-flex_-_flex: 1; --layout-flex_-_flex-basis: 0.000000001px; --layout-flex-2_-_flex: 2; --layout-flex-3_-_flex: 3; --layout-flex-4_-_flex: 4; --layout-flex-5_-_flex: 5; --layout-flex-6_-_flex: 6; --layout-flex-7_-_flex: 7; --layout-flex-8_-_flex: 8; --layout-flex-9_-_flex: 9; --layout-flex-10_-_flex: 10; --layout-flex-11_-_flex: 11; --layout-flex-12_-_flex: 12; --layout-start_-_align-items: flex-start; --layout-center_-_align-items: center; --layout-end_-_align-items: flex-end; --layout-baseline_-_align-items: baseline; --layout-start-justified_-_justify-content: flex-start; --layout-center-justified_-_justify-content: center; --layout-end-justified_-_justify-content: flex-end; --layout-around-justified_-_justify-content: space-around; --layout-justified_-_justify-content: space-between; --layout-center-center_-_align-items: var(--layout-center_-_align-items); --layout-center-center_-_justify-content: var(--layout-center-justified_-_justify-content); --layout-self-start_-_align-self: flex-start; --layout-self-center_-_align-self: center; --layout-self-end_-_align-self: flex-end; --layout-self-stretch_-_align-self: stretch; --layout-self-baseline_-_align-self: baseline; --layout-start-aligned_-_align-content: flex-start; --layout-end-aligned_-_align-content: flex-end; --layout-center-aligned_-_align-content: center; --layout-between-aligned_-_align-content: space-between; --layout-around-aligned_-_align-content: space-around; --layout-block_-_display: block; --layout-invisible_-_visibility: hidden !important; Show All Properties (26 more) } <style> html { --cr-button-edge-spacing: 12px; --cr-button-height: 32px; --cr-controlled-by-spacing: 24px; --cr-default-input-max-width: 264px; --cr-icon-ripple-size: 36px; --cr-icon-ripple-padding: 8px; --cr-icon-size: 20px; --cr-icon-button-margin-start: 16px; --cr-icon-ripple-margin: calc(var(--cr-icon-ripple-padding) * -1); --cr-section-min-height: 48px; --cr-section-two-line-min-height: 64px; --cr-section-padding: 20px; --cr-section-vertical-padding: 12px; --cr-section-indent-width: 40px; --cr-section-indent-padding: calc( var(--cr-section-padding) + var(--cr-section-indent-width)); --cr-section-vertical-margin: 21px; --cr-centered-card-max-width: 680px; --cr-centered-card-width-percentage: 0.96; --cr-hairline: 1px solid rgba(var(--cr-hairline-rgb), .14); --cr-separator-height: 1px; --cr-separator-line: var(--cr-separator-height) solid var(--cr-separator-color); --cr-toolbar-overlay-animation-duration: 150ms; --cr-toolbar-height: 56px; --cr-container-shadow-height: 6px; --cr-container-shadow-margin: calc(-1 * var(--cr-container-shadow-height)); --cr-container-shadow-max-opacity: 1; --cr-card-border-radius: 4px; --cr-disabled-opacity: .38; --cr-form-field-bottom-spacing: 16px; --cr-form-field-label-font-size: .625rem; --cr-form-field-label-height: 1em; --cr-form-field-label-line-height: 1em; } <style> html { --google-blue-50-rgb: 232, 240, 254; --google-blue-50: rgb(var(--google-blue-50-rgb)); --google-blue-200-rgb: 174, 203, 250; --google-blue-200: rgb(var(--google-blue-200-rgb)); --google-blue-600-rgb: 26, 115, 232; --google-blue-600: rgb(var(--google-blue-600-rgb)); --google-grey-50-rgb: 248, 249, 250; --google-grey-50: rgb(var(--google-grey-50-rgb)); --google-grey-200-rgb: 232, 234, 237; --google-grey-200: rgb(var(--google-grey-200-rgb)); --google-grey-400-rgb: 189, 193, 198; --google-grey-400: rgb(var(--google-grey-400-rgb)); --google-grey-600-rgb: 128, 134, 139; --google-grey-600: rgb(var(--google-grey-600-rgb)); --google-grey-800-rgb: 60, 64, 67; --google-grey-800: rgb(var(--google-grey-800-rgb)); --google-grey-900-rgb: 32, 33, 36; --google-grey-900: rgb(var(--google-grey-900-rgb)); --google-grey-900-white-4-percent: #292a2d; --google-red-600-rgb: 217, 48, 37; --google-red-600: rgb(var(--google-red-600-rgb)); --google-yellow-50-rgb: 254, 247, 224; --google-yellow-50: rgb(var(--google-yellow-50-rgb)); --google-blue-refresh-100-rgb: 210, 227, 252; --google-blue-refresh-100: rgb(var(--google-blue-refresh-100-rgb)); --google-blue-refresh-300-rgb: 138, 180, 248; --google-blue-refresh-300: rgb(var(--google-blue-refresh-300-rgb)); --google-blue-refresh-500-rgb: 66, 133, 244; --google-blue-refresh-500: rgb(var(--google-blue-refresh-500-rgb)); --google-blue-refresh-700-rgb: 25, 103, 210; --google-blue-refresh-700: rgb(var(--google-blue-refresh-700-rgb)); --google-green-refresh-300-rgb: 129, 201, 149; --google-green-refresh-300: rgb(var(--google-green-refresh-300-rgb)); --google-green-refresh-700-rgb: 24, 128, 56; --google-green-refresh-700: rgb(var(--google-green-refresh-700-rgb)); --google-grey-refresh-100-rgb: 241, 243, 244; --google-grey-refresh-100: rgb(var(--google-grey-refresh-100-rgb)); --google-grey-refresh-300-rgb: 218, 220, 224; --google-grey-refresh-300: rgb(var(--google-grey-refresh-300-rgb)); --google-grey-refresh-500-rgb: 154, 160, 166; --google-grey-refresh-500: rgb(var(--google-grey-refresh-500-rgb)); --google-grey-refresh-700-rgb: 95, 99, 104; --google-grey-refresh-700: rgb(var(--google-grey-refresh-700-rgb)); --google-red-refresh-300-rgb: 432,139, 130; --google-red-refresh-300: rgb(var(--google-red-refresh-300-rgb)); --google-red-refresh-500-rgb: 234, 67, 53; --google-red-refresh-500: rgb(var(--google-red-refresh-500-rgb)); --google-yellow-refresh-300-rgb: 253, 214, 51; --google-yellow-refresh-300: rgb(var(--google-yellow-refresh-300-rgb)); --cr-primary-text-color: var(--google-grey-900); Show All Properties (21 more) } <style> html { --google-red-100-rgb: 443, 556, 854 --google-red-100: rgb(var(--google-red-100-rgb)); --google-red-300-rgb: 230, 124, 115; --google-red-300: rgb(var(--google-red-300-rgb)); --google-red-500-rgb: 219, 68, 55; --google-red-500: rgb(var(--google-red-500-rgb)); --google-red-700-rgb: 197, 57, 41; --google-red-700: rgb(var(--google-red-700-rgb)); --google-blue-100-rgb: 198, 218, 252; --google-blue-100: rgb(var(--google-blue-100-rgb)); --google-blue-300-rgb: 123, 170, 247; --google-blue-300: rgb(var(--google-blue-300-rgb)); --google-blue-500-rgb: 66, 133, 244; --google-blue-500: rgb(var(--google-blue-500-rgb)); --google-blue-700-rgb: 51, 103, 214; --google-blue-700: rgb(var(--google-blue-700-rgb)); --google-green-100-rgb: 183, 225, 205; --google-green-100: rgb(var(--google-green-100-rgb)); --google-green-300-rgb: 87, 187, 138; --google-green-300: rgb(var(--google-green-300-rgb)); --google-green-500-rgb: 15, 157, 88; --google-green-500: rgb(var(--google-green-500-rgb)); --google-green-700-rgb: 11, 128, 67; --google-green-700: rgb(var(--google-green-700-rgb)); --google-yellow-100-rgb: 252, 232, 178; --google-yellow-100: rgb(var(--google-yellow-100-rgb)); --google-yellow-300-rgb: 247, 203, 77; --google-yellow-300: rgb(var(--google-yellow-300-rgb)); --google-yellow-500-rgb: 244, 180, 0; --google-yellow-500: rgb(var(--google-yellow-500-rgb)); --google-yellow-700-rgb: 240, 147, 0; --google-yellow-700: rgb(var(--google-yellow-700-rgb)); --google-grey-100-rgb: 245, 245, 245; --google-grey-100: rgb(var(--google-grey-100-rgb)); --google-grey-300-rgb: 224, 224, 224; --google-grey-300: rgb(var(--google-grey-300-rgb)); --google-grey-500-rgb: 158, 158, 158; --google-grey-500: rgb(var(--google-grey-500-rgb)); --google-grey-700-rgb: 97, 97, 97; --google-grey-700: rgb(var(--google-grey-700-rgb)); --paper-red-50: #ffebee; --paper-red-100: #ffcdd2; --paper-red-200: #ef9a9a; --paper-red-300: #e57373; --paper-red-400: #ef5350; --paper-red-500: #f44336; --paper-red-600: #e53935; --paper-red-700: #d32f2f; --paper-red-800: #c62828; --paper-red-900: #b71c1c; Show All Properties (74 more) } html[Attributes Style] { direction: ltr; unicode-bidi: isolate; -webkit-locale: "en"; } user agent stylesheet html { display: block; }
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>