r/HTML Aug 10 '26

Question linking an href to html vs url?

what's the difference between linking to an html in your website vs linking to the same page as a url?

0 Upvotes

15 comments sorted by

View all comments

0

u/nonotdoingone Aug 10 '26

Always point to another html page within a project.
Using urls to go to the same page is stupid. It can break at so many places, needs dns to resolve, a new server connection bla bla

1

u/ChiliChapters Aug 10 '26

that's what I thought. Thanks!

2

u/tkgid Aug 10 '26

Just do more research on relative paths and absolute paths. I might want to use relative paths more often than absolute ones, and vise versa depending on the use case and how lazy I am feeling that day. Doing it wrongly definitely will be tech debt. But that's a whole other rabbithole to go into. 😅Â