Home >Web Front-end >H5 Tutorial >Please use id instead of name when implementing anchor points in HTML5_html5 tutorial tips

Please use id instead of name when implementing anchor points in HTML5_html5 tutorial tips

WBOY
WBOYOriginal
2016-05-16 15:48:422484browse

HTML5 has removed the name attribute. Please use id when implementing anchor points. Example effect: http://keleyi.com/keleyi/phtml/html5/9.htm

Supports Chrome, Firefox, IE8 and above browsers .

The following is the complete code:

Copy the code
The code is as follows:




HTML5 anchor point example--Ke Leyi< ;base target="_blank" />



Keleyi HTML5 anchor keleyi.com


Please scroll Move the page down

www.keleyi.com

< div style="background-color:Red; width:100%;height:150px;">Welcome

hi


Green arrow picture returns to top effect
Blue square back to top
Plain text return to top
Beautiful return to top, bottom and Leave a message

keleyi.com

< div style="background-color:Fuchsia; width:100%;height:150px;">keleyi

keleyi.com

Keleyi

Ke Leyi monitors the scrolling pixels

keleyi.com

jquery

Original text

keleyi.com

Full code

HTML5 has removed the name attribute. When implementing anchor points, please use id





Go directly to the bottom of the page Example:
http://keleyi.com/keleyi/phtml/html5/9.htm#keleyifoot
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Use HTML5 technology to develop your own cool color picker_html5 tutorial skillsNext article:Use HTML5 technology to develop your own cool color picker_html5 tutorial skills

Related articles

See more