<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>a标签举例</title> </head> <body> <a href="http://www.baidu.com">百度一下,你就知道</a><!--跳转到别的网站 --> <br> <a href="2.html">点击跳转到2.html</a><!-- 跳转到本地文件 --><br> <a href="#test-demo">点击跳转到底部</a><!-- 设置锚点 --> <div style="height: 2000px"></div> <a href="##" name="test-demo">这里是网站底部</a> </body> </html>
If the href attribute value of the a tag is empty, then the a tag will become a hidden anchor. It seems that the href attribute has nothing, but it will jump when you click it with the mouse.
table tag
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style type="text/css"> td { width: 200px; height: 50px; } </style> </head> <body> <table border="1"> <tr> <td>1</td> <td>1</td> <td>1</td> </tr> <tr> <td>2</td> <td>2</td> <td>2</td> </tr> <tr> <td>3</td> <td>3</td> <td>3</td> </tr> </table> </body> </html>
td tr These tags can be signed into other tags, and a copy of the personal resume production code is attached.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>13</title> <style> .center { border-collapse: collapse; margin: 0 auto; } td { width: 100px; height: 40px; text-align: center; } /* .size { width: 300px; height: 120px; }*/ .size~tr { width: 300px; height: 120px; } </style> </head> <body> <table border="1" class="center"> <caption class="center">个人简历</caption> <tr> <td>姓名</td> <td></td> <td>性别</td> <td ></td> <td rowspan="3"></td> </tr> <tr> <td>出生年月</td> <td></td> <td>民族</td> <td></td> </tr> <tr> <td>籍贯</td> <td></td> <td>学历</td> <td></td> </tr> <tr> <td>毕业院校</td> <td></td> <td>专业</td> <td colspan="2"></td> </tr> <tr> <td>政治面貌</td> <td></td> <td>家庭住址</td> <td colspan="2"></td> </tr> <tr class="size"> <td>健康状况</td> <td></td> <td>联系电话</td> <td colspan="2"></td> </tr> <tr> <td>主修课程</td> <td colspan="4"></td> </tr> <tr> <td>个人技能</td> <td colspan="4"></td> </tr> <tr> <td>工作经历</td> <td colspan="4"></td> </tr> </table> </body> </html>
The above is the detailed content of Example introduction to html tags. For more information, please follow other related articles on the PHP Chinese website!

ToinsertanimageintoanHTMLpage,usethetagwithsrcandaltattributes.1)UsealttextforaccessibilityandSEO.2)Implementsrcsetforresponsiveimages.3)Applylazyloadingwithloading="lazy"tooptimizeperformance.4)OptimizeimagesusingtoolslikeImageOptimtoreduc

The core purpose of HTML is to enable the browser to understand and display web content. 1. HTML defines the web page structure and content through tags, such as, to, etc. 2. HTML5 enhances multimedia support and introduces and tags. 3.HTML provides form elements to support user interaction. 4. Optimizing HTML code can improve web page performance, such as reducing HTTP requests and compressing HTML.

HTMLtagsareessentialforwebdevelopmentastheystructureandenhancewebpages.1)Theydefinelayout,semantics,andinteractivity.2)SemantictagsimproveaccessibilityandSEO.3)Properuseoftagscanoptimizeperformanceandensurecross-browsercompatibility.

A consistent HTML encoding style is important because it improves the readability, maintainability and efficiency of the code. 1) Use lowercase tags and attributes, 2) Keep consistent indentation, 3) Select and stick to single or double quotes, 4) Avoid mixing different styles in projects, 5) Use automation tools such as Prettier or ESLint to ensure consistency in styles.

Solution to implement multi-project carousel in Bootstrap4 Implementing multi-project carousel in Bootstrap4 is not an easy task. Although Bootstrap...

How to achieve the effect of mouse scrolling event penetration? When we browse the web, we often encounter some special interaction designs. For example, on deepseek official website, �...

The default playback control style of HTML video cannot be modified directly through CSS. 1. Create custom controls using JavaScript. 2. Beautify these controls through CSS. 3. Consider compatibility, user experience and performance, using libraries such as Video.js or Plyr can simplify the process.

Potential problems with using native select on mobile phones When developing mobile applications, we often encounter the need for selecting boxes. Normally, developers...


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.
