
Canvas

CSS3

QUICK ADD
EXTERNAL
Tag | Description | Example | Result |
---|---|---|---|
<abbr> | To create an abbreviation |
The <abbr title="History of the Web">HOTW</abbr>
|
The HOTW |
<acronym> | To create an acronym |
The <acronym title="History of the Web">HOTW</acronym>
|
The HOTW |
<applet> | To insert an applet | - | - |
<bdo> | To specify the direction of text display |
<bdo dir="rtl">bdo</bdo>
|
bdo |
<button> | To create a button |
<button type="button" onclick="alert('Hello world!')">Button</button>
|
|
<del> | To specify deleted text |
<del>delete</del>
<ins>insert</ins>
|
|
<fieldset> | To create a fieldset |
<form>
|
|
<frame> | To create a frame | - | - |
<frameset> | To create a set of frames | - | - |
<iframe> | To create a set of frames |
<iframe src="http://54.213.200.197/"></iframe>
|
|
<ins> | To specify inserted text |
<del>delete</del>
<ins>insert</ins>
|
|
<label> | To create a label for an <input> element |
<form>
|
|
<legend> | To specify a legend in a fieldset |
<form>
|
|
<noframes> | To specify a no frame section | - | - |
<noscript> | To define alternative content for users that have disables scripts in their browser |
<noscript>Your browser does not support JavaScript!</noscript>
|
|
<object> | To define an embedded object | - | - |
<optgroup> | To group related options in a dropdown list |
<select>
|
|
<param> | To transfer a parameter to an applet | - | - |
<q> | To define a short quotation |
Here is a <q>quotation</q>
|
Here is a quotation |
<s> | To specify strikethrough text |
<s>strikethrough</s>
|
|
<span> | To specify a section in a document |
<span>span</span>
|
span |
Tag | Description | Example | Result |
---|---|---|---|
<basefont> | To change the default font size throughout the entire page | - | - |
<big> | To make text bigger than the surrounding area |
<big>big</big>
|
big |
<center> | To centre text, images and other elements |
<center>center</center>
|
|
<div> | To divide a page into logical sections |
<div>div</div>
|
div
|
<font> | To change the size, face and colour of individual letters or words |
<font size="3" color="red">font</font>
|
font |
<script> | To create an in-line script |
<p id="script"></p>
|
|
<small> | To make text smaller than the surrounding text |
<small>small</small>
|
small |
<style> | To set up style information | - | - |
<sub> | To create a subscript |
<sub>subscript</sub>
|
subscript |
<sup> | To create a superscript |
<sup>superscript</sup>
|
superscript |
Tag | Description | Example | Result | ||||||
---|---|---|---|---|---|---|---|---|---|
<area> | To specify the coordinates of an image map |
<map name="planets">
|
|||||||
<b> | To display text in boldface | <b>bold</b> |
bold | ||||||
<blockquote> | To indicate that a block of text is a quotation | <blockquote>blockquote</blockquote> |
blockquote |
||||||
<body> | To enclosed the main section of a web page | - | - | ||||||
<br> | To create a line break | <br> |
|
||||||
<caption> | To create a caption for a table |
<table>
|
|
||||||
<cite> | To indicate that the text is a short citation | <cite>cite</cite> |
cite | ||||||
<code> | To indicate text is a computer code | <code>Code</code> | Code |
||||||
<col> | To create a column in a table |
<table>
|
|
||||||
<colgroup> | To create a group of columns in a table |
<table>
|
|
||||||
<dfn> | To represent the defining instance of a term |
This is a <dfn>dfn</dfn>
|
This is a dfn | ||||||
<em> | To emphasize text, usually in italics |
<em>em</em>
|
em | ||||||
<form> | To create an input form |
<form>
|
|||||||
<head> | To create the head section of the web page | - | - | ||||||
<hr> | To create a horizontal line | <hr> |
|
||||||
<html> | To identify the document as an HTML document | - | - | ||||||
<i> | To display text in italics |
<i>i</i>
|
i | ||||||
<img> | To place an image on the web page |
<img src='/img/logo-standard.png' alt='img'/>
|
![]() |
||||||
<input> | To create a form element such as an input field, button, etc. |
<form>
|
|||||||
<kbd> | To indicate text from a keyboard |
<kbd>kbd</kbd>
|
kbd | ||||||
<link> | To define relationships between documents and to link to an external style sheet | - | - | ||||||
<map> | To create a client-side image map |
<map name="planets">
|
|||||||
<meta> | To create an automatic page jump plus also used for document information |
<meta name="description" content="History of the Web">
|
|||||||
<ol> | To create an ordered list |
<ol>
|
|
||||||
<option> | To create individual options in a form menu |
<select>
|
|||||||
<pre> | To create preformatted text |
<pre>Text remains formatted
|
Text remains formatted in a pre tag |
||||||
<samp> | To display sample text that should be used literally |
<samp>samp</samp>
|
samp | ||||||
<select> | To create a menu in a form |
<select>
|
|||||||
<strong> | To strongly emphasize text, usually in boldface |
<strong>strong</strong>
|
strong | ||||||
<strike> | To display text with a line through it (same as <S>) | <strike>strike</strike> |
|
||||||
<table> | To create a table |
<table>
|
|
||||||
<td> | To create a regular cell in a table |
<table>
|
|
||||||
<th> | To create a header cell in a table |
<table>
|
|
||||||
<tr> | To create a new row in a table |
<table>
|
|
||||||
<tbody> | To create a table body |
<table>
|
|
||||||
<tfoot> | To create a table footer |
|
|||||||
<thead> | To create a table header |
<table>
|
|
||||||
<textarea> | To create a block area for text input in a form | <textarea></textarea> |
|||||||
<tt> | To display text in a monospaced teletype font |
<tt>tt</tt>
|
tt | ||||||
<var> | To indicate that the text is a variable |
<var>var</var>
|
var | ||||||
<u> | To place a line underneath text |
<u>u</u>
|
u |
Tag | Description | Example | Result |
---|---|---|---|
<listing> | To display preformatted text 132 characters | - | - |
<plaintext> | To render everything following the start tag as raw text | - | - |
Tag | Description | Example | Result |
---|---|---|---|
<a> | To create a link or anchor | <a href='http://info.cern.ch'>info</a> |
info |
<address> | To indicate address information |
<address>
|
Newcastle upon Tyne, Tyne and Wear, NE1 7RU |
<base> | To specify the URL of the document used to generate any relative URLs | - | - |
<dd> | To indicate a definition description in a definition list |
<dl>
|
|
<dir> | To create a directory list |
<dir>
|
|
<dl> | To create a definition list |
<dl>
|
|
<dt> | To indicate a term to be defined in the definition list |
<dl>
|
|
<h1> | To create a level 1 header | <h1>Header 1</h1> |
Header 1 |
<h2> | To create a level 2 header | <h2>Header 2</h2> |
Header 2 |
<h3> | To create a level 3 header | <h3>Header 3</h3> |
Header 3 |
<h4> | To create a level 4 header | <h4>Header 4</h4> |
Header 4 |
<h5> | To create a level 5 header | <h5>Header 5</h5> |
Header 5 |
<h6> | To create a level 6 header | <h6>Header 6</h6> |
Header 6 |
<isindex> | To create a primitive search | - | - |
<li> | To create a list item |
<ul>
|
|
<listing> | To display preformatted text 132 characters | - | - |
<menu> | To create a menu item list |
<menu type="context" id="menu">
|
|
<p> | To create a new paragraph |
<p>p</p>
|
p |
<plaintext> | To render everything following the start tag as raw text | - | - |
<title> | To create the document title | - | - |
<ul> | To create an unordered list |
<ul>
|
|
Property | Description | Example | Result |
---|---|---|---|
orphans | To specify the minimum number of lines to be displayed at the bottom of the page | p { orphans: 3 } |
orphans |
widows | To specify the number of lines to be displayed at the top of the page | p { widows: 3 } |
widows |
Property | Description | Example | Result |
---|---|---|---|
@media | To specify how a document is to be presented on different media: screen, print etc | @media print { |
|
@import | To import style rules from other style sheets | @media print { |
Property | Description | Example | Result |
---|---|---|---|
* | To match with any element | * { color: #fff } |
|
x > y | To select any y element that is a child of an x element | li > ul { list-style-type: none } |
|
x + y | To select any y element that immediately follows an x element | p + p { font-size: smaller } |
Property | Description | Example | Result |
---|---|---|---|
x:first-child | To select every x that is the first child of its parent | p:first-child { background-color: blue } |
|
x:link | To select unvisited links | a:link { color: blue } |
|
x:visited | To select visited links | a:visited { color: blue } |
|
x:hover | To style when mouse over element | a:hover { color: #FF00FF } |
|
x:active | To select selected links | a:active { color: #0000FF } |
|
x:focus | To style when field is focused | input:focus { background-color: yellow } |
|
x:lang(y) | To select the x element that uses the language y | p:lang(en) { font-weight: bold } |
|
x:before | To place generated content before an element used with the content property | #test:before { |
|
x:after | To place genereated content after an element used with the content property | #test:after { |
|
x:first-line | To select the first line of text in the x element | h2+p:first-line { color: red } |
|
x:first-letter | To select the first letter in the x element | h1:first-letter { text-transform: lowercase } |
Property | Description | Example | Result |
---|---|---|---|
font-size-adjust | To adjust the size of a font | p { font-size-adjust: 0.2 } |
font-size-adjust |
font-stretch | To specify the stretch of a font | p { font-stretch: wider } |
font-stretch |
text-shadow | To specify the shadow of text | p { text-shadow: 1px 1px #4285F4 } |
text-shadow |
Property | Description | Example | Result |
---|---|---|---|
outline | To specify the outline of an element | p { outline: #4285F4 dotted thick } |
outline |
overflow | To specify the overflow property of an element | p { overflow: hidden; height: 20px; } |
overflow |
visibility | To specify the visibility of an element | div { visibility: hidden } |
visibility |
Property | Description | Example | Result |
---|---|---|---|
direction | To specify the direction of text | p { direction: rtl } |
direction |
max-height | To specify the max-height of an element | p { max-height: 5px } |
max-height |
min-height | To specify the min-height of an element | p { min-height: 50px } |
min-height |
max-width | To specify the max-width of an element | p { max-width: 20px } |
max-width |
min-width | To specify the min-width of an element | p { min-width: 20px } |
min-width |
position | To specify the position of text | p { position: absolute; } |
position |
unicode-bidi | To override text | p { direction: rtl; unicode-bidi: bidi-override; } |
unicode-bidi |
z-index | To specify the stack order of an element | img { position: absolute; z-index: 0; } |
![]() z-index |
Property | Description | Example | Result | ||||
---|---|---|---|---|---|---|---|
border-collapse | To specify whether the table borders are collapsed into a single border or detached | table { border-collapse: collapse; } |
|
||||
border-spacing | To specify the spacing between the borders | table { border-collapse: separate; border-spacing: 10px; } |
|
||||
caption-side | To specify the placement of the table caption | caption { caption-side: bottom; } |
|
||||
empty-cells | To specify whether or not to display borders or background on empty cells in a table | table { border-collapse: separate; empty-cells: hide; } |
|
Property | Description | Example | Result |
---|---|---|---|
font-size-adjust | To adjust the size of a font | p { font-size-adjust: 0.2 } |
font-size-adjust |
font-stretch | To specify the stretch of a font | p { font-stretch: wider } |
font-stretch |
text-shadow | To specify the shadow of text | p { text-shadow: 1px 1px #4285F4 } |
text-shadow |
Property | Description | Example | Result |
---|---|---|---|
outline | To specify the outline of an element | p { outline: #4285F4 dotted thick } |
outline |
overflow | To specify the overflow property of an element | p { overflow: hidden; height: 20px; } |
overflow |
visibility | To specify the visibility of an element | div { visibility: hidden } |
visibility |
Property | Description | Example | Result |
---|---|---|---|
direction | To specify the direction of text | p { direction: rtl } |
direction |
max-height | To specify the max-height of an element | p { max-height: 5px } |
max-height |
min-height | To specify the min-height of an element | p { min-height: 50px } |
min-height |
max-width | To specify the max-width of an element | p { max-width: 20px } |
max-width |
min-width | To specify the min-width of an element | p { min-width: 20px } |
min-width |
position | To specify the position of text | p { position: absolute; } |
position |
unicode-bidi | To override text | p { direction: rtl; unicode-bidi: bidi-override; } |
unicode-bidi |
z-index | To specify the stack order of an element | img { position: absolute; z-index: 0; } |
![]() z-index |
Property | Description | Example | Result | ||||
---|---|---|---|---|---|---|---|
border-collapse | To specify whether the table borders are collapsed into a single border or detached | table { border-collapse: collapse; } |
|
||||
border-spacing | To specify the spacing between the borders | table { border-collapse: separate; border-spacing: 10px; } |
|
||||
caption-side | To specify the placement of the table caption | caption { caption-side: bottom; } |
|
||||
empty-cells | To specify whether or not to display borders or background on empty cells in a table | table { border-collapse: separate; empty-cells: hide; } |
|
HTML is the markup of a web page.
Below is a basic example of what you can do with HTML. It shows you what is required to build a basic page. The HTML text editor on the other tab automatically includes the DOCTYPE, html, head and body.
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph</p>
</body>
</html>
CSS controls the styling of a web page.
Below is a basic example of what you can do with CSS.
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: #d0e4fe;
}
h1 {
color: red;
text-align: center;
}
p {
font-family: "Verdana";
font-size: 30px;
}
</style>
</head>
<body>
<h1>CSS Example</h1>
<p>This is a paragraph</p>
</body>
</html>
JavaScript controls the behaviour of a web page.
Below is a basic example of what you can do with JavaScript. It finds the HTML element with an id="change" and changes the content to "This is a JavaScript example".
<!DOCTYPE html>
<html>
<body>
<h1>JavaScript Example</h1>
<p id="example"></p>
<button type="button"
onclick="document.getElementById("example").innerHTML = 'This is a JavaScript example'";>
Click Me!</button>
</body>
</html>
jQuery is a JavaScript library that simplifies JavaScript programming.
Below is a basic example of what you can do with jQuery. It finds hides a <p>
element when you click it.
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-1.12.3.min.js"></script>
<script>
$(document).ready(function(){
$("p").click(function(){
$(this).hide();
});
});
</script>
<body>
<p>If you click me, I will disappear</p>
<p>Click me away!</p>
<p>Click me too!</p>
</body>
</html>