Some tag learning in html and html Tag Learning

Source: Internet
Author: User

Some tag learning in html and html Tag Learning

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.baidu.com"> Baidu </a>

<A name = "www.baidu.com"> place to jump </a>

<Nav> used to divide links with navigation properties, as shown in figure

<Nav>

<A href = "#"> Baidu </a>

<A href = "#"> Baidu </a>

<A href = "#"> Baidu </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 about Baidu </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

<! 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>

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.