HTML and CSS Reference
In-Depth Information
displayed as a separate line in the browser.
</pre>
The <progress> element is used to visually display a value that changes over time, such as the per-
centage of a file that has been downloaded.
<progress>
<progress max=”100” value=”23”>
The <q> element is used to mark up a quotation used within flowing text.
<q>
<p>
Shakespeare once wrote <q> to be or not to be, that is the question </q> .
</p>
The <s> element is used to mark up content that is no longer accurate or relevant. Content placed with-
in an <s> element will usually be rendered with strikethrough.
<s>
<p>
Price: <s> £5.99 </s> Now only £2.99.
</p>
The <script> element is used to add JavaScript code to a web page. You can also use the optional
src attribute to load JavaScript from an external file.
<script>
<script src=”script.js”></script>
The <section> element is used to mark up a block of related content, such as chapters in a book.
Each <section> can optionally contain a <header> and <footer> element.
<section>
<header>
<h1>Chapter 1</h1>
</header>
<p>
The section text would go here.
</p>
<footer>
By Matt West.
</footer>
</section>
<section>
The <select> element is used for creating a form control that consists of a set of options displayed in
a drop-down menu.
<select name=”color”>
<option>Red</option>
<option>Green</option>
<option>Blue</option>
</select>
<select>
The <small> element is used for marking up the “fine print.” This is content such as legal disclaimers
and copyright information. This element should not be used to mark up the content of an entire page
(such as a privacy policy).
<small>
<small>Copyright 2012 Matt West. All Rights Reserved.</small>
Search WWH ::




Custom Search