HTML: insert link - how it works
To insert a link via HTML code that leads to another website, you only need to know the right day. In our practical tip you can read how it works.
Insert a link using HTML code
You can easily insert links in the HTML body. The day for this encloses the text that should be displayed as a link - so you must not forget the beginning or the end of the code for the link to work.
- The right day is link text.
- For example, it looks like this: Click here to go to the CHIP homepage!
- You can not only link to external websites, but also within your own website, for example.
- If you want to create a table of contents through which the reader can jump directly to individual chapters, define an ID in each heading, which you specify in the code instead of a hyperlink.
- For example, a heading could read:
Chapter 3: Creating an HTML index
- Then link to it as follows: Chapter 3: Creating an HTML index
You can also create your own website with a website builder - here you will find a comparison of the 3 best providers.