HOME | PHP Tutorial | CSS
facebook icon
AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP
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>
<html>
<head>
<title>Title of button action</title>
</head>
<body>

<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>

</body>
</html>

The html cod above will display this HTML result:

Tutorial html
facebook
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

2612. Backgrounds : Background Image - HTML tutorial
HTML backgrounds - HTML tutorial
http://www.echoecho.com/htmlbackgrounds02.htm

2147. HTML Tutorial - Submit Buttons
Submit buttons.
https://tutorialehtml.com/en/html-tutorial-submit-buttons/

2155. HTML Tutorial - titles and headings
Titluri in HTML, Headings, tipuri si dimensiuni
https://tutorialehtml.com/en/html-tutorial-titles-and-headings/

2140. HTML Tutorial - Meta tag (keywords, description, refresh, revised...)
Meta tag, how to use the meta tag
https://tutorialehtml.com/en/html-tutorial-meta-tag/

872. HTML colors - HTML tutorials - w3resource

https://www.w3resource.com/html/color/HTML-colors.php

28. HTML5 Tutorial - An Ultimate Guide for Beginners
HTML Tutorials for Beginners - Learn the fundamentals of the latest HTML5 markup language in simple and easy steps and start building your own website.
https://www.tutorialrepublic.com/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 BETWEEN Operator
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 CREATE DATABASE - example
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