H5 tags are no different from html tags. We mainly introduce the basic tags of H5.
1. The basic tags header and body. The "title" element of the header is mainly displayed in the tag. In the page, as well as set the language and encoding format used. The body is the text part
2. The title of H5 is h1-h6, which gradually becomes smaller
3. The paragraph of html is the tag p
4. The hyperlink of html is a tag. eg: Baidu click
5.html insert image eg:
Code example
<!DOCTYPE html><html lang="en"><head>
<meta charset="UTF-8">
<title>H5 Study</title></head><body>
liupeng
hello <h1>标题h1</h1>
<h2>标题h2</h2>
<h3>标题h3</h3>
<h4>标题h4</h4>
<h5>标题h5</h5>
<h6>标题h6</h6>
<P>hello liupeng welcome to H5</P>
hello <a href="http://www.baidu.com">百度一下</a>
<img src="images/hello.jpg"></body></html>
Copy after login
Copy after login
html element syntax
1. The element refers to the start tag to All contents of the end tag
2. Element syntax:
The content of the element is the content from the start tag to the end tag
Empty elements can be closed in the start tag For example
Line break
Most html elements can have attributes
3. Most html elements can be nested
##H5 tags It is no different from html tags. It mainly introduces the basic tags of H5
1. Basic tags header and body. The "title" element of the header is mainly displayed in the tag page, and the language and encoding format used are set. The body is the text part
2. The title of H5 is h1-h6, which gradually becomes smaller
3. The paragraph of html is the tag p
4. The hyperlink of html is a tag. eg: Baidu click
5.html insert image eg:
Code example
<!DOCTYPE html><html lang="en"><head>
<meta charset="UTF-8">
<title>H5 Study</title></head><body>
liupeng
hello <h1>标题h1</h1>
<h2>标题h2</h2>
<h3>标题h3</h3>
<h4>标题h4</h4>
<h5>标题h5</h5>
<h6>标题h6</h6>
<P>hello liupeng welcome to H5</P>
hello <a href="http://www.baidu.com">百度一下</a>
<img src="images/hello.jpg"></body></html>
Copy after login
Copy after login
html element syntax1. The element refers to the start tag to All contents of the end tag2. Element syntax:The content of the element is the content from the start tag to the end tagEmpty elements can be closed in the start tag For example Line break
Most html elements can have attributes3. Most html elements can be nested The above is the H5 learning journey-H5 Basic tag (2) content, for more related content, please pay attention to the PHP Chinese website (www.php.cn)!