Some html5 tag learning experiences and html5 tag learning experiences

Source: Internet
Author: User

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
  1. <! Doctype html>
  2. <Html>
  3. <Head>
  4. <Meta charset = "UTF-8">
  5. <Title> 20161017 </title>
  6. </Head>
  7. <Body bgcolor = "BED1A2" text = "FFFFFF" link = "yellow" alink = "red" vlink = "blue">
  8. <H1> fengqiao night Park
  9. <H5> Zhang Ji
  10. <H3> the moon is full of frost,
  11. <H3> Jiang Feng Yu Huo worried about sleep. </H3>
  12. <H3> Hanshan Temple outside Gusu City,
  13. <H3> the midnight Bell arrives at the passenger ship. </H3>
  14. <A href = "" www.baidu.com "> baidu </a> </br>
  15. Go to another place on the page: </br>
  16. <A name = "www.baidu.com"> 111 </a> </br>
  17. H <sub> 2 </sub> SO <sub> 4 </sub> <br/>
  18. <br/>
  19. instance <br/>
  20. instance <br/>
  21. instance <br/>
  22. Only one line of text can be placed on both sides of the image.
  23. <! -- Image with a border pixel of 15 -->
  24. <Br/>
  25. <Font size = "5px" font color = "red"> This is a website about Baidu </font> <br/>
  26. <Font size = "20px"> This is a website about Baidu </font> <br/>
  27. <! -- A red horizontal line -->
  28. <Hr color = "red"/>
  29. <! -- Align the style (left/center/right) with the width of the horizontal line -->
  30. <Hr align = "left/cener/right"/>
  31. <! -- Horizontal line with a width of 50% -->
  32. <Hr width = "50%"/>
  33. <! -- A horizontal line with a height of 50 pixels -->
  34. <Hr size = "50"/>
  35. <! -- Remove the shadow horizontal line -->
  36. <Hr noshade = "noshade">
  37. <Div align = left border = "1px">
  38. Do you know I'm waiting for you? <br>
  39. You may not understand
  40. </Div>
  41. </Body>
  42. </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 ~

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.