HTML hyperlink a tag_Powernode Java Academy

HTML hyperlink a tag_Powernode Java Academy

Anyone who has studied or used HTML should be familiar with the <a> tag. Today I will give a brief explanation of <a> and briefly describe my understanding of it.

<a> is a hyperlink tag. What is a hyperlink? It is to connect the current content with another resource on the Internet. By clicking the link, you can jump to the other linked resource.

Personally, I think that hyperlinks can be imagined as a kind of ability. The ability must be attached to a specific physical object in order to truly exert the ability. For example, the ability of invisibility cannot be invisible by itself. Only when it is attached to a person and the person is seen to become invisible can the existence of the ability be proved. The same is true for <a> hyperlinks, which have been attached to a lot of content. The simplest one is text, but it can also be other things, such as pictures and so on. As shown below:

<a href="/index.html">This text</a>

or

<a href="****.html">  
<img border="0" src="buttonnext.gif" />  
</a>

As for the hyperlink <a>, as we said before, its function is to jump to another network resource when clicked, so we need to focus on two points: (1) Where to jump? (2) Where is the resource that you jump to opened and displayed? .

At this time we need to pay attention to two important attributes of the <a> tag, namely the href and target attributes.

The href attribute is used to indicate the address of another network resource being connected. It can be an absolute address, a relative address, or the location of an element within the page content.

The target attribute is used to indicate where to open the connected resource. It has five possible values:

Property Value

To briefly explain ,

_blank means that when clicked, a new browser page will be opened and the linked resource will be loaded; _top means that the linked resource will be opened on the current page, and the content displayed on the original page will be overwritten; if the <a> tag does not have a target tag set, the linked resource will be displayed where the <a> tag was originally displayed.

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

<<:  Example code of vue custom component to implement v-model two-way binding data

>>:  Recommend several MySQL related tools

Recommend

Detailed analysis of the blocking problem of js and css

Table of contents DOMContentLoaded and load What ...

React tips teach you how to get rid of hooks dependency troubles

A very common scenario in react projects: const [...

MySQL8 Installer version graphic tutorial

Installation The required documents are provided ...

Why Seconds_Behind_Master is still 0 when MySQL synchronization delay occurs

Table of contents Problem Description Principle A...

How to clear the timer elegantly in Vue

Table of contents Preface optimization Derivative...

Summary of seven MySQL JOIN types

Before we begin, we create two tables to demonstr...

HTML basic summary recommendation (text format)

HTML text formatting tags 標簽 描述 <b> 定義粗體文本 ...

Vue.$set failure pitfall discovery and solution

I accidentally found that Vue.$set was invalid in...

CSS3 to achieve floating cloud animation

Operation effect html <head> <meta chars...

Implementation of Vue counter

Table of contents 1. Implementation of counter 2....

Javascript design pattern prototype mode details

Table of contents 1. Prototype mode Example 1 Exa...

Summary of uncommon operators and operators in js

Summary of common operators and operators in java...

How to select all child elements and add styles to them in CSS

method: Take less in the actual project as an exa...

Vue's new partner TypeScript quick start practice record

Table of contents 1. Build using the official sca...

The easiest way to install MySQL 5.7.20 using yum in CentOS 7

The default database of CentOS7 is mariadb, but m...