HTML and CSS Reference
In-Depth Information
<aside>
<h1>Sidebar Title</h1>
<p>Content related to the article.</p>
</aside>
</article>
The <audio> element is used to embed audio content within a web page. A path to the audio file can
be specified either using the src attribute or by using <source> elements. Multiple <source> ele-
ments can be used to provide additional versions of an audio file.
Content placed between the start and end tags of this element will be displayed if the user's browser
does not support HTML5 audio.
<audio>
<audio src=”path/to/audio/file.mp3”>
<p>Your browser does not support HTML5 audio :(</p>
</audio>
The <base> element allows the developer to specify a base URL from which all relative URLs will re-
solve. For example, using a base URL of http://html5foundations.com/test/ would mean that
the relative URL img/photo.png would resolve to http://html5foundations.com/test/img/
photo.png .
This element should be placed in the document <head> .
<base>
<base href=”http://html5foundations.com/test/”>
The <blockquote> element should contain content that is quoted from another source.
<blockquote>
<blockquote>To be or not to be.</blockquote>
The <body> element should contain the main content of the document.
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”utf8”>
<title>Document Title</title>
</head>
<body>
Content goes here...
</body>
</html>
<body>
The <br> element represents a line break. This element should be used only where a line break is a
natural part of the content (such as postal addresses) and should not be used for styling purposes.
<br>
The White House<br>
1600 Pennsylvania Avenue NW<br>
Washington, DC 20500
The <button> element represents a clickable button. Buttons can be used to submit (or reset) forms.
<button>
<button type=”submit”>Send Form</button>
The <canvas> element is used to create a bitmap canvas that can be used to render graphics on the
fly. The content placed between the tags of the <canvas> element will be displayed if the user's
browser does not support the Canvas API.
<canvas>
Search WWH ::




Custom Search