From the course: Getting Started as a Full-Stack Web Developer

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Images and other non-text files

Images and other non-text files

- [Speaker] A lot of your time as a web developer will be spent monkeying with text, HTML code, server settings, programming code, what have you. But, the web is a multimedia place filled with images, audio, and video. Some of it pulled from other sites. Let's start with the simplest case, displaying an image. To show you this, I'm going to scroll down on the Landon Hotel page and then click Dining. And then I'm going to control (CTRL) click on one of these images to see the code. Go down to Inspect. And, here we see the image tag with a source attribute that says where the file is being held, where it is on the server. And then Alt Attribute, which shows some texts in case that image isn't available. This is the pure HTML method. You can also display images using CSS or JavaScript or a number of other development methods. But, whatever method you use, the graphic has to be in a format the web browser…

Contents