HOME | PHP Tutorial | CSS
facebook icon
PHP Tutorial

PHP forms
HTML Tutorial

CSS Tutorial

HTML link tag with example.

A link or hyperlink is a connection between two or more web pages, or from one web page resource to another web page.

Example HTML link tag

In most browsers, HTML links will appear in the following form as default:

  • An unvisited link is underlined and blue color.
  • A visited link is underlined and purple color.
  • An active link is underlined and red color.

However you can overwrite the links using CSS style. Learn more about CSS style at CSS tutorial styling links.
HTML Link Syntax are specified in HTML using the <a> tag as <a href="url">Text link</a>
HTML link tag href attribute in source anchor specifies the address of the destination anchor.

Example 1:
<!DOCTYPE html>
<title>Title of button action</title>

<a href="http://www.agernic.com">Tutorial html</a>
<a href="facebook.jpg"><img src="facebook.jpg" alt="facebook"></a>
<a href="https://www.google.com/">Google Search</a>


The html cod above will display this HTML result:

Tutorial html
Google Search
Note: A link does not have to be only text. It can be an image link, button link or any other HTML element.

HTML link tag, link HTML tag HTML link tag with example - html tutorial

3058. HTML Image Maps
Learn about HTML image maps with this HTML tutorial.

2690. Text : Text Links - HTML Tutorial
HTML basics - HTML tutorial

2628. Forms : Hidden Field - HTML Tutorial
HTML forms - HTML tutorial

3195. How to add text, paragraf in HTML, html tutorial
How to add text, paragraf in HTML html tutorial

2184. HTML Tutorial - Checkbox Tag verwenden
HTML Checkbox-Tag-Nutzung. Einfache und praktische Beispiele.

2147. HTML Tutorial - Submit Buttons
Submit buttons.

Your add here
PHP htmlspecialchars_decode() function

PHP explode() function

PHP strcmp() function

PHP implode() function

PHP strrchr() Function

PHP define() function

PHP print() function

PHP html_entity_decode() function

PHP ucfirst() function

PHP str_split() function

PHP ltrim() function

PHP rtrim() function

PHP strtoupper() function

PHP str_repeat() function

PHP wordwrap() function

PHP trim() function

HTML Colors
HTML div class tag attribute
The simplest PHP script
HTML colors, background, text and border color
SQL - Syntax
HTML Text Style