First, the root element
<doctype> |
Defines the document type. |
|
Defines an HTML document. |
Second, meta-data elements
|
Defines information about the document. |
<meta> |
Defines metadata about an HTML document. |
<link> |
Defines the relationship between a document and an external resource, and is typically used to introduce style sheets. |
<base> |
Defines the default address or default destination for all links on the page. |
<title> |
Defines the document title. |
<style> |
Defines the style information for a document. |
Third, the SCRIPT element
<script> |
Define client script. |
<noscript> |
Defines what is displayed when the browser does not support scripting |
Four, block elements
<body> |
Defines the body of the document. |
|
Defines the document title. |
<p> |
Defines a document paragraph. |
<blockquote> |
Defines a block reference. |
<ul>, <ul>, <dl> |
Define the list. |
<table> |
Define the table. |
1. List elements
- Unordered list
<ul> |
Defines an unordered list. |
<li> |
Defines a list item. |
- Ordered list
<ol> |
Define an ordered list. |
<li> |
Defines a list item. |
- Definition List
<dl> |
Defines a list of definitions. |
<dt> |
Definition defines a term. |
<dd> |
Definition definition description. |
2. Table elements
<table> |
Define the table. |
<thead> |
Defines the header of the table. |
<tbody> |
Defines the body of the table. |
<tfoot> |
Defines the footer of the table. |
<th> |
Defines a table header row. |
<tr> |
Defines the row for the table. |
<td> |
Defines a table cell. |
V. Text element 1, text formatting elements
<em> |
Defines the emphasis on text. |
<strong> |
Define the aggravating tone. |
<sup> |
Defines the superscript word. |
<sub> |
Defines the subscript word. |
<ins> |
Defines the insertion word. |
<del> |
Defines the deletion word. |
<b> |
Defines bold text. |
<i> |
defines italic text. |
<big> |
Defines a large word. |
<small> |
Define small words. |
2. "Computer output" label
<code> |
Defines the computer code. |
<kbd> |
Defines the keyboard code. |
<pre> |
Defines the pre-formatted text. |
3. References, references, and terminology definitions
<q> |
Defines a short reference. |
<blockquote> |
Defines a long reference. |
<address> |
Define the address. |
Vi. links and Images
<a> |
Defining hyperlinks |
|
Define the image. |
<map> |
Define the image map. |
<area> |
Defines the clickable area in the image map. |
Vii. <div> and <span>
<div> |
Defines a partition or section (division/section) in a document. |
<span> |
Defines span, which is used to combine inline elements in a document. |
Viii. Framework
<frameset> |
Defines how the window is split into frames. (Note:<frameset> elements can only be nested within the |
<frame> |
Defines the HTML document that is placed in each frame. |
IX. Inline Framework
<iframe> |
Defines the inline child window (frame). |
Ten. Form elements
<form> |
Defines a form for user input. |
<input> |
Defines an input field. |
<textarea> |
Defines a text field (a multiline input control). |
<lable> |
Defines a control's label. |
<select> |
Defines a selection list. |
<option> |
Defines the options in the drop-down list. |
<optgroup> |
Define an option group. |
<button> |
Defines a button. |
<fieldset> |
Define the domain. |
<legend> |
Defines the title of the field. |
Backend code agriculture Talk Front end (HTML) lesson two: Common elements