90 likes | 214 Vues
Learn how to effectively insert images into your web page by understanding file storage and linking. Everything related to your website, including images, text, and other pages, should be stored in a single folder for proper organization. This guide covers the difference between relative and absolute links, and how to use them to display images correctly on your site. By ensuring all elements of your website reside in the same folder, you can streamline your web development process and enhance your site's functionality.
E N D
How do I Insert a Picture Into a Web Page? • Well, your web pages are all stored in a single folder, right? • Inside that folder there are several pictures, a main index page, and some other stuff, right?
The reason you store everything in a folder is because HTML only understands 2 kinds of commands: Relative& Absolute
Your main web page… …lives in the folder. • Every part of your web site has to live there too. • All your pictures, all your writing, your links, other pages, EVERYTHING has to live in that same folder.
Links to images & pages in your main folder are calledRelativelinks.
Relative links look like this: .../logo.html
When you make a link OUTSIDE that folder… • Like to the internet or another web site… • That’s calledanAbsolutelink.
Absolute links look like this: http://www.cbtcafe.com
Review… Remember • Every part of your web site has to live there too. • All your pictures, all your writing, your links, other pages, EVERYTHING has to live in that same folder.