The method of wrapping the content (title attribute content) when the mouse hovers over the object, summary of the html title wrapping method. The title attribute of HTML displays one line by default. How to wrap the line? Here DIVCSS5 summarizes and introduces two line wrapping methods for everyone to share and use. 1. Directly wrap the title content When filling in the title content directly, press the "Enter" key to wrap the line. The sample code is as follows: Copy code The code is as follows:<a href='https://www.jb51.net' target='_ablank' title='Title: DIVCSS5 Author: DIVCSS5 Updated: 2013-05-17 Recommended level: None Keywords: title line break Pagination: No pagination Reading level: Normal'>html title attribute line break</a> Browser effect screenshots: ![]() Screenshot of the effect of moving the mouse to the link text a prompting the content to wrap 2. Use HTML title line break code There are two types of code for line breaks, both of which can achieve line breaks when the title content in the html tag is displayed. 1. The line break codes are as follows: " " and " " " " spelling: & (and symbol, keyboard number key 7 together &) + # (pound sign) + 10 (Arabic number ten) + ; (lowercase semicolon) " " spelling: & (and symbol, keyboard number key 7 together &) + # (pound sign) + 13 (Arabic number thirteen) + ; (lowercase semicolon) The above digital input must be entered in half-width English format. When using, just select any one (group) of line break symbol codes where a line break is required. 2. The sample code is as follows: Copy code The code is as follows:<a href="https://www.jb51.net" title="First row Second row Third row">title line break 1</a> <a href="https://www.jb51.net" title="Explanation 1 Explanation 2 Explanation 3">title line break 2</a> <!-- HTML comment: In order to make the screenshot complete, the code is wrapped here--> 3. Example screenshots ![]() Example code screenshot ![]() When the mouse moves to the hyperlink, the title attribute content is displayed to achieve line break display effect diagram |
<<: Better looking CSS custom styles (title h1 h2 h3)
>>: Summary of 6 skills needed to master web page production
Copy code The code is as follows: <thead> &...
Note 1: Solve the problem of slow connection to M...
Steps: 1. Install MySQL database 1. Download the ...
This article shares the MySQL backup script for y...
Share a beautiful input box animation style libra...
This article is from the Apache Spark Meetup held...
Table of contents 1. Why do we need unit testing?...
The <TH> tag is used to set the properties ...
Table of contents topic analyze Basic solution Ba...
We usually use float layout to solve the compatib...
#!/bin/bash #Download SVN yum -y install subversi...
Time fields are often used in database usage. Com...
Since PHP7 came out, as a fan of the latest versi...
This article shares the specific code of the WeCh...
Table of contents vue router 1. Understand the co...