Some html5 tag learning experiences and html5 tag learning experiences
Today, I read the manual and learned many HTML5 attributes.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 image address
Bgcolor is used to set the background color of the page. Followed by a color or hexadecimal number
Text is used to set the font color without hyperlinks
Link is used to set the font color of a hyperlink.
Alink is used to set the color when a hyperlink is clicked.
Vlink is used to set the font color after a hyperlink is clicked.
<A href = "www.jb51.net"> helping customers </a>
<A name = "www.jb51.net"> place to jump </a>
<Nav> used to divide links with navigation properties, as shown in figure
<Nav>
<A href = "#"> helping customers </a>
<A href = "#"> helping customers </a>
<A href = "#"> helping customers </a>
</Nav>
H <sub> 2 </sub> SO <sub> 4 </sub>
<Sub> the tag used by the subscript </sub>
<Sup> is the tag used for superlabeling </sup>
From Title 1 to Title 6. Gradually decrease the font size and wrap the text automatically
<H1>
<H2>
<H3>
<H4>
<H5>
<H6>
Img is the label for inserting an image, and width is the width of the image. Height is the image Height. You can enter a value for the image, or you can enter "image address and suffix name" in auto (proportional scaling) src"
<Font size = "5px" font color = "red"> This is a website for helping customers </font>
Size defines the font size, followed by px (pixel)
Color: Specifies the font color.
Line feed <br/>
Horizontal Split line
<! -- A red horizontal line -->
<Hr color = "red"/>
<! -- Align the style (left/center/right) with the width of the horizontal line -->
<Hr align = "left/cener/right"/>
<! -- Horizontal line with a width of 50% -->
<Hr width = "50%"/>
<! -- A horizontal line with a height of 50 pixels -->
<Hr size = "50"/>
<! -- Remove the shadow horizontal line -->
<Hr noshade = "noshade">
Code attachment
Copy XML/HTML Code to clipboard
- <! 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 Park
- <H5> Zhang Ji
- <H3> the moon is full of frost,
- <H3> Jiang Feng Yu Huo worried about sleep. </H3>
- <H3> Hanshan Temple outside Gusu City,
- <H3> the midnight Bell arrives at the passenger ship. </H3>
- <A href = "" www.baidu.com "> baidu </a> </br>
- Go to another place on the page: </br>
- <A name = "www.baidu.com"> 111 </a> </br>
- H <sub> 2 </sub> SO <sub> 4 </sub> <br/>
- <br/>
- instance <br/>
- instance <br/>
- instance <br/>
- Only one line of text can be placed on both sides of the image.
- <! -- Image with a border pixel of 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/>
- <! -- A red horizontal line -->
- <Hr color = "red"/>
- <! -- Align the style (left/center/right) with the width of the horizontal line -->
- <Hr align = "left/cener/right"/>
- <! -- Horizontal line with a width of 50% -->
- <Hr width = "50%"/>
- <! -- A horizontal line with a height of 50 pixels -->
- <Hr size = "50"/>
- <! -- Remove the shadow horizontal line -->
- <Hr noshade = "noshade">
- <Div align = left border = "1px">
- Do you know I'm waiting for you? <br>
- You may not understand
- </Div>
- </Body>
- </Html>
The above is all the tag Learning (experience) in html5 that xiaobian brings to you. I hope you can provide more support for our customers ~