HTML Online Code editor
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
- HTML documents begin with and ends with
- Headings are defined with to where is the highest important heading and is the least important sub-heading.
- Paragrahs are defined in
..
tag.
- Links are defined in tag.
Example:
- for unordered/bullet list and
for ordered/number list, and the list items are defined in
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:
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.
HTML Tables
HTML-Javascript
- Javascript is used in HTML pages to make them more interactive.
- is the tag used to write scripts in HTML
- You can either reference a external script or write script code in this tag.