Home >Web Front-end >HTML Tutorial >Understand the usage of a tag in html in two minutes
a is the HTML language tag. The a tag defines a hyperlink, which is used to link from one page to another. The most important attribute of the a element is the href attribute, which specifies the target of the link. Let’s take a look below.
a After clicking, the label will be focused and a dotted frame will appear automatically?
Solution:
1.css processing method
a{ outline:none;}
2. Add a listening event and automatically lose focus (not recommended)
<a href="#" onfocus="this.blur();"></a>
3. Inline processing style
<a hidefocus="true" href="#"></a>
tag opens link in new tab
<a target="value">
value | Description |
---|---|
_blank | Open the linked document in a new window |
_self Default | Open the linked document in the same frame |
_parent | Open the linked document in the parent frameset |
_top | Open the linked document in the entire window |
framename | Open the linked document in the specified frame |
vueOpen a new page:
let routes = this.$router.resolve( { path: '/position/recruit/job/desc', query: { id: row.id } } ) window.open(routes.href, '_blank')
Thank you everyone for reading, I hope you will benefit a lot.
This article is reproduced from: https://blog.csdn.net/weixin_45266125/article/details/103199755
Recommended tutorial: "HTML Tutorial"
The above is the detailed content of Understand the usage of a tag in html in two minutes. For more information, please follow other related articles on the PHP Chinese website!