WeChat public account development tutorial 8th-use web hyperlink in text messages _ PHP Tutorial

Source: Internet
Author: User
Public Account Development Tutorial 8th-use web page hyperlinks in text messages. This article describes the functions of web page hyperlinks and how to use web page hyperlinks in text messages. The role of web page hyperlinks I think, but anyone familiar with HTML will not be able to hyperlink this article mainly introduces the role of web page hyperlinks and how to use web page hyperlinks in text messages.

Functions of web page hyperlinks

I think anyone familiar with HTML will be familiar with hyperlinks. Today, we want to discuss and use one of the hyperlinks-web page hyperlinks, that is, using HTML tags to link a text segment to other web pages. The example is as follows:

Liu Feng's blog
The above is a standard HTML code, implementing a webpage hyperlink that links the five words "Liu Feng's blog" to the blog homepage URL. when the words "Liu Feng's blog" are five characters, the webpage directed to http://blog.csdn.net/lyq8479is displayed.

How to use webpage hyperlinks in text messages

In fact, almost 100% of developers who do not know how to use web page hyperlinks in text messages are familiar with HTML, especially the tags in HTML. So what are the special features of using hyperlinks in text messages of public accounts? Why have so many friends ever followed suit on this issue? Let's take a look at the two methods of using hyperlinks with errors:

Error 1 (the href attribute value of Tag a is not enclosed in quotation marks ):

Http://blog.csdn.net/lyq8479> Liu Feng's blog
Incorrect usage 2 (the href attribute value of Tag a is enclosed by single quotation marks>
Liu Feng's blog

During Web development, both of the preceding methods can be used. However, in text messages of public accounts, both methods are incorrect, and Web page hyperlinks do not work, in addition, the HTML code is displayed as is on the Android phone, as shown in:

Effects on Android phones:

Effects on iPhone:

It can be seen that the attribute values of HTML a tags are not enclosed by quotation marks, or are enclosed by single quotation marks. they are all incorrectly written (on the iPhone, it is normal to use single quotes for the href value of the tag attribute ). The correct usage is to use double quotation marks (") to indicate the value of the href attribute of Tag a. The code is as follows:

Liu Feng's blog

Tip: When testing a public account, do not just pass the test on your mobile phone, this is because the performance of several public accounts on the Android and iOS platforms is inconsistent.

If the article is helpful to you, please leave a message or follow the public account xiaoqrobot to support Liu Feng!


Bytes. The role of web page hyperlinks I think, but anyone who is familiar with HTML will not be able to hyperlink...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.