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 trialAbhishek Patil
3,329 PointsHow 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?
Abhishek Patil
3,329 PointsAndy Nguyen, Where can I find the hyperlink?
Marcos Rodriguez
6,762 PointsA Patil. If the html code is not being hosted online then you can't access it from other devices.
Marcos Rodriguez
6,762 PointsIf the html is online the hyperlink is the website address on the top of the browser tab.
Abhishek Patil
3,329 PointsMarcos Rodriguez, how can I host the HTML code online so that I can access it from other devices?
1 Answer
Alita Edmonds
6,068 PointsHi 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!
Abhishek Patil
3,329 PointsThank you so much, Alita Edmonds! your answer really helped me.
Alita Edmonds
6,068 PointsNo problem! Happy Learning!
Andy Nguyen
1,332 PointsAndy Nguyen
1,332 PointsJust 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.