HTML and CSS Reference
In-Depth Information
<canvas width=”500” height=”500” id=”myCanvas”>
<p>Your browser does not support canvas :(</p>
</canvas>
The <caption> element is used to define the title of a <table> element.
<table>
<caption>Exam Results</caption>
...
</table>
<caption>
The <cite> element is used to mark up the title of a piece of work (such as a book, song, poem, art-
icle, or sculpture).
<cite>
I recently read <cite>HTML5 Foundations</cite> by Matt West.
The <code> element is used to mark up a piece of computer code that is to be displayed in the page
content. This could be a computer program or even a filename.
<code>
function boo() {
alert(“Boo”);
}
</code>
<code>
The <datalist> element is used to define a list of options that can be mapped to an <input> ele-
ment. When the user starts typing into the input field, the browser will attempt to match the text input to
the options in the datalist and will display any matches in a drop-down menu underneath the <input>
element.
<input type=”text” list=”drinks”>
<datalist id=”drinks”>
<option>Coffee</option>
<option>Tea</option>
<option>Orange Juice</option>
</datalist>
<datalist>
The <dd> element is used to mark up a description list definition (or value). This element should be
used in conjunction with a <dt> element.
<dl>
<dt>Drinks</dt>
<dd> Coffee </dd>
<dd> Tea </dd>
<dd> Orange Juice </dd>
</dl>
<dd>
The <del> element is used to mark up content that has been removed from a document.
<h1>Upcoming Events</h1>
<ul>
<li> <del> New Adventures - Nottingham </del> </li>
<li>Build Conf - Belfast</li>
</ul>
<del>
Search WWH ::




Custom Search