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

3204. HTML form action - radio HTML form - how to create, html tutorial
HTML form action - radio HTML form - how to create html tutorial

3055. HTML Formatting and Semantics
Learn about HTML formatting with this HTML tutorial.

2638. Frames : Basic Example - HTML Tutorial
HTML frames - HTML tutorial

2143. HTML Tutorial - <pre> ( preformatting ) Tag
Pre tag notepad formatting

2676. Lists : Bulleted Lists - HTML Tutorial
HTML lists - HTML tutorial

2208. HTML Tutorial - Subscript

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