<!--...-->
The comment tag is used to insert comments in the source code. Comments are not displayed in the browsers.You can use comments to explain your code, which can help you when you edit the source code at a later date. This is especially useful if you have a lot of code.
Beispiel
<p>This is a paragraph.</p>
Voreinstellung (CSS)
<!DOCTYPE>
The!DOCTYPE declaration must be the very first thing in your HTML document, before the <html> tag.The
!DOCTYPE declaration is not an HTML tag; it is an instruction to the web browser about what version of HTML the page is written in.In HTML 4.01, the
!DOCTYPE declaration refers to a DTD, because HTML 4.01 was based on SGML. The DTD specifies the rules for the markup language, so that the browsers render the content correctly.HTML5 is not based on SGML, and therefore does not require a reference to a DTD.
Beispiel
<html>
<head>
<title>Title of the document</title>
</head>
<body>
The content of the document......
</body>
</html>
Voreinstellung (CSS)
Anmerkungen
Always add the!DOCTYPE declaration to your HTML documents, so that the browser knows what type of document to expect.
<a>...</a>
Thea tag defines a hyperlink, which is used to link from one page to another.The most important attribute of the
a element is the href attribute, which indicates the link's destination.By default, links will appear as follows in all browsers:
• An unvisited link is underlined and blue
• A visited link is underlined and purple
• An active link is underlined and red
Beispiel
Voreinstellung (CSS)
color: (internal value);
text-decoration: underline;
cursor: auto;
}
a:link:active, a:visited:active {
color: (internal value);
}
Anmerkungen
The following attributes: download, hreflang, media, rel, target, and type cannot be present if the href attribute is not present.A linked page is normally displayed in the current browser window, unless you specify another target.
Use CSS to style links.
<abbr>...</abbr>
Theabbr tag defines an abbreviation or an acronym, like "Mr.", "Dec.", "ASAP", "ATM".Marking up abbreviations can give useful information to browsers, translation systems and search-engines.
Beispiel
Voreinstellung (CSS)
Anmerkungen
An abbreviation and an acronym are both shortened versions of something else. Both is often represented as a series of letters.The global title attribute can be used in the
abbr tag to show the full version of the abbreviation/acronym when you mouse over the abbr element.
<address>...</address>
Theaddress tag defines the contact information for the author/owner of a document or an article.If the
address element is inside the <body> element, it represents contact information for the document.If the
address element is inside an <article> element, it represents contact information for that article.The text in the
address element usually renders in italic. Most browsers will add a line break before and after the address element.
Beispiel
Written by <a href="mailto:webmaster@example.com">Jon Doe</a>.<br>
Visit us at:<br>
Example.com<br>
Box 564, Disneyland<br>
USA
</address>
Voreinstellung (CSS)
display: block;
font-style: italic;
}
Anmerkungen
Theaddress tag should NOT be used to describe a postal address, unless it is a part of the contact information.The
address element will typically be included along with other information in a <footer> element.
<area />
Thearea tag defines an area inside an image-map (an image-map is an image with clickable areas).The
area element is always nested inside a <map> tag.
Beispiel
usemap="#planetmap">
<map name="planetmap">
<area shape="rect" coords="0,0,82,126" href="sun.htm" alt="Sun">
<area shape="circle" coords="90,58,3" href="mercur.htm" alt="Mercury">
<area shape="circle" coords="124,58,8" href="venus.htm" alt="Venus">
</map>
Voreinstellung (CSS)
display: none;
}
Anmerkungen
The usemap attribute in the <img> tag is associated with the <map> element's name attribute, and creates a relationship between the image and the map.
<article>...</article>
Thearticle tag specifies independent, self-contained content.An article should make sense on its own and it should be possible to distribute it independently from the rest of the site.
Potential sources for the
article element:• Forum post
• Blog post
• News story
• Comment
Beispiel
<h1>Google Chrome</h1>
<p>Google Chrome is a free, open-source web browser developed by Google, released in 2008.</p>
</article>
Voreinstellung (CSS)
display: block;
}
<aside>...</aside>
Theaside tag defines some content aside from the content it is placed in.The aside content should be related to the surrounding content.
Beispiel
<aside>
<h4>Epcot Center</h4>
<p>The Epcot Center is a theme park in Disney World, Florida.</p>
</aside>
Voreinstellung (CSS)
display: block;
}
Anmerkungen
Theaside content could be placed as a sidebar in an article.
<audio>...</audio>
Theaudio tag defines sound, such as music or other audio streams.Currently, there are 3 supported file formats for the
audio element: MP3, Wav, and Ogg.
Beispiel
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio tag.
</audio>
Voreinstellung (CSS)
Anmerkungen
Any text inside the between <audio> and </audio> will be displayed in browsers that do not support theaudio tag.
<b>...</b>
Theb tag specifies bold text.
Beispiel
Voreinstellung (CSS)
font-weight: bold;
}
Anmerkungen
According to the HTML 5 specification, theb tag should be used as a LAST resort when no other tag is more appropriate. The HTML 5 specification states that headings should be denoted with the <h1> to <h6> tags, emphasized text should be denoted with the <em> tag, important text should be denoted with the <strong> tag, and marked/highlighted text should use the <mark> tag.You can also use the CSS "font-weight" property to set bold text.
<base />
Thebase tag specifies the base URL/target for all relative URLs in a document.There can be at maximum one
base element in a document, and it must be inside the <head> element.
Beispiel
<base href="http://www.w3schools.com/images/" target="_blank">
</head>
<body>
<img src="stickman.gif" width="24" height="39" alt="Stickman">
<a href="http://www.w3schools.com">W3Schools</a>
</body>
Voreinstellung (CSS)
Anmerkungen
Put thebase tag as the first element inside the <head> element, so that other elements in the head section uses the information from the base element.If the
base tag is present, it must have either an href attribute or a target attribute, or both.
<bdi>...</bdi>
bdi stands for Bi-directional Isolation.The
bdi tag isolates a part of text that might be formatted in a different direction from other text outside it.This element is useful when embedding user-generated content with an unknown directionality.
Beispiel
<li>User <bdi>hrefs</bdi>: 60 points</li>
<li>User <bdi>jdoe</bdi>: 80 points</li>
<li>User <bdi>????</bdi>: 90 points</li>
</ul>
Voreinstellung (CSS)
<bdo>...</bdo>
bdo stands for Bi-Directional Override.The
bdo tag is used to override the current text direction.
Beispiel
This text will go right-to-left.
</bdo>
Voreinstellung (CSS)
unicode-bidi: bidi-override;
}
<blockquote>...</blockquote>
Theblockquote tag specifies a section that is quoted from another source.Browsers usually indent
blockquote elements.
Beispiel
For 50 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally.
</blockquote>
Voreinstellung (CSS)
display: block;
margin-top: 1em;
margin-bottom: 1em;
margin-left: 40px;
margin-right: 40px;
}
Anmerkungen
Use <q> for inline (short) quotations.
<body>...</body>
Thebody tag defines the document's body.The
body element contains all the contents of an HTML document, such as text, hyperlinks, images, tables, lists, etc.
Beispiel
<head>
<title>Title of the document</title>
</head>
<body>
The content of the document......
</body>
</html>
Voreinstellung (CSS)
display: block;
margin: 8px;
}
body:focus {
outline: none;
}
<br />
Thebr tag inserts a single line break.The
br tag is an empty tag which means that it has no end tag.
Beispiel
Voreinstellung (CSS)
Anmerkungen
Thebr tag is useful for writing addresses or poems.Use the
br tag to enter line breaks, not to separate paragraphs.
<button>...</button>
Thebutton tag defines a clickable button.Inside a
button element you can put content, like text or images. This is the difference between this element and buttons created with the <input> element.
Beispiel
Voreinstellung (CSS)
Anmerkungen
Always specify the type attribute for abutton element. Different browsers use different default types for the button element.If you use the
button element in an HTML form, different browsers may submit different values. Use <input> to create buttons in an HTML form.
<canvas>...</canvas>
Thecanvas tag is used to draw graphics, on the fly, via scripting (usually JavaScript).The
canvas tag is only a container for graphics, you must use a script to actually draw the graphics.
Beispiel
<script>
var canvas = document.getElementById("myCanvas");
var ctx = canvas.getContext("2d");
ctx.fillStyle = "#FF0000";
ctx.fillRect(0, 0, 80, 80);
</script>
Voreinstellung (CSS)
Anmerkungen
Any text inside thecanvas element will be displayed in browsers that does not support canvas.
<caption>...</caption>
Thecaption tag defines a table caption.The
caption tag must be inserted immediately after the <table> tag.
Beispiel
<caption>Monthly savings</caption>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
Voreinstellung (CSS)
display: table-caption;
text-align: center;
}
Anmerkungen
You can specify only one caption per table.By default, a table caption will be center-aligned above a table. However, the CSS properties text-align and caption-side can be used to align and place the caption.
<cite>...</cite>
Thecite tag defines the title of a work (e.g. a book, a song, a movie, a TV show, a painting, a sculpture, etc.).
Beispiel
Voreinstellung (CSS)
font-style: italic;
}
Anmerkungen
A person's name is not the title of a work.
<code>...</code>
Thecode tag is a phrase tag. It defines a piece of computer code.
Beispiel
Voreinstellung (CSS)
font-family: monospace;
}
Anmerkungen
This tag is not deprecated, but it is possible to achieve richer effect with CSS.
<col />
Thecol tag specifies column properties for each column within a <colgroup> element.The
col tag is useful for applying styles to entire columns, instead of repeating the styles for each cell, for each row.
Beispiel
<colgroup>
<col span="2" style="background-color:red">
<col style="background-color:yellow">
</colgroup>
<tr>
<th>ISBN</th>
<th>Title</th>
<th>Price</th>
</tr>
<tr>
<td>3476896</td>
<td>My first HTML</td>
<td>$53</td>
</tr>
</table>
Voreinstellung (CSS)
display: table-column;
}
<colgroup>...</colgroup>
Thecolgroup tag specifies a group of one or more columns in a table for formatting.The
colgroup tag is useful for applying styles to entire columns, instead of repeating the styles for each cell, for each row.
Beispiel
<colgroup>
<col span="2" style="background-color:red">
<col style="background-color:yellow">
</colgroup>
<tr>
<th>ISBN</th>
<th>Title</th>
<th>Price</th>
</tr>
<tr>
<td>3476896</td>
<td>My first HTML</td>
<td>$53</td>
</tr>
</table>
Voreinstellung (CSS)
display: table-column-group;
}
Anmerkungen
Thecolgroup tag must be a child of a <table> element, after any <caption> elements and before any <thead>, <tbody>, <tfoot>, and <tr> elements.To define different properties to a column within a
colgroup, use the <col> tag within the colgroup tag.
<datalist>...</datalist>
Thedatalist tag specifies a list of pre-defined options for an <input> element.The
datalist tag is used to provide an "autocomplete" feature on <input> elements. Users will see a drop-down list of pre-defined options as they input data.Use the <input> element's list attribute to bind it together with a
datalist element.
Beispiel
<datalist id="browsers">
<option value="Internet Explorer">
<option value="Firefox">
<option value="Chrome">
<option value="Opera">
<option value="Safari">
</datalist>
Voreinstellung (CSS)
display: none;
}
<dd>...</dd>
Thedd tag is used to describe a term/name in a description list.The
dd tag is used in conjunction with <dl> (defines a description list) and <dt> (defines terms/names).Inside a
dd tag you can put paragraphs, line breaks, images, links, lists, etc.
Beispiel
<dt>Coffee</dt>
<dd>Black hot drink</dd>
<dt>Milk</dt>
<dd>White cold drink</dd>
</dl>
Voreinstellung (CSS)
display: block;
margin-left: 40px;
}
<del>...</del>
Thedel tag defines text that has been deleted from a document.
Beispiel
Voreinstellung (CSS)
text-decoration: line-through;
}
Anmerkungen
Also look at the <ins> tag to markup inserted text.Use
del and <ins> to markup updates and modifications in a document. Browsers will normally strike a line through deleted text and underline inserted text.
<details>...</details>
Thedetails tag specifies additional details that the user can view or hide on demand.The
details tag can be used to create an interactive widget that the user can open and close. Any sort of content can be put inside the details tag.The content of a
details element should not be visible unless the open attribute is set.
Beispiel
<summary>Copyright 1999-2014.</summary>
<p> - by Refsnes Data. All Rights Reserved.</p>
<p>All content and graphics on this web site are the property of the company Refsnes Data.</p>
</details>
Voreinstellung (CSS)
display: block;
}
Anmerkungen
The <summary> tag is used to specify a visible heading for the details. The heading can be clicked to view/hide the details.
<dfn>...</dfn>
Thedfn tag represents the defining instance of a term in HTML.The defining instance is often the first use of a term in a document.
The nearest parent of the
dfn tag must also contain the definition/explanation for the term inside dfn.
Beispiel
Voreinstellung (CSS)
font-style: italic;
}
<dialog>...</dialog>
Thedialog tag defines a dialog box or window.The
dialog element makes it easy to create popup dialogs and modals on a web page.Beispiel
<tr>
<th>January <dialog open>This is an open dialog window</dialog></th>
<th>February</th>
<th>March</th>
</tr>
<tr>
<td>31</td>
<td>28</td>
<td>31</td>
</tr>
</table>
Voreinstellung (CSS)
<div>...</div>
Thediv tag defines a division or a section in an HTML document.The
div tag is used to group block-elements to format them with CSS.
Beispiel
<h3>This is a heading</h3>
<p>This is a paragraph.</p>
</div>
Voreinstellung (CSS)
display: block;
}
Anmerkungen
Thediv element is very often used together with CSS, to layout a web page.By default, browsers always place a line break before and after the
div element. However, this can be changed with CSS.
<dl>...</dl>
Thedl tag defines a description list.The
dl tag is used in conjunction with <dt> (defines terms/names) and <dd> (describes each term/name).
Beispiel
<dt>Coffee</dt>
<dd>Black hot drink</dd>
<dt>Milk</dt>
<dd>White cold drink</dd>
</dl>
Voreinstellung (CSS)
display: block;
margin-top: 1em;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
}
<dt>...</dt>
Thedt tag defines a term/name in a description list.The
dt tag is used in conjunction with <dl> (defines a description list) and <dd> (describes each term/name).
Beispiel
<dt>Coffee</dt>
<dd>Black hot drink</dd>
<dt>Milk</dt>
<dd>White cold drink</dd>
</dl>
Voreinstellung (CSS)
display: block;
}
<em>...</em>
Theem tag is a phrase tag. It renders as emphasized text.
Beispiel
Voreinstellung (CSS)
font-style: italic;
}
Anmerkungen
This tag is not deprecated, but it is possible to achieve richer effect with CSS.
<embed />
Theembed tag defines a container for an external application or interactive content (a plug-in).
Beispiel
Voreinstellung (CSS)
outline: none;
}
Anmerkungen
Many web browsers have supported theembed tag for a long time. However, the embed tag has not been a part of the HTML 4 specification. The embed tag is new in HTML5, and will validate in an HTML5 page. However, if you use it in an HTML 4 page, the page will not validate.
<fieldset>...</fieldset>
Thefieldset tag is used to group related elements in a form.The
fieldset tag draws a box around the related elements.
Beispiel
<fieldset>
<legend>Personalia:</legend>
Name: <input type="text"><br>
Email: <input type="text"><br>
Date of birth: <input type="text">
</fieldset>
</form>
Voreinstellung (CSS)
display: block;
margin-left: 2px;
margin-right: 2px;
padding-top: 0.35em;
padding-bottom: 0.625em;
padding-left: 0.75em;
padding-right: 0.75em;
border: 2px groove (internal value);
}
Anmerkungen
The <legend> tag defines a caption for thefieldset element.
<figcaption>...</figcaption>
Thefigcaption tag defines a caption for a <figure> element.The
figcaption element can be placed as the first or last child of the <figure> element.Beispiel
<img src="img_pulpit.jpg" alt="The Pulpit Rock" width="304" height="228">
<figcaption>Fig1. - A view of the pulpit rock in Norway.</figcaption>
</figure>
Voreinstellung (CSS)
display: block;
}
<figure>...</figure>
Thefigure tag specifies self-contained content, like illustrations, diagrams, photos, code listings, etc.While the content of the
figure element is related to the main flow, its position is independent of the main flow, and if removed it should not affect the flow of the document.
Beispiel
<img src="img_pulpit.jpg" alt="The Pulpit Rock" width="304" height="228">
</figure>
Voreinstellung (CSS)
display: block;
margin-top: 1em;
margin-bottom: 1em;
margin-left: 40px;
margin-right: 40px;
}
Anmerkungen
The <figcaption> element is used to add a caption for thefigure element.
<footer>...</footer>
Thefooter tag defines a footer for a document or section.A
footer element should contain information about its containing element.A
footer element typically contains:• authorship information
• copyright information
• contact information
• sitemap
• back to top links
• related documents
You can have several
footer elements in one document.
Beispiel
<p>Posted by: Hege Refsnes</p>
<p>Contact information: <a href="mailto:someone@example.com">
someone@example.com</a>.</p>
</footer>
Voreinstellung (CSS)
display: block;
}
Anmerkungen
Contact information inside afooter element should go inside an <address> tag.
<form>...</form>
Theform tag is used to create an HTML form for user input.The
form element can contain one or more of the following form elements:• <input>
• <textarea>
• <button>
• <select>
• <option>
• <optgroup>
• <fieldset>
• <label>
Beispiel
First name: <input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br>
<input type="submit" value="Submit">
</form>
Voreinstellung (CSS)
display: block;
margin-top: 0em;
}
<h1-6>...</h1-6>
Theh1-6 tags are used to define HTML headings.<h1> defines the most important heading. <h6> defines the least important heading.
Beispiel
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>
Voreinstellung (CSS)
display: block;
font-size: 2em;
margin-top: 0.67em;
margin-bottom: 0.67em;
margin-left: 0;
margin-right: 0;
font-weight: bold;
}
h2 {
display: block;
font-size: 1.5em;
margin-top: 0.83em;
margin-bottom: 0.83em;
margin-left: 0;
margin-right: 0;
font-weight: bold;
}
h3 {
display: block;
font-size: 1.17em;
margin-top: 1em;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
font-weight: bold;
}
h4 {
display: block;
margin-top: 1.33em;
margin-bottom: 1.33em;
margin-left: 0;
margin-right: 0;
font-weight: bold;
}
h5 {
display: block;
font-size: .83em;
margin-top: 1.67em;
margin-bottom: 1.67em;
margin-left: 0;
margin-right: 0;
font-weight: bold;
}
h6 {
display: block;
font-size: .67em;
margin-top: 2.33em;
margin-bottom: 2.33em;
margin-left: 0;
margin-right: 0;
font-weight: bold;
}
<head>...</head>
Thehead element is a container for all the head elements.The
head element can include a title for the document, scripts, styles, meta information, and more.The following elements can go inside the
head element:• <title> (this element is required in an HTML document)
• <style>
• <base>
• <link>
• <meta>
• <script>
• <noscript>
Beispiel
<html>
<head>
<title>Title of the document</title>
</head>
<body>
The content of the document......
</body>
</html>
Voreinstellung (CSS)
display: none;
}
<header>...</header>
Theheader element represents a container for introductory content or a set of navigational links.A
header element typically contains:• one or more heading elements (<h1> - <h6>)
• logo or icon
• authorship information
You can have several
header elements in one document.
Beispiel
<header>
<h1>Most important heading here</h1>
<h3>Less important heading here</h3>
<p>Some additional information here</p>
</header>
<p>Lorem Ipsum dolor set amet....</p>
</article>
Voreinstellung (CSS)
display: block;
}
Anmerkungen
Aheader tag cannot be placed within a <footer>, <address> or another <header> element.
<hr />
Thehr tag defines a thematic break in an HTML page (e.g. a shift of topic).The
hr element is used to separate content (or define a change) in an HTML page.
Beispiel
<p>HTML is a language for describing web pages.....</p>
<hr>
<h1>CSS</h1>
<p>CSS defines how to display HTML elements.....</p>
Voreinstellung (CSS)
display: block;
margin-top: 0.5em;
margin-bottom: 0.5em;
margin-left: auto;
margin-right: auto;
border-style: inset;
border-width: 1px;
}
<html>...</html>
Thehtml tag tells the browser that this is an HTML document.The
html tag represents the root of an HTML document.The
html tag is the container for all other HTML elements (except for the <!DOCTYPE> tag).
Beispiel
<html>
<head>
<title>Title of the document</title>
</head>
<body>
The content of the document......
</body>
</html>
Voreinstellung (CSS)
display: block;
}
html:focus {
outline: none;
}
<i>...</i>
Thei tag defines a part of text in an alternate voice or mood. The content of the i tag is usually displayed in italic.The
i tag can be used to indicate a technical term, a phrase from another language, a thought, or a ship name, etc.Use the
i element only when there is not a more appropriate semantic element, such as:• <em> (emphasized text)
• <strong> (important text)
• <mark> (marked/highlighted text)
• <cite> (the title of a work)
• <dfn> (a definition term)
Beispiel
Voreinstellung (CSS)
font-style: italic;
}
<iframe>...</iframe>
Theiframe tag specifies an inline frame.An inline frame is used to embed another document within the current HTML document.
Beispiel
Voreinstellung (CSS)
outline: none;
}
iframe[seamless] {
display: block;
}
<img />
Theimg tag defines an image in an HTML page.The
img tag has two required attributes: src and alt.
Beispiel
Voreinstellung (CSS)
display: inline-block;
}
Anmerkungen
Images are not technically inserted into an HTML page, images are linked to HTML pages. Theimg tag creates a holding space for the referenced image.To link an image to another document, simply nest the
img tag inside <a> tags.
<input />
Theinput tag specifies an input field where the user can enter data.input elements are used within a <form> element to declare input controls that allow users to input data.An input field can vary in many ways, depending on the type attribute.
Beispiel
First name: <input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br>
<input type="submit" value="Submit">
</form>
Voreinstellung (CSS)
Anmerkungen
Theinput element is empty, it contains attributes only.Use the <label> element to define labels for
input elements.
<ins>...</ins>
Theins tag defines a text that has been inserted into a document.Browsers will normally strike a line through deleted text and underline inserted text.
Beispiel
Voreinstellung (CSS)
text-decoration: underline;
}
Anmerkungen
Also look at the <del> tag to markup deleted text.
<kbd>...</kbd>
Thekbd tag is a phrase tag. It defines keyboard input.
Beispiel
Voreinstellung (CSS)
font-family: monospace;
}
Anmerkungen
This tag is not deprecated, but it is possible to achieve richer effect with CSS.
<keygen />
Thekeygen tag specifies a key-pair generator field used for forms.When the form is submitted, the private key is stored locally, and the public key is sent to the server.
Beispiel
Username: <input type="text" name="usr_name">
Encryption: <keygen name="security">
<input type="submit">
</form>
Voreinstellung (CSS)
<label>...</label>
Thelabel tag defines a label for an <input> element.The
label element does not render as anything special for the user. However, it provides a usability improvement for mouse users, because if the user clicks on the text within the <label> element, it toggles the control.The for attribute of the
label tag should be equal to the id attribute of the related element to bind them together.
Beispiel
<label for="male">Male</label>
<input type="radio" name="sex" id="male" value="male"><br>
<label for="female">Female</label>
<input type="radio" name="sex" id="female" value="female"><br>
<input type="submit" value="Submit">
</form>
Voreinstellung (CSS)
cursor: default;
}
Anmerkungen
A label can be bound to an element either by using the "for" attribute, or by placing the element inside thelabel element.
<legend>...</legend>
Thelegend tag defines a caption for the <fieldset> element.
Beispiel
<fieldset>
<legend>Personalia:</legend>
Name: <input type="text" size="30"><br>
Email: <input type="text" size="30"><br>
Date of birth: <input type="text" size="10">
</fieldset>
</form>
Voreinstellung (CSS)
display: block;
padding-left: 2px;
padding-right: 2px;
border: none;
}
<li>...</li>
Theli tag defines a list item.The
li tag is used in ordered lists(<ol>), unordered lists (<ul>), and in menu lists (<menu>).
Beispiel
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
Voreinstellung (CSS)
display: list-item;
}
Anmerkungen
Use CSS to define the type of list.
<link />
Thelink tag defines a link between a document and an external resource.The
link tag is used to link to external style sheets.
Beispiel
<link rel="stylesheet" type="text/css" href="theme.css">
</head>
Voreinstellung (CSS)
display: none;
}
Anmerkungen
Thelink element is an empty element, it contains attributes only.This element goes only in the head section, but it can appear any number of times.
<main>...</main>
Themain tag specifies the main content of a document.The content inside the
main element should be unique to the document. It should not contain any content that is repeated across documents such as sidebars, navigation links, copyright information, site logos, and search forms.
Beispiel
<h1>Web Browsers</h1>
<p>Google Chrome, Firefox, and Internet Explorer are the most used browsers today.</p>
<article>
<h1>Google Chrome</h1>
<p>Google Chrome is a free, open-source web browser developed by Google,
released in 2008.</p>
</article>
<article>
<h1>Internet Explorer</h1>
<p>Internet Explorer is a free web browser from Microsoft, released in 1995.</p>
</article>
<article>
<h1>Mozilla Firefox</h1>
<p>Firefox is a free, open-source web browser from Mozilla, released in 2004.</p>
</article>
</main>
Voreinstellung (CSS)
Anmerkungen
There must not be more than onemain element in a document. The main element must NOT be a descendant of an <article>, <aside>, <footer>, <header>, or <nav> element.
<map>...</map>
Themap tag is used to define a client-side image-map. An image-map is an image with clickable areas.The required name attribute of the <map> element is associated with the <img>'s usemap attribute and creates a relationship between the image and the map.
The
map element contains a number of <area> elements, that defines the clickable areas in the image map.
Beispiel
<map name="planetmap">
<area shape="rect" coords="0,0,82,126" href="sun.htm" alt="Sun">
<area shape="circle" coords="90,58,3" href="mercur.htm" alt="Mercury">
<area shape="circle" coords="124,58,8" href="venus.htm" alt="Venus">
</map>
Voreinstellung (CSS)
display: inline;
}
<mark>...</mark>
Themark tag defines marked text.Use the
mark tag if you want to highlight parts of your text.
Beispiel
Voreinstellung (CSS)
background-color: yellow;
color: black;
}
<menu>...</menu>
Themenu tag defines a list/menu of commands.The
menu tag is used for context menus, toolbars and for listing form controls and commands.
Beispiel
<menuitem label="Refresh" onclick="window.location.reload();" icon="ico_reload.png">
</menuitem>
<menu label="Share on...">
<menuitem label="Twitter" icon="ico_twitter.png"
onclick="window.open('//twitter.com/intent/tweet?text='+window.location.href);">
</menuitem>
<menuitem label="Facebook" icon="ico_facebook.png"
onclick="window.open('//facebook.com/sharer/sharer.php?u='+window.location.href);">
</menuitem>
</menu>
<menuitem label="Email This Page"
onclick="window.location='mailto:?body='+window.location.href;"></menuitem>
</menu>
Voreinstellung (CSS)
display: block;
list-style-type: disc;
margin-top: 1em;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
padding-left: 40px;
}
Anmerkungen
Use CSS to style menu lists.
<menuitem>...</menuitem>
Themenuitem tag defines a command/menu item that the user can invoke from a popup menu.
Beispiel
<menuitem label="Refresh" onclick="window.location.reload();" icon="ico_reload.png">
</menuitem>
<menu label="Share on...">
<menuitem label="Twitter" icon="ico_twitter.png"
onclick="window.open('//twitter.com/intent/tweet?text='+window.location.href);">
</menuitem>
<menuitem label="Facebook" icon="ico_facebook.png"
onclick="window.open('//facebook.com/sharer/sharer.php?u='+window.location.href);">
</menuitem>
</menu>
<menuitem label="Email This Page"
onclick="window.location='mailto:?body='+window.location.href;"></menuitem>
</menu>
Voreinstellung (CSS)
<meta />
Metadata is data (information) about data.The
meta tag provides metadata about the HTML document. Metadata will not be displayed on the page, but will be machine parsable.Meta elements are typically used to specify page description, keywords, author of the document, last modified, and other metadata.
The metadata can be used by browsers (how to display content or reload page), search engines (keywords), or other web services.
Beispiel
<meta charset="UTF-8">
<meta name="description" content="Free Web tutorials">
<meta name="keywords" content="HTML,CSS,XML,JavaScript">
<meta name="author" content="Hege Refsnes">
</head>
Voreinstellung (CSS)
Anmerkungen
meta tags always go inside the <head> element.Metadata is always passed as name/value pairs.
The content attribute MUST be defined if the name or the http-equiv attribute is defined. If none of these are defined, the content attribute CANNOT be defined.
<meter>...</meter>
Themeter tag defines a scalar measurement within a known range, or a fractional value. This is also known as a gauge.Examples: Disk usage, the relevance of a query result, etc.
Beispiel
<meter value="0.6">60%</meter>
Voreinstellung (CSS)
Anmerkungen
Themeter tag should not be used to indicate progress (as in a progress bar). For progress bars, use the <progress> tag.
<nav>...</nav>
Thenav tag defines a set of navigation links.Notice that NOT all links of a document should be inside a
nav element. The <nav> element is intended only for major block of navigation links.Browsers, such as screen readers for disabled users, can use this element to determine whether to omit the initial rendering of this content.
Beispiel
<a href="/html/">HTML</a> |
<a href="/css/">CSS</a> |
<a href="/js/">JavaScript</a> |
<a href="/jquery/">jQuery</a>
</nav>
Voreinstellung (CSS)
display: block;
}
<noscript>...</noscript>
Thenoscript tag defines an alternate content for users that have disabled scripts in their browser or have a browser that doesn't support script.The
noscript element can be used in both <head> and <body>.When used inside the <head> element:
noscript must contain <link>, <style>, and <meta> elements.The content inside the
noscript element will be displayed if scripts are not supported, or are disabled in the user's browser.
Beispiel
document.write("Hello World!")
</script>
<noscript>Your browser does not support JavaScript!</noscript>
Voreinstellung (CSS)
<object>...</object>
Theobject tag defines an embedded object within an HTML document. Use this element to embed multimedia (like audio, video, Java applets, ActiveX, PDF, and Flash) in your web pages.You can also use the
object tag to embed another webpage into your HTML document.You can use the <param> tag to pass parameters to plugins that have been embedded with the
object tag.
Beispiel
Voreinstellung (CSS)
outline: none;
}
Anmerkungen
Anobject element must appear inside the <body> element. The text between the <object> and </object> is an alternate text, for browsers that do not support this tag.For images use the <img> tag instead of the
object tag.At least one of the "data" or "type" attribute MUST be defined.
<ol>...</ol>
Theol tag defines an ordered list. An ordered list can be numerical or alphabetical.Use the <li> tag to define list items.
Beispiel
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
<ol start="50">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
Voreinstellung (CSS)
display: block;
list-style-type: decimal;
margin-top: 1em;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
padding-left: 40px;
}
Anmerkungen
For unordered list, use the <ul> tag.Use CSS to style lists.
<optgroup>...</optgroup>
Theoptgroup is used to group related options in a drop-down list.If you have a long list of options, groups of related options are easier to handle for a user.
Beispiel
<optgroup label="Swedish Cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
</optgroup>
<optgroup label="German Cars">
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</optgroup>
</select>
Voreinstellung (CSS)
<option>...</option>
Theoption tag defines an option in a select list.option elements go inside a <select> or <datalist> element.
Beispiel
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="opel">Opel</option>
<option value="audi">Audi</option>
</select>
Voreinstellung (CSS)
Anmerkungen
Theoption tag can be used without any attributes, but you usually need the value attribute, which indicates what is sent to the server.If you have a long list of options, you can group related options with the <optgroup> tag.
<output>...</output>
Theoutput tag represents the result of a calculation (like one performed by a script).
Beispiel
<input type="range" id="a" value="50">100
+<input type="number" id="b" value="50">
=<output name="x" for="a b"></output>
</form>
Voreinstellung (CSS)
display: inline;
}
<p>...</p>
Thep tag defines a paragraph.Browsers automatically add some space (margin) before and after each
p element. The margins can be modified with CSS (with the margin properties).
Beispiel
Voreinstellung (CSS)
display: block;
margin-top: 1em;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
}
<param />
Theparam tag is used to define parameters for plugins embedded with an <object> element.
Beispiel
<param name="autoplay" value="true">
</object>
Voreinstellung (CSS)
display: none;
}
Anmerkungen
HTML 5 also includes two new elements for playing audio or video: The <audio> and <video> tags.
<pre>...</pre>
Thepre tag defines preformatted text.Text in a
pre element is displayed in a fixed-width font (usually Courier), and it preserves both spaces and line breaks.
Beispiel
Text in a pre element
is displayed in a fixed-width
font, and it preserves
both spaces and
line breaks
</pre>
Voreinstellung (CSS)
display: block;
font-family: monospace;
white-space: pre;
margin: 1em 0;
}
Anmerkungen
Use thepre element when displaying text with unusual formatting, or some sort of computer code.
<progress>...</progress>
Theprogress tag represents the progress of a task.
Beispiel
Voreinstellung (CSS)
Anmerkungen
Use theprogress tag in conjunction with JavaScript to display the progress of a task.The
progress tag is not suitable for representing a gauge (e.g. disk space usage or relevance of a query result). To represent a gauge, use the <meter> tag instead.
<q>...</q>
Theq tag defines a short quotation.Browsers normally insert quotation marks around the quotation.
Beispiel
<q>Build a future where people live in harmony with nature.</q>
We hope they succeed.</p>
Voreinstellung (CSS)
display: inline;
}
q:before {
content: open-quote;
}
q:after {
content: close-quote;
}
Anmerkungen
Use <blockquote> to mark up a section that is quoted from another source.
<rp>...</rp>
Therp tag can be used to provide parentheses around a ruby text, to be shown by browsers that do not support ruby annotations.Use the
rp tag together with the <ruby> and the <rt> tags: The <ruby> element consists of one or more characters that needs an explanation/pronunciation, and an <rt> element that gives that information, and an optional rp element that defines what to show for browsers that not support ruby annotations.
Beispiel
? <rt><rp>(</rp>???<rp>)</rp></rt>
</ruby>
Voreinstellung (CSS)
<rt>...</rt>
Thert tag defines an explanation or pronunciation of characters (for East Asian typography) in a ruby annotation.Use the
rt tag together with the <ruby> and the <rp> tags: The <ruby> element consists of one or more characters that needs an explanation/pronunciation, and an rt element that gives that information, and an optional <rp> element that defines what to show for browsers that not support ruby annotations.
Beispiel
? <rt> ??? </rt>
</ruby>
Voreinstellung (CSS)
line-height: normal;
}
<ruby>...</ruby>
Theruby tag specifies a ruby annotation.A ruby annotation is a small extra text, attached to the main text to indicate the pronunciation or meaning of the corresponding characters. This kind of annotation is often used in Japanese publications.
Use the
ruby tag together with the <rt> and/or the <rp> tags: The ruby element consists of one or more characters that needs an explanation/pronunciation, and an <rt> element that gives that information, and an optional <rp> element that defines what to show for browsers that not support ruby annotations.
Beispiel
? <rt> ??? </rt>
</ruby>
Voreinstellung (CSS)
<s>...</s>
Thes tag specifies text that is no longer correct, accurate or relevant.The
s tag should not be used to define replaced or deleted text, use the <del> tag to define replaced or deleted text.
Beispiel
<p>My new car is silver.</p>
Voreinstellung (CSS)
text-decoration: line-through;
}
<samp>...</samp>
Thesamp tag is a phrase tag. It defines sample output from a computer program.
Beispiel
Voreinstellung (CSS)
font-family: monospace;
}
Anmerkungen
This tag is not deprecated, but it is possible to achieve richer effect with CSS.
<script>...</script>
Thescript tag is used to define a client-side script, such as a JavaScript.The
script element either contains scripting statements, or it points to an external script file through the src attribute.Common uses for JavaScript are image manipulation, form validation, and dynamic changes of content.
Beispiel
document.getElementById("demo").innerHTML = "Hello JavaScript!";
</script>
Voreinstellung (CSS)
display: none;
}
Anmerkungen
If the "src" attribute is present, thescript element must be empty.Also look at the <noscript> element for users that have disabled scripts in their browser, or have a browser that doesn't support client-side scripting.
There are several ways an external script can be executed:
• If async="async": The script is executed asynchronously with the rest of the page (the script will be executed while the page continues the parsing)
• If async is not present and defer="defer": The script is executed when the page has finished parsing
• If neither async or defer is present: The script is fetched and executed immediately, before the browser continues parsing the page
<section>...</section>
Thesection tag defines sections in a document, such as chapters, headers, footers, or any other sections of the document.
Beispiel
<h1>WWF</h1>
<p>The World Wide Fund for Nature (WWF) is....</p>
</section>
Voreinstellung (CSS)
display: block;
}
<select>...</select>
Theselect element is used to create a drop-down list.The <option> tags inside the
select element define the available options in the list.
Beispiel
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
Voreinstellung (CSS)
Anmerkungen
Theselect element is a form control and can be used in a form to collect user input.
<small>...</small>
Thesmall tag defines smaller text (and other side comments).
Beispiel
<p><small>Copyright 1999-2050 by Refsnes Data</small></p>
Voreinstellung (CSS)
font-size: smaller;
}
<source />
Thesource tag is used to specify multiple media resources for media elements, such as <video> and <audio>.The
source tag allows you to specify alternative video/audio files which the browser may choose from, based on its media type or codec support.
Beispiel
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
Voreinstellung (CSS)
<span>...</span>
Thespan tag is used to group inline-elements in a document.The
span tag provides no visual change by itself.The
span tag provides a way to add a hook to a part of a text or a part of a document.
Beispiel
Voreinstellung (CSS)
Anmerkungen
When a text is hooked in aspan element, you can style it with CSS, or manipulate it with JavaScript.
<strong>...</strong>
Thestrong tag is a phrase tag. It defines important text.
Beispiel
Voreinstellung (CSS)
font-weight: bold;
}
Anmerkungen
This tag is not deprecated, but it is possible to achieve richer effect with CSS.
<style>...</style>
Thestyle tag is used to define style information for an HTML document.Inside the
style element you specify how HTML elements should render in a browser.Each HTML document can contain multiple
style tags.
Beispiel
<head>
<style>
h1 {color:red;}
p {color:blue;}
</style>
</head>
<body>
<h1>A heading</h1>
<p>A paragraph.</p>
</body>
</html>
Voreinstellung (CSS)
display: none;
}
Anmerkungen
To link to an external style sheet, use the <link> tag.If the "scoped" attribute is not used, each
style tag must be located in the head section.
<sub>...</sub>
Thesub tag defines subscript text. Subscript text appears half a character below the normal line, and is sometimes rendered in a smaller font. Subscript text can be used for chemical formulas, like H2O.
Beispiel
Voreinstellung (CSS)
vertical-align: sub;
font-size: smaller;
}
Anmerkungen
Use the <sup> tag to define superscripted text.
<summary>...</summary>
Thesummary tag defines a visible heading for the <details> element. The heading can be clicked to view/hide the details.
Beispiel
<summary>Copyright 1999-2014.</summary>
<p> - by Refsnes Data. All Rights Reserved.</p>
<p>All content and graphics on this web site are the property of the company Refsnes Data.</p>
</details>
Voreinstellung (CSS)
display: block;
}
Anmerkungen
Thesummary element should be the first child element of the <details> element.
<sup>...</sup>
Thesup tag defines superscript text. Superscript text appears half a character above the normal line, and is sometimes rendered in a smaller font. Superscript text can be used for footnotes, like WWW[1].
Beispiel
Voreinstellung (CSS)
vertical-align: super;
font-size: smaller;
}
Anmerkungen
Use the <sub> tag to define subscript text.
<table>...</table>
Thetable tag defines an HTML table.An HTML table consists of the
table element and one or more <tr>, <th>, and <td> elements.The <tr> element defines a table row, the <th> element defines a table header, and the <td> element defines a table cell.
A more complex HTML table may also include <caption>, <col>, <colgroup>, <thead>, <tfoot>, and <tbody> elements.
Beispiel
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
Voreinstellung (CSS)
display: table;
border-collapse: separate;
border-spacing: 2px;
border-color: gray;
}
<tbody>...</tbody>
Thetbody tag is used to group the body content in an HTML table.The
tbody element is used in conjunction with the <thead> and <tfoot> elements to specify each part of a table (body, header, footer).Browsers can use these elements to enable scrolling of the table body independently of the header and footer. Also, when printing a large table that spans multiple pages, these elements can enable the table header and footer to be printed at the top and bottom of each page.
The
tbody tag must be used in the following context: As a child of a <table> element, after any <caption>, <colgroup>, and <thead> elements.
Beispiel
<thead>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
</thead>
<tfoot>
<tr>
<td>Sum</td>
<td>$180</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</tbody>
</table>
Voreinstellung (CSS)
display: table-row-group;
vertical-align: middle;
border-color: inherit;
}
Anmerkungen
Thetbody element must have one or more <tr> tags inside.The <thead>,
tbody, and <tfoot> elements will not affect the layout of the table by default. However, you can use CSS to style these elements.
<td>...</td>
Thetd tag defines a standard cell in an HTML table.An HTML table has two kinds of cells:
• Header cells - contains header information (created with the <th> element)
• Standard cells - contains data (created with the <td> element)
The text in <th> elements are bold and centered by default.
The text in
td elements are regular and left-aligned by default.
Beispiel
<tr>
<td>Cell A</td>
<td>Cell B</td>
</tr>
</table>
Voreinstellung (CSS)
display: table-cell;
vertical-align: inherit;
}
Anmerkungen
Use the colspan and rowspan attribute to let the content span over multiple columns or rows!
<textarea>...</textarea>
Thetextarea tag defines a multi-line text input control.A text area can hold an unlimited number of characters, and the text renders in a fixed-width font (usually Courier).
The size of a text area can be specified by the cols and rows attributes, or even better; through CSS' height and width properties.
Beispiel
At w3schools.com you will learn how to make a website. We offer free tutorials in all web development technologies.
</textarea>
Voreinstellung (CSS)
<tfoot>...</tfoot>
Thetfoot tag is used to group footer content in an HTML table.The
tfoot element is used in conjunction with the <thead> and <tbody> elements to specify each part of a table (footer, header, body).Browsers can use these elements to enable scrolling of the table body independently of the header and footer. Also, when printing a large table that spans multiple pages, these elements can enable the table header and footer to be printed at the top and bottom of each page.
The
tfoot tag must be used in the following context: As a child of a <table> element, after any <caption>, <colgroup>, and <thead> elements and before any <tbody> and <tr> elements.
Beispiel
<thead>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
</thead>
<tfoot>
<tr>
<td>Sum</td>
<td>$180</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</tbody>
</table>
Voreinstellung (CSS)
display: table-footer-group;
vertical-align: middle;
border-color: inherit;
}
Anmerkungen
Thetfoot element must have one or more <tr> tags inside.The <thead>, <tbody>, and
tfoot elements will not affect the layout of the table by default. However, you can use CSS to style these elements.
<th>...</th>
Theth tag defines a header cell in an HTML table.An HTML table has two kinds of cells:
• Header cells - contains header information (created with the
th element)• Standard cells - contains data (created with the <td> element)
The text in
th elements are bold and centered by default.The text in <td> elements are regular and left-aligned by default.
Beispiel
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
Voreinstellung (CSS)
display: table-cell;
vertical-align: inherit;
font-weight: bold;
text-align: center;
}
Anmerkungen
Use the colspan and rowspan attribute to let the content span over multiple columns or rows!
<thead>...</thead>
Thethead tag is used to group header content in an HTML table.The
thead element is used in conjunction with the <tbody> and <tfoot> elements to specify each part of a table (header, body, footer).Browsers can use these elements to enable scrolling of the table body independently of the header and footer. Also, when printing a large table that spans multiple pages, these elements can enable the table header and footer to be printed at the top and bottom of each page.
The
thead tag must be used in the following context: As a child of a <table> element, after any <caption>, and <colgroup> elements, and before any <tbody>, <tfoot>, and <tr> elements.
Beispiel
<thead>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
</thead>
<tfoot>
<tr>
<td>Sum</td>
<td>$180</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</tbody>
</table>
Voreinstellung (CSS)
display: table-header-group;
vertical-align: middle;
border-color: inherit;
}
Anmerkungen
Thethead element must have one or more <tr> tags inside.The
thead, <tbody>, and <tfoot> elements will not affect the layout of the table by default. However, you can use CSS to style these elements.
<time>...</time>
Thetime tag defines a human-readable date/time.This element can also be used to encode dates and times in a machine-readable way so that user agents can offer to add birthday reminders or scheduled events to the user's calendar, and search engines can produce smarter search results.
Beispiel
<p>I have a date on <time datetime="2008-02-14 20:00">Valentines day</time>.</p>
Voreinstellung (CSS)
<title>...</title>
Thetitle tag is required in all HTML documents and it defines the title of the document.The
title element:• defines a title in the browser toolbar
• provides a title for the page when it is added to favorites
• displays a title for the page in search-engine results
Beispiel
<head>
<title>HTML Reference</title>
</head>
<body>
The content of the document......
</body>
</html>
Voreinstellung (CSS)
display: none;
}
Anmerkungen
You can NOT have more than onetitle element in an HTML document.If you omit the
title tag, the document will not validate as HTML.
<tr>...</tr>
Thetr tag defines a row in an HTML table.A
tr element contains one or more <th> or <td> elements.Beispiel
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
Voreinstellung (CSS)
display: table-row;
vertical-align: inherit;
border-color: inherit;
}
<track />
Thetrack tag specifies text tracks for media elements (<audio> and <video>).This element is used to specify subtitles, caption files or other files containing text, that should be visible when the media is playing.
Beispiel
<source src="forrest_gump.mp4" type="video/mp4">
<source src="forrest_gump.ogg" type="video/ogg">
<track src="subtitles_en.vtt" kind="subtitles" srclang="en" label="English">
<track src="subtitles_no.vtt" kind="subtitles" srclang="no" label="Norwegian">
</video>
Voreinstellung (CSS)
<u>...</u>
Theu tag represents some text that should be stylistically different from normal text, such as misspelled words or proper nouns in Chinese.
Beispiel
Voreinstellung (CSS)
text-decoration: underline;
}
Anmerkungen
Avoid using theu element where it could be confused for a hyperlink.The HTML 5 specification reminds developers that other elements are almost always more appropriate than
u.
<ul>...</ul>
Theul tag defines an unordered (bulleted) list.Use the
ul tag together with the <li> tag to create unordered lists.
Beispiel
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
Voreinstellung (CSS)
display: block;
list-style-type: disc;
margin-top: 1em;
margin-bottom: 1 em;
margin-left: 0;
margin-right: 0;
padding-left: 40px;
}
Anmerkungen
To create ordered lists, use the <ol> tag.Use CSS to style lists.
<var>...</var>
Thevar tag is a phrase tag. It defines a variable.
Beispiel
Voreinstellung (CSS)
font-style: italic;
}
Anmerkungen
This tag is not deprecated, but it is possible to achieve richer effect with CSS.
<video>...</video>
Thevideo tag specifies video, such as a movie clip or other video streams.Currently, there are 3 supported video formats for the
video element: MP4, WebM, and Ogg.
Beispiel
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
Voreinstellung (CSS)
Anmerkungen
Any text between the <video> and </video> tags will be displayed in browsers that do not support thevideo element.
<wbr>...</wbr>
Thewbr (Word Break Opportunity) tag specifies where in a text it would be ok to add a line-break.
Beispiel
To learn AJAX, you must be familiar with the XML<wbr>Http<wbr>Request Object.
</p>
Voreinstellung (CSS)
Anmerkungen
When a word is too long, or you are afraid that the browser will break your lines at the wrong place, you can use thewbr element to add word break opportunities.
| Attribute | Werte | Beschreibung |
|---|---|---|
| accesskey | character | Specifies a shortcut key to activate/focus an element |
| class | classname | Specifies one or more classnames for an element (refers to a class in a style sheet) |
| contenteditable | true false |
Specifies whether the content of an element is editable or not |
| contextmenu | menu_id | Specifies a context menu for an element. The context menu appears when a user right-clicks on the element |
| data-* | somevalue | Used to store custom data private to the page or application |
| dir | ltr rtl auto |
Specifies the text direction for the content in an element |
| draggable | true false auto |
Specifies whether an element is draggable or not |
| dropzone | copy move link |
Specifies whether the dragged data is copied, moved, or linked, when dropped |
| hidden | -none- | Specifies that an element is not yet, or is no longer, relevant |
| id | id | Specifies a unique id for an element |
| lang | language_code(?) | Specifies the language of the element's content |
| spellcheck | true false |
Specifies whether the element is to have its spelling and grammar checked or not |
| style | style_definitions | Specifies an inline CSS style for an element |
| tabindex | number | Specifies the tabbing order of an element |
| titlle | text | Specifies extra information about an element |
| translate | no | Specifies whether the content of an element should be translated or not |
| abbr | text | Specifies an abbreviated version of the content in a header cell |
| accept | file_extension audio/* video/* image/* media_type(?) |
Specifies the types of files that the server accepts (only for type="file") |
| accept-charset | character_set(?) | Specifies the character encodings that are to be used for the form submission |
| action | URL | Specifies where to send the form-data when a form is submitted |
| alt | text | Specifies an alternate text for the area. Required if the href attribute is present |
| alt | text | Specifies an alternate text for an image |
| alt | text | Specifies an alternate text for images (only for type="image") |
| async | -none- | Specifies that the script is executed asynchronously (only for external scripts) |
| autocomplete | on off |
Specifies whether a form should have autocomplete on or off |
| autocomplete | on off |
Specifies whether an <input> element should have autocomplete enabled |
| autofocus | -none- | Specifies that a button should automatically get focus when the page loads |
| autofocus | -none- | Specifies that an <input> element should automatically get focus when the page loads |
| autofocus | -none- | Specifies that a <keygen> element should automatically get focus when the page loads |
| autofocus | -none- | Specifies that the drop-down list should automatically get focus when the page loads |
| autofocus | -none- | Specifies that a text area should automatically get focus when the page loads |
| autoplay | -none- | Specifies that the video will start playing as soon as it is ready |
| border | 0 1 |
Specifies whether or not the table is being used for layout purposes |
| challenge | challenge | Specifies that the value of the <keygen> element should be challenged when submitted |
| charset | character_set(?) | Specifies the character encoding for the HTML document |
| charset | charset(?) | Specifies the character encoding used in an external script file |
| checked | -none- | Specifies that an <input> element should be pre-selected when the page loads (for type="checkbox" or type="radio") |
| checked | -none- | Specifies that the command/menu item should be checked when the page loads. Only for type="radio" or type="checkbox" |
| cite | URL | Specifies the source of the quotation |
| cite | URL | Specifies a URL to a document that explains the reason why the text was deleted |
| cite | URL | Specifies a URL to a document that explains the reason why the text was inserted/changed |
| cite | URL | Specifies the source URL of the quote |
| cols | number | Specifies the visible width of a text area |
| colspan | number | Specifies the number of columns a cell should span |
| colspan | number | Specifies the number of columns a header cell should span |
| command | -none- | -none- |
| content | text | Gives the value associated with the http-equiv or name attribute |
| controls | -none- | Specifies that video controls should be displayed (such as a play/pause button etc). |
| coords | x1, y1, x2, y2 x, y, radius x1, y1, x2, y2,..,xn, yn |
Specifies the coordinates of the area |
| crossorigin | anonymous use-credentials |
Allow images from third-party sites that allow cross-origin access to be used with canvas |
| crossorigin | anonymous use-credentials |
Specifies how the element handles cross-origin requests |
| data | URL | Specifies the URL of the resource to be used by the object |
| datetime | YYYY-MM-DDThh:mm:ssTZD | Specifies the date and time of when the text was deleted |
| datetime | YYYY-MM-DDThh:mm:ssTZD | Specifies the date and time when the text was inserted/changed |
| datetime | YYYY-MM-DDThh:mm:ssTZD PTDHMS |
Represent a machine-readable date/time of the <time> element |
| default | -none- | Marks the command/menu item as being a default command |
| default | -none- | Specifies that the track is to be enabled if the user's preferences do not indicate that another track would be more appropriate |
| defer | -none- | Specifies that the script is executed when the page has finished parsing (only for external scripts) |
| dir | ltr rtl |
Required. Specifies the text direction of the text inside the <bdo> element |
| disabled | -none- | Specifies that a button should be disabled |
| disabled | -none- | Specifies that a group of related form elements should be disabled |
| disabled | -none- | Specifies that an <input> element should be disabled |
| disabled | -none- | Specifies that a <keygen> element should be disabled |
| disabled | -none- | Specifies that the command/menu item should be disabled |
| disabled | -none- | Specifies that an option-group should be disabled |
| disabled | -none- | Specifies that an option should be disabled |
| disabled | -none- | Specifies that a drop-down list should be disabled |
| disabled | -none- | Specifies that a text area should be disabled |
| download | filename | Specifies that the target will be downloaded when a user clicks on the hyperlink |
| download | filename | Specifies that the target will be downloaded when a user clicks on the hyperlink |
| enctype | application/x-www-form-urlencoded multipart/form-data text/plain |
Specifies how the form-data should be encoded when submitting it to the server (only for method="post") |
| for | element_id | Specifies which form element a label is bound to |
| for | element_id | Specifies the relationship between the result of the calculation, and the elements used in the calculation |
| form | form_id | Specifies one or more forms the button belongs to |
| form | form_id | The form attribute specifies one or more forms the fieldset belongs to. |
| form | form_id | The form attribute specifies one or more forms the <input> element belongs to. |
| form | form_id | Specifies one or more forms the <keygen> element belongs to |
| form | form_id | Specifies one or more forms the label belongs to |
| form | form_id | Specifies one or more forms the <meter> element belongs to |
| form | form_id | Specifies one or more forms the object belongs to |
| form | form_id | Specifies one or more forms the output element belongs to |
| form | form_id | Defines one or more forms the select field belongs to |
| form | form_id | Specifies one or more forms the text area belongs to |
| formaction | URL | Specifies where to send the form-data when a form is submitted. Only for type="submit" |
| formaction | URL | Specifies the URL of the file that will process the input control when the form is submitted (for type="submit" and type="image") |
| formenctype | application/x-www-form-urlencoded multipart/form-data text/plain |
Specifies how form-data should be encoded before sending it to a server. Only for type="submit" |
| formenctype | application/x-www-form-urlencoded multipart/form-data text/plain |
Specifies how the form-data should be encoded when submitting it to the server (for type="submit" and type="image") |
| formmethod | get post |
Specifies how to send the form-data (which HTTP method to use). Only for type="submit" |
| formmethod | get post |
Defines the HTTP method for sending data to the action URL (for type="submit" and type="image") |
| formnovalidate | -none- | Specifies that the form-data should not be validated on submission. Only for type="submit" |
| formnovalidate | -none- | Defines that form elements should not be validated when submitted |
| formtarget | _blank _self _parent _top framename |
Specifies where to display the response after submitting the form. Only for type="submit" |
| formtarget | _blank _self _parent _top framename |
Specifies where to display the response that is received after submitting the form (for type="submit" and type="image") |
| headers | header_id | Specifies one or more header cells a cell is related to |
| headers | header_id | Specifies one or more header cells a cell is related to |
| height | pixels | Specifies the height of the canvas |
| height | pixels | Specifies the height of the embedded content |
| height | pixels | Specifies the height of an image |
| height | pixels | Specifies the height of an <input> element (only for type="image") |
| height | pixels | Specifies the height of the object |
| height | pixels | Sets the height of the video player |
| high | number | Specifies the range that is considered to be a high value |
| href | URL | Specifies the URL of the page the link goes to |
| href | URL | Specifies the hyperlink target for the area |
| href | URL | Specifies the base URL for all relative URLs in the page |
| href | URL | Specifies the location of the linked document |
| hreflang | language_code(?) | Specifies the language of the linked document |
| hreflang | language_code(?) | Specifies the language of the target URL |
| hreflang | language_code(?) | Specifies the language of the text in the linked document |
| http-equiv | content-type default-style refresh |
Provides an HTTP header for the information/value of the content attribute |
| icon | URL | Specifies an icon for the command/menu item |
| ismap | -none- | Specifies an image as a server-side image-map |
| keytype | rsa dsa ec |
Specifies the security algorithm of the key |
| kind | captions chapters descriptions metadata subtitles |
Specifies the kind of text track |
| label | text | Specifies a visible label for the menu |
| label | text | Required. Specifies the name of the command/menu item, as shown to the user |
| label | text | Specifies a label for an option-group |
| label | text | Specifies a shorter label for an option |
| label | label | Specifies the title of the text track |
| list | datalist_id | Refers to a <datalist> element that contains pre-defined options for an <input> element |
| longdesc | string | Specifies a URL to a detailed description of an image |
| loop | -none- | Specifies that the video will start over again, every time it is finished |
| low | number | Specifies the range that is considered to be a low value |
| manifest | URL | Specifies the address of the document's cache manifest (for offline browsing) |
| max | number date |
Specifies the maximum value for an <input> element |
| max | number | Specifies the maximum value of the range |
| max | number | Specifies how much work the task requires in total |
| maxlength | number | Specifies the maximum number of characters allowed in an <input> element |
| maxlength | number | Specifies the maximum number of characters allowed in the text area |
| media | value(?) | Specifies what media/device the linked document is optimized for |
| media | value(?) | Specifies what media/device the target URL is optimized for |
| media | value(?) | Specifies on what device the linked document will be displayed |
| media | value(?) | Specifies the type of media resource |
| media | value(?) | Specifies what media/device the media resource is optimized for |
| method | get post |
Specifies the HTTP method to use when sending form-data |
| min | number date |
Specifies a minimum value for an <input> element |
| min | number | Specifies the minimum value of the range |
| multiple | -none- | Specifies that a user can enter more than one value in an <input> element |
| multiple | -none- | Specifies that multiple options can be selected at once |
| muted | -none- | Specifies that the audio output of the video should be muted |
| name | name | Specifies a name for the button |
| name | name | Specifies a name for the fieldset |
| name | text | Specifies the name of a form |
| name | name | Specifies the name of an <iframe> |
| name | text | Specifies the name of an <input> element |
| name | name | Defines a name for the <keygen> element |
| name | mapname | Required. Specifies the name of an image-map |
| name | application-name author description generator keywords |
Specifies a name for the metadata |
| name | name | Specifies a name for the object |
| name | name | Specifies a name for the output element |
| name | name | Specifies the name of a parameter |
| name | text | Defines a name for the drop-down list |
| name | text | Specifies a name for a text area |
| novalidate | -none- | Specifies that the form should not be validated when submitted |
| open | -none- | Specifies that the details should be visible (open) to the user |
| open | -none- | Specifies that the dialog element is active and that the user can interact with it |
| optimum | number | Specifies what value is the optimal value for the gauge |
| pattern | regexp | Specifies a regular expression that an <input> element's value is checked against |
| placeholder | text | Specifies a short hint that describes the expected value of an <input> element |
| placeholder | text | Specifies a short hint that describes the expected value of a text area |
| poster | URL | Specifies an image to be shown while the video is downloading, or until the user hits the play button |
| preload | auto metadata none |
Specifies if and how the author thinks the video should be loaded when the page loads |
| radiogroup | groupname | Specifies the name of the group of commands that will be toggled when the command/menu item itself is toggled. Only for type="radio" |
| readonly | -none- | Specifies that an input field is read-only |
| readonly | -none- | Specifies that a text area should be read-only |
| rel | alternate author bookmark help license next nofollow noreferrer prefetch prev search tag |
Specifies the relationship between the current document and the linked document |
| rel | alternate author bookmark help license next nofollow noreferrer prefetch prev search tag |
Specifies the relationship between the current document and the target URL |
| rel | alternate author help icon license next prefetch prev search stylesheet |
Required. Specifies the relationship between the current document and the linked document |
| required | -none- | Specifies that an input field must be filled out before submitting the form |
| required | -none- | Specifies that the user is required to select a value before submitting the form |
| required | -none- | Specifies that a text area is required/must be filled out |
| reversed | -none- | Specifies that the list order should be descending (9,8,7...) |
| rows | number | Specifies the visible number of lines in a text area |
| rowspan | number | Sets the number of rows a cell should span |
| rowspan | number | Specifies the number of rows a header cell should span |
| sandbox | (no value) allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-top-navigation |
Enables an extra set of restrictions for the content in an <iframe> |
| scope | col row colgroup rowgroup |
Specifies whether a header cell is a header for a column, row, or group of columns or rows |
| scoped | -none- | Specifies that the styles only apply to this element's parent element and that element's child elements |
| selected | -none- | Specifies that an option should be pre-selected when the page loads |
| shape | default rect circle poly |
Specifies the shape of the area |
| size | number | Specifies the width, in characters, of an <input> element |
| size | number | Defines the number of visible options in a drop-down list |
| sizes | HeightxWidth any |
Specifies the size of the linked resource. Only for rel="icon" |
| sortable | sortable | Specifies that the table should be sortable |
| sorted | reversed number reversed number number reversed |
Defines the sort direction of a column |
| span | number | Specifies the number of columns a <col> element should span |
| span | number | Specifies the number of columns a column group should span |
| src | URL | Specifies the address of the external file to embed |
| src | URL | Specifies the address of the document to embed in the <iframe> |
| src | URL | Specifies the URL of an image |
| src | URL | Specifies the URL of the image to use as a submit button (only for type="image") |
| src | URL | Specifies the URL of an external script file |
| src | URL | Specifies the URL of the media file |
| src | URL | Required. Specifies the URL of the track file |
| src | URL | Specifies the URL of the video file |
| srcdoc | HTML_code | Specifies the HTML content of the page to show in the <iframe> |
| srclang | language_code(?) | Specifies the language of the track text data (required if kind="subtitles") |
| start | number | Specifies the start value of an ordered list |
| step | number | Specifies the legal number intervals for an input field |
| target | _blank _self _parent _top framename |
Specifies where to open the linked document |
| target | _blank _self _parent _top framename |
Specifies where to open the target URL |
| target | _blank _self _parent _top framename |
Specifies the default target for all hyperlinks and forms in the page |
| target | _blank _self _parent _top framename |
Specifies where to display the response that is received after submitting the form |
| type | media_type(?) | Specifies the media type of the linked document |
| type | media_type(?) | Specifies the media type of the target URL |
| type | button submit reset |
Specifies the type of button |
| type | media_type(?) | Specifies the media type of the embedded content |
| type | button checkbox color date datetime datetime-local file hidden image month number password radio range reset search submit tel text time url week |
Specifies the type <input> element to display |
| type | media_type(?) | Specifies the media type of the linked document |
| type | list context toolbar |
Specifies which type of menu to display |
| type | command checkbox radio |
Specifies the type of command/menu item. Default is "command" |
| type | media_type(?) | Specifies the media type of data specified in the data attribute |
| type | 1 a A i I |
Specifies the kind of marker to use in the list |
| type | media_type(?) | Specifies the media type of the script |
| type | media_type(?) | Specifies the media type of the media resource |
| type | media_type(?) | Specifies the media type of the <style> tag |
| usemap | #mapname | Specifies an image as a client-side image-map |
| usemap | #mapname | Specifies the name of a client-side image map to be used with the object |
| value | value | Specifies an initial value for the button |
| value | text | Specifies the value of an <input> element |
| value | number | Specifies the value of a list item. The following list items will increment from that number (only for <ol> lists) |
| value | number | Required. Specifies the current value of the gauge |
| value | value | Specifies the value to be sent to a server |
| value | value | Specifies the value of the parameter |
| value | number | Specifies how much of the task has been completed |
| width | pixels | Specifies the width of the canvas |
| width | pixels | Specifies the width of the embedded content |
| width | pixels | Specifies the width of an <iframe> |
| width | pixels | Specifies the width of an image |
| width | pixels | Specifies the width of an <input> element (only for type="image") |
| width | pixels | Specifies the width of the object |
| width | pixels | Sets the width of the video player |
| wrap | soft hard |
Specifies how the text in a text area is to be wrapped when submitted in a form |
| xmlns | http://www.w3.org/1999/xhtml | Specifies the XML namespace attribute (If you need your content to conform to XHTML) |

