An open API service indexing awesome lists of open source software.

https://github.com/atapas/anchors

An app to demonstrate the HTML anchor tags and their properties.
https://github.com/atapas/anchors

anchor css html styling tags

Last synced: about 1 year ago
JSON representation

An app to demonstrate the HTML anchor tags and their properties.

Awesome Lists containing this project

README

          

## Anchors
An application can have multiple anchors. Each anchor can have multiple attributes. Anchors can be used to create links to other parts of the project.

`Anchors` is a demo application that shows how to use anchors. It provides a simple interface to try out different anchor attributes. The extensive documentation for anchors can be found from the demo application.


screen

## Demo Application
> Please access the demo application from the following link: [Anchors](anchors.vercel.app)

Please give the repo a ⭐ if you liked the work. It motivates me.

### Many Thanks to all the `Stargazers` who has supported this project with stars(⭐)

[![Stargazers repo roster for @atapas/anchors](https://reporoster.com/stars/atapas/anchors)](https://github.com/atapas/anchors/stargazers)

## Documentation
This section contains the documentation for the attributes with sample source code.

### The `href` attribute
The `href` attribute is used to specify the link target.

- Link to a page to another website:
```html
Click me
```

- Link to a page to a section of the same website:
```html
Go to the News section


News


Here is some news



```

- Link to open the default phone app
```html
Call +914123456765
```

- Link to open the default email app
```html
Send an email to me
```

- You can link to a script and execute it with a single click.
```html
Click me
```

Please find the possible values for the `href` attribute in the [w3c.org](https://www.w3schools.com/tags/att_a_href.asp) specification.

### The `title` attribute
The `title` attribute is used to specify the title of the link as a tooltip.

```html
Hover over me
```

### The `rel` attribute
The `rel` attribute is used to specify the relationship between the current document and the link target.

```html
No Follow
```
Please find the complete list of possible values for the `rel` attribute in the [w3schools](https://www.w3schools.com/tags/att_a_rel.asp).

### The `download` attribute
The `download` attribute is used to specify the file name of the link target. This attribute is only supported in the [HTML5](https://www.w3schools.com/tags/att_a_download.asp) specification.

```html
Download
```
### The `ping` attribute
The `ping` attribute is used to specify the URL of a pingback server. This attribute is only supported in the [HTML5](https://www.w3schools.com/tags/att_a_ping.asp) specification. The ping attribute specifies a space seprated list of URLs to ping when the link is clicked.

```html
Ping me
```
### The `type` attribute
The `type` attribute is used to specify the MIME type of the link target. This attribute is only supported in the [HTML5](https://www.w3schools.com/tags/att_a_type.asp) specification.

```html
HTML
```

### The `hreflang` attribute
The `hreflang` attribute is used to specify the language of the link target. This attribute is only supported in the [HTML5](https://www.w3schools.com/tags/att_a_hreflang.asp) specification.

```html
English
```

### The `referrerpolicy` attribute
The `referrerpolicy` attribute is used to specify the policy for the link target. This attribute is only supported in the [HTML5](https://www.w3schools.com/tags/att_a_referrerpolicy.asp) specification.

The possible values for the `referrerpolicy` attribute are:

```html

```

```html

```
### The `target` attribute
The `target` attribute is used to specify the target frame of the link.

The possible values for the `target` attribute are:

```html

```

```html
same window(target: _self)

New Tab
```

## Credits
This demo application is developed by [Tapas Adhikary](https://tapasadhikary.com) and is maintained by [Vercel](https://vercel.com).