Introduction to HTML Links

Links allow users to navigate between pages or websites. Learning to create links is fundamental for web developers.

Creating a Link

Use the <a> tag:

<a href="https://www.example.com">Visit Example</a>

Internal Links

Link to another page in the same website:

<a href="about.html">About Us</a>

Open Links in New Tab

<a href="https://yasirwebdeveloper.netlify.app" target="_blank">Visit Example</a>

Styling Links with CSS

a {
  color: blue;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

Conclusion

Links connect your website pages and provide navigation. Properly styled links improve user experience and website professionalism.