HTML and CSS Reference
In-Depth Information
<label for=”email”>Email:</label>
<input type=”email” name=”email” id=”email”>
</p>
</fieldset>
</form>
The <figcaption> element is used to add a caption to a <figure> element.
<figure>
<img src=”figure.jpg” alt=”My Figure”>
<figcaption>
This is my figure.
</figcaption>
</figure>
<figcaption>
The <figure> element is used to mark up a self-contained piece of content that is referenced from the
main content of the page. These figures are usually images, diagrams, tables, or code listings.
The use of a <figcaption> element is optional.
<figure>
<code>
function boo() {
alert(“boo!”);
}
</code>
<figcaption>A simple JavaScript function that displays an alert to the user
with the text “boo!”.</figcaption>
</figure>
<figure>
The <footer> element is used to mark up the footer section of a document (or the footer of a <sec-
tion> or <article> ). This element typically contains metadata about its parent section or page, such
as copyright information.
<section>
<h1>Section Title</h1>
<p>Some content goes here...</p>
<footer>
Copyright Joe's Pizza Co. 2012
<footer>
</section>
<footer>
The <form> element is used to mark up a collection of form-field elements that can be submitted to a
server. The action attribute specifies a path to a file that will handle processing the form data, and the
method attribute specifies how the data should be sent.
<form action=”process.php” method=”POST”>
<p>
<label for=”name”>Name:</label>
<input type=”text” name=”name” id=”name”>
</p>
<p>
<input type=”submit” value=”Send”>
<form>
Search WWH ::




Custom Search