make link text html code example

Example 1: html links

<a href="url">link text</a>

Example 2: how to make links in html

<a href="link.html"> text link </a> <!-- link to html -->
<a href="google.com" URL> Google </a> <!-- link to site -->
<a href="link.html"><button> Link </button></a> <!-- Button link -->

Example 3: html links

<!-- How to link to a website? -->
<a href="url"> Some text... </a>


<!-- How to create a link to another file? -->
<a href="path to de file"> Some text... </a>


<!-- How to create a link to a subsection within the document? -->
<!-- Example: object to which we want to jump to: -->
<h1 id="some id"> Title </h1>
<!-- linked text: -->
<a href="#some id"> Some text... </a>


<!-- How to associate a link to an image? -->
<a href="url">
<img src="path to image" alt="" style="width:42px;height:42px;">
</a>

Example 4: how to add text in html

<h1> This is h1 </h1> <!-- Biggest font-->
<h2> This is h2 </h2>
<h3> This is h3 </h3>
<h4> This is h4 </h4>
<h5> This is h5 </h5>
<h6> This is h6 </h6> <!--Smallest font-->

Tags:

Html Example