Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

How to Create a link in TextEditor (mac).

I have completed writing the HTML codes for a small website in TextEditor (mac), I would like to view it on other devices. Where will be the link or URL that I can use to open in other devices?

Andy Nguyen
Andy Nguyen
1,332 Points

Just copy and paste the HTML file you have created. What I usually do is just use Facebook or discord to send myself the hyperlink and open it from there.

Andy Nguyen, Where can I find the hyperlink?

Marcos Rodriguez
Marcos Rodriguez
6,762 Points

A Patil. If the html code is not being hosted online then you can't access it from other devices.

Marcos Rodriguez
Marcos Rodriguez
6,762 Points

If the html is online the hyperlink is the website address on the top of the browser tab.

Marcos Rodriguez, how can I host the HTML code online so that I can access it from other devices?

1 Answer

Alita Edmonds
Alita Edmonds
6,068 Points

Hi A Patil! If you want it to be officially a website, then consider watching the last stage in the course "How to Make a Website", and finding a hosting service. (I recommend Namecheap.) Or, if you wanted to wait and just view it, put your project file in a new folder in your Mac Finder in documents, go to your browser, and type down this: file:///Users/(Username)/Documents/(what you named your folder)/(your project name)/index.html

This worked for me to see it and I hope it will work for you too. However, this will only work for your Mac and if you want to view it in other screen sizes, just right click in your project file on the browser, click INSPECT, and at the top, you will see a icon that looks like two iPads. Click that and you will be able to choose different screen sizes. Hope this helps and happy learning!

Thank you so much, Alita Edmonds! your answer really helped me.

Alita Edmonds
Alita Edmonds
6,068 Points

No problem! Happy Learning!