HOME | PHP Tutorial | CSS
facebook icon
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

2666. Links : Link Targets - HTML Tutorial
HTML links - HTML tutorial

3054. HTML Entities
Learn about HTML entities with this HTML tutorial.

2320. HTML Tutorial - <body> tag. Web page content
La balise body, en alignant le contenu d

3200. HTML colors, background, text and border color, html tutorial
HTML colors, background, text and border color html tutorial

2116. HTML Tutorial - Code format, computer code tag
How to write with computer formated code

2636. Forms : Quick Reference - HTML Tutorial
HTML forms - HTML tutorial

Your add here
How to get PHP errors to display?
How to prevent sql injection in php mysqli
How do I get PHP errors to display - PHP error_reporting()
mysql_query(): The mysql extension is deprecated and will be removed i
Function eregi_replace() is deprecated in php - How to fix
PHP delete an element from an array
Uncaught Error: Call to undefined function MYSQL_NUM_ROWS() in
Deprecated: mysql_connect() mysql extension is deprecated and will be
mysqli_fetch_array() expects parameter 1 to be mysqli_result boolean g
SQL IN Operator - example
SQL like syntax and example
SQL WHERE AND & OR multiple conditions
SQL create table primary key autoincrement
PHP mysqli_connect () Function
SQL COUNT(), AVG() and SUM() Functions
Display data from SQL database with MySQLi into php - html table
SQL mysql order by columns, by date, by asc, by desc, random with PHP
PHP mysqli_query() Function - mysqli query
SQL delete row - SQL delete table
SQL update - SQL update select
Insert into SQL - Insert into table SQL - Insert data in sql
Login in PHP - simple login script with PHP MYSQL