Basic HTML usage

Source: Internet
Author: User

Hmtl
Hyper Text Markup Language
Hypertext Markup Language
Hypertext: Beyond the normal text color bold and even set hyperlinks
Tags: some special symbols that the browser has defined that are surrounded by angle brackets
Language: User and browser communication tools

HTML files should end with. HTML (not recommended with. htm endings)
1.html language If the label has a beginning with an end called a containment tag
2.html language If the label does not have a label body called an empty tag
3.html language is not how to standardize the language best should follow the norms
4.html labels are case-insensitive domestic developers prefer lowercase best lowercase
Best-in-label nesting in 5.html languages
6. The tag can have attributes:
Write Format Property name = "attribute value" "" ""

Text Class Tags:
Characteristics:
Bold wrap up and down white from one to six getting smaller.
Common Properties:
Align: Alignment left center right
Text Tags:
<font></font><br/>
Common Properties:
Color: Colors
Size: Sizes 1-7 1 to 7 getting bigger
Face: Font family

The value of the color:
1. Direct color of the English word
2.RGB six hexadecimal digits followed by # #12345f
<b></b>: Bold
<strong></strong>: Bold
<i></i>: Italic
Layout Class Tags:
Common Properties:
Width: Wide
Width value:
1.% percent
2.px
Align: Alignment
Line Wrapping Labels
<br/>

Paragraph labels
<p></p>
Common Properties:
Align: Alignment

Picture Tags:

Common Properties:
SRC: Specify picture path
Alt: Alternate text
Width: Wide
Height: High
Path value:
1. Relative path:
Current path:./logo2.png./Can not write
Parent path:.. /img/logo2.png
2. Absolute path:
Http://img.baidu.com/xx.jpg
List label
OL: Ordered list
UL: Unordered list
Common Properties:
Ol:
Type: Controls the preceding explicit style
1: Default
A
A
I
I
Ul:
Type
Disc: Default
Circle: Hollow Circle
Square: Square

Common Sub-labels
Li: List items
Hyperlink Tags:
<a></a>
Common Properties:
HREF: The path of the page to jump
Target: How to open a page with a jump
_blank: Opening a new tab opens
_self: Default
FrameName: Displayed in the frame set
Path value:
Relative path:
Current path:
Parent path:
Absolute Road Strength: URL
#: Jump to the current page
Table Tags:
<table></table>
Common Properties:
Border:px
Width: Wide
Height: High
cellspacing: Spacing of table lines
Align: Alignment
Common Sub-Tags:
<tr></tr>
TR Label Line
Common Properties:
bgcolor: Background color
Align: Alignment
Common Sub-Tags:
<td></td>: cell
Common Properties:
bgcolor: Background color
Align: Alignment
rowspan: Row Merge
Colspan: Column Merge
<th></th>: Table Header Label
Features: Bold Center
Escape character:
Common escape characters:
Writing format
& words;
Space Escape Character: &nbsp;
Greater than sign;: &gt; Greate than
Less than number <: &lt; Less than
& Symbols: &amp;
Form form Labels:
Form form Labels:
<form></form>
Common Properties:
Action: Submit Address
Method: How to submit
Get
Default Submission Method
is the parameter appended to the URL? Parameter name = argument value & parameter name = parameter value
Maximum data cannot exceed 1kb
Post
No data size limit
Not following the URL
More secure
Common Sub-Tags:
Input: Enter box
Type: (10 kinds)
Text: Default
Password: Password box
Radio: Radio Box
CheckBox: Multi Marquee

File: Uploading Files

Button: Normal buttons
Submit: Commit button
Reset: Reset button

Image: Learn about

Hidden: Hidden Fields

Select: Drop-down selection box
Common Sub-tags
Option
TextArea: Text field label
Common Properties
Rows: Rows
COLS: Column

Common Properties:
1.name Properties
1. Group multiple marquee boxes in a single marquee
2. If you want to submit data you must give the label a name attribute and must be assigned a value
2.value
1. Naming the Button class label
2. Single-Select multi-box when submitting data you want to submit your own desired Value property must be assigned value
Set Default values:
1. Normal textbox Password box hidden set default value to a Value property value must be assigned
2. Set a default value for the marquee multi-box to set a checked property
3. Give the Select drop-down Select box to set the default value to its sub-label option to set the selected property
4. Set default values for textarea to write content directly in the tag body

?username=tom&password=12345&gender=0&hobby=eat&hobby=sleep&avatar=&province=02& Hello, city=0201&desc=.
Click the Submit button to submit the form submission event submission data
Followed by a question mark after the URL? parameter name = parameter value
If there are multiple parameters & connections

Basic HTML usage

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.