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
Release: 2016-05-16 15:48:42
Original
2494 people have browsed it

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


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
Related labels:
source:php.cn
Previous article:Use HTML5 technology to develop your own cool color picker_html5 tutorial skills Next article:The html5 video tag blocks the js code for right-clicking the video and saving it as_html5 tutorial skills
Statement of this Website
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
Latest Articles by Author
Latest Issues
Related Topics
More>
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template