Summary of commonly used html elements including basic structure, document type, header, body, etc._HTML/Xhtml_Web page production

WBOY
Release: 2016-05-16 16:38:14
Original
1568 people have browsed it

1. Basic structure:

Copy code
The code is as follows:



< head>







2. Document type:

(1)HTML 4.01



(2)HTML5



(3)XHTML 1.0

Copy Code
The code is as follows:



3. Header:
(1) Character set

Copy code
The code is as follows:



(2) Introduce JS

Copy code
The code is as follows:






(3) Introducing CSS

Copy Code
The code is as follows:




(4) Set the default jump

Copy code
The code is as follows:




(5) Set search engine related information

Copy code
The code is as follows:




4. Main body:

(1) Basic content

Copy code
The code is as follows:





(2) Form
Submit by GET:

Submit by POST:


Submit with file:


Home page commonly used:

Copy code
The code is as follows:







Text field:

Password field:
Normal button:
Radio button:
Multi-select button:

To display the uploaded file name:


File upload:
Hidden field:
Submit button:
Image submit button:
Reset button:

Multi-line text area:

Drop-down menu:

Copy code
The code is as follows:

< select name="" size="" multiple>


< /select>

(3) Hyperlink
Click to jump to JS:
Empty hyperlink (click to jump to the top of the page):
Empty hyperlink (click not to move):

Image hyperlink: Scale is reduced, file size remains unchanged):

(5) Table





Copy code
The code is as follows:





A B
A B



(6) List

Unordered list:




Copy code
The code is as follows:


  • First point

  • Second point

  • < ;/ul>

    • First point

    • Second point



    • First point

    • Second point



Ordered list:

Copy code
The code is as follows :


  1. First point

  2. Second point



  1. First point

  2. Second point


  1. First point

  2. Second point


  1. First point

  2. Second point< /li>


  1. First point

  2. Second point< ;/li>


(7) Multimedia

Rolling subtitles:

Background Music:

Audio, video, flash, mpeg, etc.:

(8) Line control

Title:

Paragraph:



Line break:


Horizontal line:


5. Framework

Copy code
The code is as follows:





Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template