Links allow navigation between pages and resources on the web. The <a> element defines a link, using the href attribute to specify the target URL. Links can point to external pages, internal pages on the same site using relative paths, specific fragments on a page, or open emails. Attributes like target control where links open, such as in a new browser window.
The document discusses how to create hyperlinks and anchors in web pages by using tags like <a> and attributes like href to link text or images to other pages, emails, or sections within the page. It also explains how to create a basic text-based navigation bar using HTML tags like <nav>, <ul>, and <li> to help visitors navigate between different pages of a website. The document provides guidance on using relative and absolute URLs, opening links in new windows, and creating internal anchors for navigation.
visit this blog for more info:
otaleem.blogspot.com
This slide is showing these headings:
Links and Navigation
Basic Links
Linking to Other Documents
Types of Hyperlink
Title attribute
Linking to E-mail Addresses
Images as hyperlinks
MARQUEE TAG: BEHAVIOR
MARQUEE TAG : DIRECTION
MARQUEE TAG : SIZE
TABLE TAG
This document discusses different types of links used in web development including external links to other websites, internal links to other pages on the same site, and fragment links to sections within a page. It also describes attributes used for links such as href, title, name, target, and mailto. Relative and absolute paths are explained for linking to files within the same folder structure.
There are two types of hyperlinks: internal and external. An internal hyperlink links to other parts of the same webpage, and is created using the <A> tag. The HREF attribute specifies the destination within the webpage, and the HREF and NAME attributes must have the same value. Students learned about identifying hyperlinks and creating internal hyperlinks to navigate within a webpage. They were assigned an exercise to create internal links in an HTML file.
The document discusses various aspects of hypertext markup language (HTML) links. It explains how to create internal and external links using the <a> anchor tag, and how attributes like href, title, name and target can be used to further specify link properties and behavior. It also discusses how to link to email addresses and different types of paths for linking to files locally or between folders.
The document discusses various types of lists in HTML including unordered lists, ordered lists, and description lists. It provides examples of the code needed to create each type of list and customize features like numbering. It also covers how to create hyperlinks and specify URLs, including both absolute and relative links within and between pages. Key elements discussed are <ul>, <ol>, <li>, <dl>, <dt>, <dd>, and <a>.
Hyperlinks allow web pages to link to other pages and specific sections within pages using the <a> element. The <a> element specifies attributes like href to define the link target, and name to link to specific sections. Additional attributes like target control where linked content displays. The <base> tag can define a base path so relative links don't require full URLs. CSS can also style the appearance of links.
This document discusses various aspects of working with links and images in HTML. It covers how to create links using the <a> tag and href attribute, different types of links like absolute and relative URLs, common link mistakes to avoid, and how to link to other pages, locations on the same page, files, email addresses, and images. It also discusses how to add images using the <img> tag, and how to specify attributes like src, alt, width, height, alignment, spacing, and using images as links within the <a> tag.
02- Links, Structure and Layout with HTML.pdfthkbmb4rb4
The document discusses HTML links and page structure. It explains that links allow users to connect webpages and jump to different sections using the <a> tag. The href attribute specifies the URL of the linked page. Links can be internal, linking to other pages on the same site, or external, linking to outside websites. HTML elements like <header>, <nav>, and <footer> are used to define common page sections and structure layout.
Useful HTML tags, from basic to not-so-basic. Includes FatWire-specific code examples. Collaborative effort between myself and my colleague, Thurston Hatcher. Feb 2010
This document discusses how to create hyperlinks and anchors in HTML. It covers:
- Defining hyperlinks using the <a> tag and href attribute to link to other pages, emails, files and sections of the same page
- Using absolute and relative paths for file links
- Different target attributes like _blank, _self, _parent and _top for controlling where links open
- Creating email links using mailto and adding subject lines
- Linking to other file types like documents, images and zip files
This document discusses how to create hyperlinks and anchors in HTML. It covers:
- Defining hyperlinks using the <a> tag and href attribute to link to other pages, emails, files and sections of the same page
- Using absolute and relative paths for file links
- Different target attributes like _blank, _self, _parent and _top for controlling where links open
- Creating email links using mailto and adding subject lines
- Linking to other file types like documents, images and zip files
Hypertext is text augmented with links that allow nonlinear reading. It originated with concepts like Memex and Xanadu in the 1940s-1960s and was popularized by the World Wide Web in the 1990s. Hypertext uses links to connect pieces of text within or across documents, allowing the reader to browse and search for information in a nonlinear fashion. Key components of hypertext include links, URLs to identify resources, HTML markup for authoring links and pages, and indexes to facilitate searching large link collections.
The document discusses different types of hyperlinks that can be created using HTML tags, including:
1) Links to other web pages using <a href> tags
2) Links to sections within the same page using <a name> anchors
3) Links to email addresses using <a href="mailto:> tags
It provides examples of code for each type of link.
Web Visualization with HTML5, CSS3, and JavaScript is the course with the rapidly changing web
development technologies, it has become important to stay in line with them to progress within the industry,
which is why this course in web virtualization has been brought to you to spruce up your web designing and
animating skills using HTML5, CSS3 and JavaScript. The latest features of HTML5, CSS3 and JavaScript is set
to be provided to you through this course, hence, it is desired that you have basic knowledge on these
programming languages for a smoother learning experience.
This course will start off by walking you through the CSS3 virtualization techniques to design and
animate webs. You will be taught how to create a 3D element using CSS transition and to transform animates
into 2D and 3D, along with an insight into the elements of scalable vector graphics which is needed to create basic
images and polygons and to animate.
Our tutors will further take you through the canvas aspects of HTML5 to start drawing grids and
animations using it. You will also get to learn how to create a callback and create and activate a queue that is
needed in animating and the animation libraries that will be essential to your web designing projects. By the end
of this course, you will have an outstanding knowledge of web visualization using HTML5, CSS3 and
JavaScript to secure yourself a prominent place within the web development industry.
Tim Berners-Lee invented the World Wide Web in 1989 at CERN to allow researchers to link and cross-reference research papers. He developed HTTP and HTML, with HTML using tags to mark up documents and convey formatting to web browsers. The early 1990s saw the ramping up of the Web, with the release of Mosaic browser in 1993 and the formation of Netscape in 1994 accelerating its growth. Basic HTML elements include tags for headings, paragraphs, lists, links, images, and styling text or backgrounds.
Hypertext is text augmented with links that allow nonlinear navigation between documents. It originated in 1945 with Vannevar Bush's concept of linked documents and was popularized by the World Wide Web in 1992. Links can be unidirectional, bidirectional, or multilink and allow browsing information by association or searching by content through indexes. URLs identify resources on the Internet and may include protocol, domain name, path, and fragment identifier. HTML links are specified with anchor tags that identify the source and destination of the link.
To create links in HTML, the <a> anchor element is used with the href attribute specifying the link target. Links can point to other websites, files on the same server, or locations within the same page using IDs. Internal links are made using # followed by the element ID. The title attribute can also be included to provide additional information about the link. Images can also be turned into links by placing them inside the <a> element.
This document discusses different types of hyperlinks that can be used on a webpage to navigate to other pages or specific parts of a page. It describes how to create text links, image links, email links, and download links. It also explains various attributes used in hyperlinks like target, base path, and link colors to control the appearance and behavior of the links.
It explains that URLs identify resources on the web and consist of a protocol, hostname, and other information. Absolute URLs contain more complete addressing information while relative URLs are shorter and only work on the same server. It also discusses how hyperlinks use the <a> tag to link to other pages or sections on a page using the href attribute. Anchors create internal links using the name attribute. Links can be used for inter-file, intra-file, and email links.
HTML is the standard markup language used to create web pages. It provides a structure and layout for text, images, and other content. The document explains the basic components of an HTML page, including the <head> and <body> tags, common text formatting tags, links, lists, and tables. It recommends learning HTML tags through online resources or by examining the source code of existing web pages, and emphasizes starting simply with tags like <head>, <title>, <h2>, and <p>.
The Internet is growing at an incredible pace, and we want everybody to be a part of this growth. Basic HTML was created for the beginner to learn about designing web pages from the ground up and for the advanced web designers that want to revise a few HTML tricks.This downloadable tutorial is designed to help you learn about HTML and web page design.
Hyperlinks inserted into presentations, documents, and PDFs uploaded to SlideShare will be active links. For a hyperlink to work when uploaded to SlideShare, it must have been properly inserted as a hyperlink while creating the file, not just typed as text. Internal links within a file will not function once uploaded. Most PDF creators preserve inserted hyperlinks, but it is best to check that the specific software used maintains links.
This document provides an introduction to HTML, including:
- HTML stands for Hypertext Markup Language and provides structure and presentation for content on webpages.
- The basic structure of an HTML document includes the <html>, <head>, <title>, and <body> tags. Common elements like headings, paragraphs, and divs are explained.
- Attributes like id and class are used to provide additional information and styling for elements. Lists, images, videos and links are also covered. Tables, forms and their various tags are introduced as well.
The document provides an introduction to HTML and covers several essential HTML elements. It begins with a table of contents and overview of HTML. It then discusses common block elements like headings, paragraphs, and divs. It also covers inline text elements for formatting like bold, italics, and emphasis. The document concludes with examples of lists, links, and images to demonstrate basic HTML tags.
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxshyamraj55
We’re bringing the TDX energy to our community with 2 power-packed sessions:
🛠️ Workshop: MuleSoft for Agentforce
Explore the new version of our hands-on workshop featuring the latest Topic Center and API Catalog updates.
📄 Talk: Power Up Document Processing
Dive into smart automation with MuleSoft IDP, NLP, and Einstein AI for intelligent document workflows.
This document discusses various aspects of working with links and images in HTML. It covers how to create links using the <a> tag and href attribute, different types of links like absolute and relative URLs, common link mistakes to avoid, and how to link to other pages, locations on the same page, files, email addresses, and images. It also discusses how to add images using the <img> tag, and how to specify attributes like src, alt, width, height, alignment, spacing, and using images as links within the <a> tag.
02- Links, Structure and Layout with HTML.pdfthkbmb4rb4
The document discusses HTML links and page structure. It explains that links allow users to connect webpages and jump to different sections using the <a> tag. The href attribute specifies the URL of the linked page. Links can be internal, linking to other pages on the same site, or external, linking to outside websites. HTML elements like <header>, <nav>, and <footer> are used to define common page sections and structure layout.
Useful HTML tags, from basic to not-so-basic. Includes FatWire-specific code examples. Collaborative effort between myself and my colleague, Thurston Hatcher. Feb 2010
This document discusses how to create hyperlinks and anchors in HTML. It covers:
- Defining hyperlinks using the <a> tag and href attribute to link to other pages, emails, files and sections of the same page
- Using absolute and relative paths for file links
- Different target attributes like _blank, _self, _parent and _top for controlling where links open
- Creating email links using mailto and adding subject lines
- Linking to other file types like documents, images and zip files
This document discusses how to create hyperlinks and anchors in HTML. It covers:
- Defining hyperlinks using the <a> tag and href attribute to link to other pages, emails, files and sections of the same page
- Using absolute and relative paths for file links
- Different target attributes like _blank, _self, _parent and _top for controlling where links open
- Creating email links using mailto and adding subject lines
- Linking to other file types like documents, images and zip files
Hypertext is text augmented with links that allow nonlinear reading. It originated with concepts like Memex and Xanadu in the 1940s-1960s and was popularized by the World Wide Web in the 1990s. Hypertext uses links to connect pieces of text within or across documents, allowing the reader to browse and search for information in a nonlinear fashion. Key components of hypertext include links, URLs to identify resources, HTML markup for authoring links and pages, and indexes to facilitate searching large link collections.
The document discusses different types of hyperlinks that can be created using HTML tags, including:
1) Links to other web pages using <a href> tags
2) Links to sections within the same page using <a name> anchors
3) Links to email addresses using <a href="mailto:> tags
It provides examples of code for each type of link.
Web Visualization with HTML5, CSS3, and JavaScript is the course with the rapidly changing web
development technologies, it has become important to stay in line with them to progress within the industry,
which is why this course in web virtualization has been brought to you to spruce up your web designing and
animating skills using HTML5, CSS3 and JavaScript. The latest features of HTML5, CSS3 and JavaScript is set
to be provided to you through this course, hence, it is desired that you have basic knowledge on these
programming languages for a smoother learning experience.
This course will start off by walking you through the CSS3 virtualization techniques to design and
animate webs. You will be taught how to create a 3D element using CSS transition and to transform animates
into 2D and 3D, along with an insight into the elements of scalable vector graphics which is needed to create basic
images and polygons and to animate.
Our tutors will further take you through the canvas aspects of HTML5 to start drawing grids and
animations using it. You will also get to learn how to create a callback and create and activate a queue that is
needed in animating and the animation libraries that will be essential to your web designing projects. By the end
of this course, you will have an outstanding knowledge of web visualization using HTML5, CSS3 and
JavaScript to secure yourself a prominent place within the web development industry.
Tim Berners-Lee invented the World Wide Web in 1989 at CERN to allow researchers to link and cross-reference research papers. He developed HTTP and HTML, with HTML using tags to mark up documents and convey formatting to web browsers. The early 1990s saw the ramping up of the Web, with the release of Mosaic browser in 1993 and the formation of Netscape in 1994 accelerating its growth. Basic HTML elements include tags for headings, paragraphs, lists, links, images, and styling text or backgrounds.
Hypertext is text augmented with links that allow nonlinear navigation between documents. It originated in 1945 with Vannevar Bush's concept of linked documents and was popularized by the World Wide Web in 1992. Links can be unidirectional, bidirectional, or multilink and allow browsing information by association or searching by content through indexes. URLs identify resources on the Internet and may include protocol, domain name, path, and fragment identifier. HTML links are specified with anchor tags that identify the source and destination of the link.
To create links in HTML, the <a> anchor element is used with the href attribute specifying the link target. Links can point to other websites, files on the same server, or locations within the same page using IDs. Internal links are made using # followed by the element ID. The title attribute can also be included to provide additional information about the link. Images can also be turned into links by placing them inside the <a> element.
This document discusses different types of hyperlinks that can be used on a webpage to navigate to other pages or specific parts of a page. It describes how to create text links, image links, email links, and download links. It also explains various attributes used in hyperlinks like target, base path, and link colors to control the appearance and behavior of the links.
It explains that URLs identify resources on the web and consist of a protocol, hostname, and other information. Absolute URLs contain more complete addressing information while relative URLs are shorter and only work on the same server. It also discusses how hyperlinks use the <a> tag to link to other pages or sections on a page using the href attribute. Anchors create internal links using the name attribute. Links can be used for inter-file, intra-file, and email links.
HTML is the standard markup language used to create web pages. It provides a structure and layout for text, images, and other content. The document explains the basic components of an HTML page, including the <head> and <body> tags, common text formatting tags, links, lists, and tables. It recommends learning HTML tags through online resources or by examining the source code of existing web pages, and emphasizes starting simply with tags like <head>, <title>, <h2>, and <p>.
The Internet is growing at an incredible pace, and we want everybody to be a part of this growth. Basic HTML was created for the beginner to learn about designing web pages from the ground up and for the advanced web designers that want to revise a few HTML tricks.This downloadable tutorial is designed to help you learn about HTML and web page design.
Hyperlinks inserted into presentations, documents, and PDFs uploaded to SlideShare will be active links. For a hyperlink to work when uploaded to SlideShare, it must have been properly inserted as a hyperlink while creating the file, not just typed as text. Internal links within a file will not function once uploaded. Most PDF creators preserve inserted hyperlinks, but it is best to check that the specific software used maintains links.
This document provides an introduction to HTML, including:
- HTML stands for Hypertext Markup Language and provides structure and presentation for content on webpages.
- The basic structure of an HTML document includes the <html>, <head>, <title>, and <body> tags. Common elements like headings, paragraphs, and divs are explained.
- Attributes like id and class are used to provide additional information and styling for elements. Lists, images, videos and links are also covered. Tables, forms and their various tags are introduced as well.
The document provides an introduction to HTML and covers several essential HTML elements. It begins with a table of contents and overview of HTML. It then discusses common block elements like headings, paragraphs, and divs. It also covers inline text elements for formatting like bold, italics, and emphasis. The document concludes with examples of lists, links, and images to demonstrate basic HTML tags.
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxshyamraj55
We’re bringing the TDX energy to our community with 2 power-packed sessions:
🛠️ Workshop: MuleSoft for Agentforce
Explore the new version of our hands-on workshop featuring the latest Topic Center and API Catalog updates.
📄 Talk: Power Up Document Processing
Dive into smart automation with MuleSoft IDP, NLP, and Einstein AI for intelligent document workflows.
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc
Most consumers believe they’re making informed decisions about their personal data—adjusting privacy settings, blocking trackers, and opting out where they can. However, our new research reveals that while awareness is high, taking meaningful action is still lacking. On the corporate side, many organizations report strong policies for managing third-party data and consumer consent yet fall short when it comes to consistency, accountability and transparency.
This session will explore the research findings from TrustArc’s Privacy Pulse Survey, examining consumer attitudes toward personal data collection and practical suggestions for corporate practices around purchasing third-party data.
Attendees will learn:
- Consumer awareness around data brokers and what consumers are doing to limit data collection
- How businesses assess third-party vendors and their consent management operations
- Where business preparedness needs improvement
- What these trends mean for the future of privacy governance and public trust
This discussion is essential for privacy, risk, and compliance professionals who want to ground their strategies in current data and prepare for what’s next in the privacy landscape.
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungenpanagenda
Webinar Recording: https://www.panagenda.com/webinars/hcl-nomad-web-best-practices-und-verwaltung-von-multiuser-umgebungen/
HCL Nomad Web wird als die nächste Generation des HCL Notes-Clients gefeiert und bietet zahlreiche Vorteile, wie die Beseitigung des Bedarfs an Paketierung, Verteilung und Installation. Nomad Web-Client-Updates werden “automatisch” im Hintergrund installiert, was den administrativen Aufwand im Vergleich zu traditionellen HCL Notes-Clients erheblich reduziert. Allerdings stellt die Fehlerbehebung in Nomad Web im Vergleich zum Notes-Client einzigartige Herausforderungen dar.
Begleiten Sie Christoph und Marc, während sie demonstrieren, wie der Fehlerbehebungsprozess in HCL Nomad Web vereinfacht werden kann, um eine reibungslose und effiziente Benutzererfahrung zu gewährleisten.
In diesem Webinar werden wir effektive Strategien zur Diagnose und Lösung häufiger Probleme in HCL Nomad Web untersuchen, einschließlich
- Zugriff auf die Konsole
- Auffinden und Interpretieren von Protokolldateien
- Zugriff auf den Datenordner im Cache des Browsers (unter Verwendung von OPFS)
- Verständnis der Unterschiede zwischen Einzel- und Mehrbenutzerszenarien
- Nutzung der Client Clocking-Funktion
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfAbi john
Analyze the growth of meme coins from mere online jokes to potential assets in the digital economy. Explore the community, culture, and utility as they elevate themselves to a new era in cryptocurrency.
Semantic Cultivators : The Critical Future Role to Enable AIartmondano
By 2026, AI agents will consume 10x more enterprise data than humans, but with none of the contextual understanding that prevents catastrophic misinterpretations.
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025BookNet Canada
Book industry standards are evolving rapidly. In the first part of this session, we’ll share an overview of key developments from 2024 and the early months of 2025. Then, BookNet’s resident standards expert, Tom Richardson, and CEO, Lauren Stewart, have a forward-looking conversation about what’s next.
Link to recording, transcript, and accompanying resource: https://bnctechforum.ca/sessions/standardsgoals-for-2025-standards-certification-roundup/
Presented by BookNet Canada on May 6, 2025 with support from the Department of Canadian Heritage.
Train Smarter, Not Harder – Let 3D Animation Lead the Way!
Discover how 3D animation makes inductions more engaging, effective, and cost-efficient.
Check out the slides to see how you can transform your safety training process!
Slide 1: Why 3D animation changes the game
Slide 2: Site-specific induction isn’t optional—it’s essential
Slide 3: Visitors are most at risk. Keep them safe
Slide 4: Videos beat text—especially when safety is on the line
Slide 5: TechEHS makes safety engaging and consistent
Slide 6: Better retention, lower costs, safer sites
Slide 7: Ready to elevate your induction process?
Can an animated video make a difference to your site's safety? Let's talk.
HCL Nomad Web – Best Practices and Managing Multiuser Environmentspanagenda
Webinar Recording: https://www.panagenda.com/webinars/hcl-nomad-web-best-practices-and-managing-multiuser-environments/
HCL Nomad Web is heralded as the next generation of the HCL Notes client, offering numerous advantages such as eliminating the need for packaging, distribution, and installation. Nomad Web client upgrades will be installed “automatically” in the background. This significantly reduces the administrative footprint compared to traditional HCL Notes clients. However, troubleshooting issues in Nomad Web present unique challenges compared to the Notes client.
Join Christoph and Marc as they demonstrate how to simplify the troubleshooting process in HCL Nomad Web, ensuring a smoother and more efficient user experience.
In this webinar, we will explore effective strategies for diagnosing and resolving common problems in HCL Nomad Web, including
- Accessing the console
- Locating and interpreting log files
- Accessing the data folder within the browser’s cache (using OPFS)
- Understand the difference between single- and multi-user scenarios
- Utilizing Client Clocking
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPathCommunity
Join this UiPath Community Berlin meetup to explore the Orchestrator API, Swagger interface, and the Test Manager API. Learn how to leverage these tools to streamline automation, enhance testing, and integrate more efficiently with UiPath. Perfect for developers, testers, and automation enthusiasts!
📕 Agenda
Welcome & Introductions
Orchestrator API Overview
Exploring the Swagger Interface
Test Manager API Highlights
Streamlining Automation & Testing with APIs (Demo)
Q&A and Open Discussion
Perfect for developers, testers, and automation enthusiasts!
👉 Join our UiPath Community Berlin chapter: https://community.uipath.com/berlin/
This session streamed live on April 29, 2025, 18:00 CET.
Check out all our upcoming UiPath Community sessions at https://community.uipath.com/events/.
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Aqusag Technologies
In late April 2025, a significant portion of Europe, particularly Spain, Portugal, and parts of southern France, experienced widespread, rolling power outages that continue to affect millions of residents, businesses, and infrastructure systems.
IT help desk outsourcing Services can assist with that by offering availability for customers and address their IT issue promptly without breaking the bank.
TrsLabs - Fintech Product & Business ConsultingTrs Labs
Hybrid Growth Mandate Model with TrsLabs
Strategic Investments, Inorganic Growth, Business Model Pivoting are critical activities that business don't do/change everyday. In cases like this, it may benefit your business to choose a temporary external consultant.
An unbiased plan driven by clearcut deliverables, market dynamics and without the influence of your internal office equations empower business leaders to make right choices.
Getting things done within a budget within a timeframe is key to Growing Business - No matter whether you are a start-up or a big company
Talk to us & Unlock the competitive advantage
Technology Trends in 2025: AI and Big Data AnalyticsInData Labs
At InData Labs, we have been keeping an ear to the ground, looking out for AI-enabled digital transformation trends coming our way in 2025. Our report will provide a look into the technology landscape of the future, including:
-Artificial Intelligence Market Overview
-Strategies for AI Adoption in 2025
-Anticipated drivers of AI adoption and transformative technologies
-Benefits of AI and Big data for your business
-Tips on how to prepare your business for innovation
-AI and data privacy: Strategies for securing data privacy in AI models, etc.
Download your free copy nowand implement the key findings to improve your business.
Technology Trends in 2025: AI and Big Data AnalyticsInData Labs
Ad
Links in HTML AND CSS COMPREHENSIVE STUDY
1. 1
Links
1. Linking
A webpage can contain various links that take the user directly to other pages and even
specific parts of a given page. These links are known as hyperlinks. The Web is based on
hyperlinks. Hyperlinks can connect to other places on a Web page, to other pages within same
Web site, to pages outside the site, and to many types of Web and non-Web content.
2. HTML Link Tag
The anchor (a) is the element markup that makes links connect to other sites, to the same
site, and within a page. The HTML for an anchor, or link is defined with the <a> tag:
<a href="URL"> link text </a>
<a>...</a> is a tag used to make a selection of text a link, simply wrap it in opening and
closing.
The href (hyper reference) attribute specifies the destination address of the link by
providing the URL of the target page.
The link text is the visible part that will be clicked. By default, it appears on the screen as
blue underlined text. Alternative formatting can be specified for hyperlinks by using styles.
HTML can use an image as a link. For example
<a href="httpe://www.google.com"> <img src="my image path"> </a>
3. Relative and Absolute Path
There are two ways to specify the destination address:
•Absolute Path provide the full URL for the document, including the protocol (http://), the domain
name, and the pathname as necessary. You need to use an absolute URL when pointing to a
document out on the Web.
HTML&CSS
2. 2
<a href="http://www.oreilly.com">Go to the Reilly Media site</a>
This example that creates a link to the O’Reilly Media website
• Relative Paths describe the pathname to a file relative to the current document. Relative paths
can be used when you are linking to another document on your own site, it doesn’t require the
protocol or domain name. For example, if the index.htm and tutorial.htm pages in the same Web
site and in the same folder, in the index.htm file, you could refer to totorial.htm like this:
<a href="Tutorial.html">Tutorial Link</a>
4. The Target Attribute
A hyperlink opens the referenced page in the same browser window by default. That means
the new page replaces the previous page in the browser. In some cases the user might want the
hyperlink to open in a new window (check out a page on another site without leave the current
site) or open in the same frame.
Target attribute is used to specify the location where linked document is opened. It adds to the <a> tag.
Following are the possible options:
target=“_self” Display on the same page
target=“_blank” Display on another page
target=“_name of frame” Display on the frame
Example1:
<!DOCTYPE html>
<html>
<head>
<title>Hyperlink Example</title>
</head>
<body>
<p>Click any of the following links</p>
<ul>
<li> <a href = "www.google.com" target = "_blank"> Opens in New </a> </li>
<li> <a href = "www.google.com" target = "_self"> Opens in Self</a> </li>
3. 3
</ul>
</body>
</html>
Remember, this method have no control over the size of the window, it will generally open as a
new tab or in a new window the same size as the most recently opened window in the user’s
browser.
5. Linking Types
5.1 External linking to other web sites
Absolute paths are used when referring to content outside the current web site that is, paths
containing the full location of the web.
Example2:
<!DOCTYPE html>
<html>
<head>
<title>Hyperlink Example</title>
</head>
<body>
<p>Click following link</p>
<a href = "https://www.google.com" target = "_self">Google Web Site</a>
</body>
</html>
5.2 Internal linking to other pages in the site
Without “http://”, the browser looks on the current server for the linked document. A pathname,
the notation used to point to a particular file or directory, tells the browser where to find the file
4. 4
and a relative pathname describes how to get to the linked document starting from the location of
the current document.
The following diagram show the Jen’s Kitchen site, the root directory is named jenskitchen.
Linking within a directory
To make a link from home page (index.html) to a general information page (about.html),
both files are in the same directory (jenskitchen). So from home page, we can make a link to the
information page by simply providing its filename in the URL make a link from home page
(index.html) to about file
<a href="about.html"> About this page...</a>
5. 5
Linking to a lower directory
All websites have a root directory, which is the directory that contains all the
directories and files for the site. To write a relative pathname is to start at the root directory and
list the subdirectory names until you get to the file you want to link to. This kind of pathname is
known as site root relative. A forward slash (/) at the start of the pathname indicates the path
begins at the root directory.
The site root relative pathname in the following link to find the salmon.html file:
<a href="/recipes/salmon.html">Garlic Salmon</a>
Note that you don’t need to write the name of the root directory (jenskitchen) in the path—just
start it with a forward slash (/), and the browser will look in the top-level directory relative to the
current file. From there, just specify the directories the browser should look in.
<a href="recipes/salmon.html">Garlic Salmon</a>
6. 6
Linking to a higher directory
To a link from salmon.html back to the home page (index. html), because
salmon.html is in the recipes subdirectory, we need to back up a level to jenskitchen to find
index.html. This pathname tells the browser to “go up one level,” then look in that directory for
index.html.
<a href="/index.html">[Back to home page]</a>
Note that we don’t need to write out the name of the higher directory (jenskitchen) in the
pathname. The ../ stands in for it.
7. 7
5.3 Linking to sections of a document
Linking to a specific section or point in a web page is useful for providing shortcuts to information
at the bottom of a long, scrolling page or for getting back to the top of a page with just one click or tap.
Linking to a specific point in the page is also referred to as linking to a document fragment. Linking to a
particular spot within a page is a two-part process. First, you identify the destination, and then you make a
link to it.
Step 1: Identifying the destination: to create a destination, use the id attribute to give the target element in
the document as a unique name appear in the document, as an example to link into conclusion segmet
<h1 id="conclusion">conclusion</h1>
Step 2: Linking to the destination with the identifier in place. The href attribute is used to provide the
location of the link. To indicate the linking to a fragment, the symbol (#), is used before the fragment name.
<a href="#conclusion">conclusion</a>
The following code create a web page include description of five chapters. Show the output and specify
navigation state.
9. 9
6. Hyperlinking to Other Content
A hyperlink can reference any file, not just a Web document. One can take advantage of
this to link to other content such as Microsoft Office documents, compressed archive files, and
even executable program files such as setup utilities for programs. The procedure for linking to
other content is the same as for linking to a Web page; the only difference is the file name that
enters in the hyperlink.
Before creating a link to non-HTML content, the developer need to remember that not everyone
has the same software. Some browsers have a feature that automatically tries to download an
appropriate viewer, player, or plug-in (an extension to the browser for handling a certain type of
file) for anything it can’t display as content. That’s a great feature when it works, but it’s not
reliable because not all Web visitors will have a browser with this capability. So, the developer
should at least provide a hyperlink to a free viewer that can display that file type especially with
audio and video files.
To provide a viewer for a type of content, create a hyperlink that points to a site from which it
can be downloaded, or store the viewer on your own Web site and provide a link to it
Example 4:
<!DOCTYPE html>
<html>
<head>
<title>Hyperlink Example</title>
</head>
<body>
<a href = "https://www.tutorial.com/page.pdf">Download PDF File</a>
</body>
</html>