Sharp Tutorial
Hyperlink in HTML

Python

Java

C

C++

HTML/CSS

Java Script

PHP

SQL

C Programs

HTML

  • HTML Home
  • Introduction
  • HTML Element
  • Commonly used tags
  • Hyperlinks
  • Images in HTML
  • Div in HTML
  • Html Forms
  • Html Tables
  • Miscellaneous Topics

CSS

  • Introduction to CSS
  • How to apply CSS
  • CSS Selectors
  • Border in CSS
  • Text Formatting in CSS
  • Font Properties
  • Margin in CSS
  • CSS in List
  • CSS in Link
  • CSS Animation
  • CSS Effects
  • CSS Pagination
  • CSS Media Query

Java Script

  • Java Script Home
  • Introduction to Java Script
  • Variable in Java Script
  • Operators in Java Script
  • If-Else in Java Script
  • Loops in Java Script
  • Array in Java Script
  • Function in Java Script
  • Objects in Java Script
  • Java Script DOM

Hyperlink in HTML

To create hyperlink <a> in html anchor tag is used like following example.

<a href=“url”>link text</a>

To understand better this example create two html pages as following

<html>
<title>Home Page</title>
<body>
<center>
Home Page
<ul>
<a href="home.html">Home</a>
</ul>
<ul>
<a href="about.html">About Us</a>
</center>
</body>
</html>

HTML links: Target Attribute

The target attribute specifies where to open the linked document

The target attribute can have one of the following values:

  • _blank -: Opens the linked document in a new window or tab.
  • _self -: Opens the linked document in the same window/tab as it was clicked (this is default)
  • _parent -: Opens the linked document in the parent frame.
  • _top -: Opens the linked document in the full body of the window.
  • framename -: Opens the linked document in a named frame.

Enquiry about Course

Ask your Question

Click Here

Sharp (2) Tutorials

Video/ C Introduction

Watch video in full size

Video tutorial

Follow by Email
Facebook
Facebook
fb-share-icon
YouTube
Copyright © Sharp Tutorial
Build with WordPress
Wordpress Social Share Plugin powered by Ultimatelysocial
Sharp Tutorial