【WEB基础】HTML & CSS 基础入门(6)超链接
目录
<!DOCTYPE html><html xmlns="upload/201905311529270086.gif" alt="复制代码" style="margin: 0px; padding: 0px; max-width: 660px; height: auto; width: auto; max-height: 100%; border: none !important;" />
网页二代码:
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title></head><body> <h1>这是网页2</h1></body></html>
网页三代码:
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title></head><body> <h1>这是网页3</h1></body></html>
运行效果:
超链接--锚点链接
很多网页文章的内容比较多,导致页面很长,需要不断的拖动滚动条才能找到需要的内容,我们可以用锚点链接来解决这个问题,锚点链接就是在单个页面内部不同的位置进行跳转,也可以理解为书签。锚点