HTML5 webpage creation Tutorial: HTML5 block-level link and html5 webpage creation tutorial

Source: Internet
Author: User

HTML5 webpage creation Tutorial: HTML5 block-level link and html5 webpage creation tutorial

Webjx: Web standards are full of face-hitting behaviors. This rule is no longer valid! One month after that article was published, HTML5doctor published "Block-level" links in HTML5, which you would have written as follows.

 

The English name is "Block-level" links. I thought that only the birds in our factory do not know. I didn't expect to know much about it. I need to popularize it.

The Web standards are full of face-hitting behaviors. This rule is no longer valid now! One month after that article was published, HTML5doctor published "Block-level" links in HTML5. To be quoted, you should write the following:

<Div class = "story">
<H3> <a href = "story1.html"> Bruce Lawson voted sexiest man on Earth </a> <P> <a href = "story1.html"> A congress representing all the planet's women unanimously voted Bruce Lawson as sexiest man alive. </a> </p>
<P> <a href = "story1.html"> Read more </a> </p>
</Div>

This can be written in HTML5 now.

<Article>
<A href = "story1.html">
<H3> Bruce Lawson voted sexiest man on Earth <P> A congress representing all the planet's women unanimously voted Bruce Lawson as sexiest man alive. </p>
<P> Read more </p>
</A>
</Article>

From the perspective of accessibility, we only add the alt description text of the image (providing more detailed information for reading screen users), without the need to manually create redundant! One of HTML5's ideas is to be pragmatic. In our current words, it is to be grounded ~

Although this writing method is not forward compatible, the HTML5 doctor test shows that mainstream browsers support this method, that is:

You and your friends can now be used in projects!
To be compatible with IE6/7 manual bugs, you need to add css code like this in reset.css:

1 a div, a h3, a p,... {# cursor: hand}

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.