Learning some tags in html
Oct 18, 2016 am 08:42 AMI learned many attributes of HTML5 by reading the manual today. Now the summary is as follows
<body bgcolor="BED1A2" text="FFFFFF" link="yellow" alink="red" vlink="blue">
Background is used to set the background of the page, followed by the address of the image
Bgcolor is used to set the background color of the page. Followed by color or hexadecimal number
Text is used to set the font color without hyperlinks
Link is used to set the font color of hyperlinks
alink is used to set the color of a hyperlink when clicked
Vlink is used to set the font color after clicking on the hyperlink
<a href=” www.baidu.com” > Baidu</a>
<a name=”www.baidu.com”>Page jump place</a>
<nav> is used to group links with navigation properties together, such as
<nav>
<a href=” #” > Baidu</a>
<a href=” #” > Baidu</a>
<a href=” #” > Baidu</a>
</nav>
H<sub>2</sub>SO<sub>4</sub>
<sub> is the tag used for subscripting </sub>
<sup> is the tag used for superscript </sup>
From title one to title six respectively. The font gradually shrinks and wraps automatically
<h1></h1>
<h2></h2>
<h3></h3>
<h4></h4>
<h5></h5>
<h6></h6>
<img src="1.jpeg" width="500" height="auto">
Img is the tag to insert the image, and width is the width of the image. Height is the height of the picture. You can fill in a numerical value, or you can fill in the "address and suffix name of the picture" in auto (scaled) src
<font size="5px" font color=”red”>This is a website about Baidu</font>
size defines the size of the font, followed by px (pixels)
color defines the color of the font
Line break <br/>
Horizontal dividing line<hr>
<!-- Red horizontal line -->
<hr color="red"/>
<!-- Alignment style (left/center/right) and horizontal line width are used together -->
<hr align="left/cener/right" />
<!-- Horizontal line with width 50% -->
<hr width="50%"/>
<!-- Horizontal line with a height of 50 pixels -->
<hr size="50"/>
<!-- Remove the horizontal line from the shadow -->
<hr noshade="noshade">
Code attached
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>20161017</title>
</head>
<body bgcolor="BED1A2" text="FFFFFF" link="yellow" alink="red" vlink="blue">
<h1>Fengqiao Night Mooring</h1>
<h5>Zhang Ji</h5>
<h3>The moon is setting and the sky is covered with crows and frost, </h3>
<h3>Jiang Feng fishes and fires against Chou Mian. </h3>
<h3>Hanshan Temple outside Gusu City, </h3>
<h3> The midnight bell rings to the passenger ship. </h3>
<a href=""www.baidu.com" >baidu</a></br>
Jump to another place on the page:</br>
<a name="www.baidu.com">111</a></br>
H<sub>2</sub>SO<sub>4</sub><br/>
<img src="1.jpeg" width="500" height="auto"><br/>
<img src="5.jpg" align=top> Example <br/>
<img src="5.jpg" align=middle> Example <br/>
<img src="5.jpg" align=bottom> Example <br/>
Only one line of text can be placed on both sides of the image.
<!-- Picture with border pixels of 15 -->
<img src="5.jpg" border=15/>
<br/>
<font size="5px" font color="red">This is a website about Baidu</font><br/>
<font size="20px">This is a website about Baidu</font><br/>
<!-- Red horizontal line -->
<hr color="red"/>
<!-- Alignment style (left/center/right) and horizontal line width are used together -->
<hr align="left/cener/right" />
<!-- Horizontal line with width 50% -->
<hr width="50%"/>
<!-- Horizontal line with a height of 50 pixels -->
<hr size="50"/>
<!-- Remove the horizontal line from the shadow -->
<hr noshade="noshade">
<div align=left border="1px" >
Do you know I’m waiting for you<br>
You may not understand
</div>
</body>
</html>

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Difficulty in updating caching of official account web pages: How to avoid the old cache affecting the user experience after version update?

How do I use HTML5 form validation attributes to validate user input?

What is the purpose of the <iframe> tag? What are the security considerations when using it?

How to efficiently add stroke effects to PNG images on web pages?

What is the purpose of the <meter> element?

What is the purpose of the <datalist> element?

What is the purpose of the <progress> element?

What are the best practices for cross-browser compatibility in HTML5?
