Home >Web Front-end >HTML Tutorial >How to use the title attribute of html to display text on mouse hover

How to use the title attribute of html to display text on mouse hover

php中世界最好的语言
php中世界最好的语言Original
2018-01-27 09:40:298851browse

This time I will show you how to use the title attribute of html to display text on mouse hover, and how to use the title attribute of html to display text on mouse hover. What are the precautions of text? The following is a practical case, let’s take a look.

The code is as follows:

<a href=# title="这里是显示的文字">hello</a>

When the mouse hovers over hello, there will be text. Here is the text displayed

I believe you have mastered it after reading these cases. Method, for more exciting information, please pay attention to php Chinese website

Other related articles!

Related reading:

How to use a hyperlink to open a new window and control window properties in HTML

How to use the a tag How to solve the inconsistency between the href attribute and the onclick event

The cursor size display in the input input box

The above is the detailed content of How to use the title attribute of html to display text on mouse hover. For more information, please follow other related articles on the PHP Chinese website!

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