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
<br />For each of our topics, the team will ...
Copy the certificate and key on the web scp -rp -...
Hyperlink Hyperlinks are the most frequently used ...
Table of contents Scenario Try to solve solve Sce...
Table of contents 1 Introduction to user variable...
recommend: Navicat for MySQL 15 Registration and ...
introduce HTML provides the contextual structure ...
This article example shares the specific code of ...
1. Concurrency Concurrency is the most important ...
This article mainly explains the style of buttons...
introduce Vue Router is the official routing mana...
CSS: Copy code The code is as follows: html,body{ ...
Table of contents mysql log files binlog Binlog l...
Preface: One day, I built a MySQL service in Dock...
Some time ago, the project needed to develop the ...