Developing commercial sites using HTML language and CSS3

Source: Internet
Author: User

First, the HTML5 Foundation

The basic structure of the 1.HTML5 file includes playing wild declarations, playing wild basic information, Web page headers, and page bodies.

2. Basic page tags include title tag

3. Insert image is using label , requires src and ALT attribute required.

4. Hyperlinks <a> tags are used to establish navigation links between pages, which can be divided into links between pages, anchor links, and functional link.

Second, list, table

1. The unordered list consists of <ul><li>, which arranges the contents without order, each with a single row, and a solid dot before the list.

2. The sequence list consists of <ol><li>, and the contents arranged in ordered lists are usually written in sequential order, with each list item in a separate row.

3. The definition list consists of <dl>,<dt,<dd>, which is usually used for the occasion with the explanatory content of the title and title.

3. Use <table>,<tr>,<td> to create a table.

5. Cross-column: colspan= "Number of cells across the scale".

Cross-line: rowspan= the number of cells vertically across.

Third, form

1.text: Text Box
<input type= "text" name= "username" value= "admin" size= "+" maxlength= "/>"

2.password: Password box
<input type= "Password" name= "userpwd" value= "size="-"maxlength=" >

3.radio: Radio button

4:checkbox: check box: All can be selected

5::select--option: drop-down list

6. Button:
Button: Normal buttons
<input type= "button" Name= "btn" value= "normal button"/>
Reset: Reset button: Initialize form information
<input type= "reset" name= "reset" value= "reset button"/>
Submit: The information entered in the form is submitted
<input type= ' submit ' name= ' submit ' value= ' submit button '/>
Image: Icon button: Same as Submit function
<input type= "image" src= ". /images/login.gif "/>
7. File domains:

9. URL: Verify URL format is correct when submitting
<input type= "url" name= "url"/>

10. Number: Must be submitted with a value greater than or equal to the minimum value less than or equal to the maximum, and each increment step
<input type= "Number" min= "1" max= "Ten" step= "2"/>

11. Slider: Must be submitted with a value greater than or equal to the minimum value less than or equal to the maximum value, and each increment step
<input type= "range" name= "range" min= "0" max= "+" step= "2"/>

12. Search box
Search box: <input type= "search" name= "search"/>
13. Hidden Fields

Hidden fields: <input type= "hidden" name= "hidden" value= "123"/>

14. Read-only
Read-only: <input type= "text" name= "name" value= "Zhang San" readonly/>

15. Disable
Disabled: <input type= "Submit" Name= "submits" value= "Submit" disabled/>

16. Labeling of form elements
<input type= "text" name= "textfors" id= "textfor" value= "hehe"/>
17. Form Validation:
1. To relieve the pressure on the server
2. Ensure the feasibility and safety of the data

17.1.placeholder:
<input type= "text" placeholder= "Please enter user name" Name= "username" value= "" size= "" Maxlength= "required/><br/>
17.2.required:
<input type= "text" placeholder= "Please enter user name" Name= "username" value= "" size= "" Maxlength= "required/><br/>
17.3.pattern
The user enters content that must conform to the rules that are referred to in the regular expression, or the form cannot be submitted
<input type= "text" name= "phone" required pattern= "^1[358]\d{9}"/>

Developing commercial sites using HTML language and CSS3

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.