WT Act Final Yash Org 1
WT Act Final Yash Org 1
1
Introduction
• HTML itself doesn’t directly set background images. You use CSS
(Cascading Style Sheets) for that.
• Hyperlinks:
2
• Contrast: Ensure sufficient contrast between the background image and
the foreground content (text, etc.).
• Image paths: Be sure that the path to your image is correct. If your
image is in the same folder as your HTML file, you can just use the image
name. If it is in a subfolder, you must include the subfolder name in the
path.
Hyperlinks (HTML):
• Basic Hyperlink: <a href=https://www.example.com>Visit
Example.com</a>
Explanation:
Objectives:
Objective of background image and using hyperlink
The objective of a background image and using hyperlinks on a webpage
serve distinct but often complementary purposes. Here’s a breakdown:
3
Background Image Objective:
Visual Appeal and Aesthetics:
• It can help create a consistent look and feel across different pages of
a website.
Highlighting content:
Hyperlink Objective:
4
• It creates connections between related content, allowing users to
explore information in a non-linear way.
Information Access:
User Interaction:
Call to Action:
Internal and external links are important for SEO. They help search
engines understand the structure and content of a website, and
they can improve a website’s ranking in search results.
Approach:
1.Background Images (CSS) :
Purpose:
mood.
5
CSS properties:
Best practices:
6
• CSS Sprites: For many small images, use css sprites to reduce http
requests.
2. Hyperlinks (HTML and CSS) :
Purpose:
HTML Attributes:
CSS Styling:
Best Practices:
• Use descriptive link text: Avoid generic phrases like “click here.”
7
• Use the title attribute: when you need to provide extra
information about the link
Example: HTML
CSS
A{
Color: blue;
Text-decoration: underline;
}
A:hover {
Color: red;
Text-decoration: none;
}
Implementation:
<!DOCTYPE html>
<html
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initialscale=1.0">
<title> Background Image and Hyperlink Example </title>
<style> body { background-image:
url('download image.jpg'); background-size:
0cap;
8
background-repeat: no-repeat; height:
100px;
margin: 28px;
}
</style>
</head>
<body>
<h2> Background Image: </h2>
<a href="https://www.shuttercock.com">
<img src="download image.jpg" alt="" class="link-image"> </a>
</body>
</html>
Output:
9
Conclusion:
10