CodeCompiler
F
index.html
styles.css
script.js

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 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 the internet might be using HTML.

Syntax help

Fundamentals

  • Any HTML document must start with document declaration <!DOCTYPE html>
  • HTML documents begin with <html> and end with </html>
  • Headings are defined with <h1> to <h6> where <h1> is the highest and <h6> the least important.
  • Paragraphs are defined in <p>..</p> tag.
  • Links are defined in <a> tag.
  • Images are defined in <img> tag, where src attribute consists of the image name.
  • Lists are defined in <ul> for unordered list and <ol> for ordered list; items use <li>.

Example

<a href="https://example.com">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.

body {
  padding: 25px;
}
.title {
  color: green;
  font-family: Candara;
}