HTML refers to Hypertext Markup Language (Hyper Text Markup Language)
XHTML is a more rigorous and pure HTML version.
XHTML refers to the Extensible Hypertext Label Language (extensible Hypertext Markup Language).
XHTML is the HTML that is redefined as an XML application.
XHTML is a standard.
You should write HTML code in lowercase letters right away, and never develop a bad habit of ignoring similar </p> tags.
XHTML elements must be closed non-empty tags must use the end tag.
Property names must be lowercase
Attribute values must be quoted
Attribute cannot be abbreviated
Replace the name attribute with the Id attribute
XHTML DTD defines the HTML elements that are forced to use
<! DOCTYPE html
Public "-//W3C//DTD XHTML 1.0 strict//en"
"Http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >
HTML5 is the next generation of HTML.
<! DOCTYPE html>
---------------------------------------------------------------------
The role of <blockquote> also refers to the text of others. But it is a reference to a long text, such as the introduction of a large section of the text of a well-known writer, then need this tag.
The browser's parsing of <blockquote> tags is indented style.
<q> tags, short text references
Quotes
Space
<address> tags, adding address information to a webpage
Do you want to add a line of code? Use <code> label <code>var i=i+300;</code>
If you have more than one line of code, you can use the <pre> tag.
Ul-li is a list of information that has no back-and-forth order. List of information with previous order use OL
Create four elements of a table:
Table, tbody, tr, TH, TD
<TBODY>...</TBODY>: When the table content is very long, the table will download a little bit, but if the <tbody> tag is added, the form will be displayed after all the contents have been downloaded. Code in the right-hand code editor.
Caption tab, add the caption title to the table: above the table.
<table summary= "form brief text" >
The content of the summary is not displayed in the browser. Its role is to increase the readability of the table (semantic), so that the search engine to better understand the table content, but also to enable screen readers to better help special users to read the table content.
Use mailto to link email addresses in Web pages
How do you feel about this review, <a href= "Mailto:[email protected]?subject= view of The Great Gatsby &body= Hello, some ideas on this comment. "> Send </a> mail to me
Use form labels to interact with users
<form method= "transfer Mode" action= "Server File" >
Text input box, password entry box
<input type= "text" name= "name" value= "literal"/>
<input type= "password" name= "password" value= "text"/>
Text fields, multi-line text input support
<textarea rows= "Number of rows" cols= "columns" > Text </textarea>
Use a radio box, check box, let the user choose <input type= "Radio/checkbox" value= "value" name= "name" checked= "Checked"/>
Note: The same group of radio buttons, name values must be consistent
Save space with a drop-down list box
<select>
<option value= "reading" > Reading </option>
<option value= "Travel" > Travel </option>
<option value= "Sports" > Sports </option>
<option value= "shopping" > Shopping </option>
</select>
Set the Selected= "selected" property, the option is selected by default
The drop-down list can also be multi-select, in the <select> tag set multiple= "Multiple" property, you can implement multi-select function, under the Widows operating system, the multi-select when the CTRL key at the same time to click (under the Mac use Command + click), you can select multiple options. The following code:
Use the reset button to reset the form information
When the user needs to reset the form information to the initial state, such as when the user enters the "user name" and finds that the handwriting is incorrect, you can use the Reset button to return the input box to its original state. You only need to set the type to "reset".
<input type= "reset" value= "reset" >
Label label on Form form
The label label does not present any special effects to the user, and it is useful for improving usability for the mouse user. If you click on the text within the label tag, the control is triggered. That is, when the user clicks the label label, the browser automatically shifts focus to the label-related form control (automatically selected on the form control associated with the label label).
<label for= "Control ID Name" >
HTML Learning Notes