What are the commonly used html element structures?

php中世界最好的语言
Release: 2018-02-05 09:19:20
Original
2637 people have browsed it

This time I will bring you what are the commonly used html element structures and what are the precautions for using commonly used html element structures. The following is a practical case, let's take a look.

  1. Basic structure:

     
Copy after login

2. Document type:

(1)HTML 4.01


        
Copy after login

(2)HTML5


        
Copy after login

(3)XHTML 1.0


        
Copy after login

3.Header:
(1)Character set

Copy after login

(2)Introduce JS

   
Copy after login

(3)Introduce CSS

Copy code

The code is as follows:

 
Copy after login

(4) Set the default jump

 
Copy after login

(5) Set search engine related information

 
Copy after login

4. Subject:

(1) Basic content

 
Copy after login

(2) Form
Submit by GET method:

Copy after login

Submit by POST method:

Copy after login


Carry files Submit:

Copy after login


Commonly used on the home page:

文本域: 密码域: 普通按钮: 单选按钮: 多选按钮:
Copy after login

I believe you have mastered the method after reading these cases. For more exciting information, please pay attention to other related articles on the PHP Chinese website!

Related reading:

How to set input to read-only effect through disabled and readonly

What are the tags of meta Function

How to implement refresh redirection of the HTML header tag meta

How to use the form internal tag of HTML

The above is the detailed content of What are the commonly used html element structures?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!