China Naming Network - Company naming - How to make a web page with HTML5

How to make a web page with HTML5

Now take HBuilder tool writing as an example:

1. Open this tool and right-click in the Project Manager to create a web project.

2. Right-click the project name and create a new HTML file-form0 1.html.

& lt! DOCTYPE html & gt

& lt! -

? Author: Offline

? Time: 20 17-0 1-06

? Description: Form Form

?

? In the Form tab, there are two commonly used properties.

? Action: Address of the form submission server.

? Method: the method/mode of form submission -get/post.

Other submission methods-upload and delete

Submission method-get (default submission method)

1. Put the requested parameter in the address bar.

2. Dangerous

3. There is a cache

4. The size of transmitted data is limited.

Submission Method-Post

The parameters requested by 1. are put into the http protocol.

2. Relatively safe-information such as account number and password will not be placed in the address bar.

3. No cache

4. The size of transmitted data is limited.

? After changing it to post, an error message may appear.

? Input Label: defines the input fields where users can enter data.

? Attribute:

? Type indicates the type of input tag, and the default value is text.

Button type: normal button reset button reset? Submit button Submit

? Value defines the text to display.

-& gt;

& lthtml & gt

? & lthead & gt

& ltmeta charset="utf-8 " >

& lttitle & gtForm Form 1 < /title >

? & lt/head & gt;

? & ltbody & gt

& ltform action="" method="post " >

? & ltinput type = " text " name = " username " value = " Zhang San "/& gt;

? & ltinput type = " submit " value = " submit "/& gt;

& lt/form & gt;

? & lt/body & gt;

& lt/html & gt;

3. Check whether this webpage is HTML5, mainly depending on the header.

4.HTML5 has added a lot of new content. Please refer to API for details, such as the format of embedding audio/video files in web pages.