Login Register
Code2night
  • Home
  • Blog Archive
  • Tutorial
  • Interview Q&A
  • Languages
    • Angular
    • C
    • c#
    • C#
    • HTML/CSS
    • Java
    • JavaScript
    • Node.js
    • Python
    • React
    • Security
    • SQL Server
    • TypeScript
  • Post Blog
  • Tools
    • JSON Beautifier
    • HTML Beautifier
    • XML Beautifier
    • CSS Beautifier
    • JS Beautifier
    • PDF Editor
    • Word Counter
    • Base64 Encode/Decode
    • Diff Checker
    • JSON to CSV
    • Password Generator
    • SEO Analyzer
    • Background Remover
  1. Home
  2. Blog
  3. Mastering CSS: Step-by-Step Guide for Assignment 1 in HTML/CSS

Mastering CSS: Step-by-Step Guide for Assignment 1 in HTML/CSS

Date- Dec 09,2023

2814

Change the anchor link using CSS: We can change the anchor link CSS and the hover CSS, as shown in the example below.

Example:-

<html>

<head>

<style>

a{color:grey;text-decoration:none}

a:hover{color:blue;text-decoration:underline;background-color:orange;font-weight:bold}

</style>

</head>

<body bgcolor=yellow>

<h1><a href="https://www.google.com/">Google Page Link</a></h1>

</body>

</html>



Result:-



S
Shubham Saini
Programming author at Code2Night โ€” sharing tutorials on ASP.NET, C#, and more.
View all posts โ†’

Related Articles

Responsive Slick Slider
Jul 28, 2022
How to Add a WhatsApp Share Button on Your Website
Aug 22, 2022
Create a Slick Slider with a Single Slide: Step-by-Step
May 09, 2021
Create a Code Syntax Highlighter Using Prism.js: Complete Guide
Dec 12, 2020
Previous in HTML/CSS
Defining IDs in CSS: A Step-by-Step Guide with Examples
Next in HTML/CSS
Complete Guide to Using External CSS in HTML with Examples

Comments

Contents

๐ŸŽฏ

Interview Prep

Ace your HTML/CSS interview with curated Q&As for all levels.

View HTML/CSS Interview Q&As

More in HTML/CSS

  • Complete Guide to Building a Music Player in HTML/CSS 9325 views
  • How to Create a Table with Fixed Header and Scrollable Body … 6395 views
  • Free PHP, HTML, CSS, JavaScript/TypeScript editor - CodeLobs… 4899 views
  • Child Internet Safety: A Complete Guide for Developers 4314 views
  • Complete Guide to Creating a Registration Form in HTML/CSS 4013 views
View all HTML/CSS posts โ†’

Tags

AspNet C# programming AspNet MVC c programming AspNet Core C software development tutorial MVC memory management Paypal coding coding best practices data structures programming tutorial tutorials object oriented programming Slick Slider StripeNet
Free Download for Youtube Subscribers!

First click on Subscribe Now and then subscribe the channel and come back here.
Then Click on "Verify and Download" button for download link

Subscribe Now | 1760
Download
Support Us....!

Please Subscribe to support us

Thank you for Downloading....!

Please Subscribe to support us

Continue with Downloading
Be a Member
Join Us On Whatsapp
Code2Night

A community platform for sharing programming knowledge, tutorials, and blogs. Learn, write, and grow with developers worldwide.

Panipat, Haryana, India
info@code2night.com
Quick Links
  • Home
  • Blog Archive
  • Tutorials
  • About Us
  • Contact
  • Privacy Policy
  • Terms & Conditions
  • Guest Posts
  • SEO Analyzer
Free Dev Tools
  • JSON Beautifier
  • HTML Beautifier
  • CSS Beautifier
  • JS Beautifier
  • Password Generator
  • QR Code Generator
  • Hash Generator
  • Diff Checker
  • Base64 Encode/Decode
  • Word Counter
  • SEO Analyzer
By Language
  • Angular
  • C
  • c#
  • C#
  • HTML/CSS
  • Java
  • JavaScript
  • Node.js
  • Python
  • React
  • Security
  • SQL Server
  • TypeScript
© 2026 Code2Night. All Rights Reserved.
Made with for developers  |  Privacy  ยท  Terms
Translate Page
We use cookies to improve your experience and analyze site traffic. By clicking Accept, you consent to our use of cookies. Privacy Policy