How to add an images to a website using HTML what is alt

This lesson is exclusive to members

Course contents
SECTION: 4
Project 2: Bike Repair Website 6:12:48
SECTION: 6
Project 4: Bootstrap Yogurt Website 3:35:39

Questions

You need to be a member to view comments.

Join today. Cancel any time.

Sign Up

Course info

128 lessons / 17 hours 5 projects Certificate of achievement

Overview

Hi there, my name is Daniel Scott and together we’re going to learn how to build professional responsive websites. which look good on mobiles, tablets and desktop screens.

We will build 4 sites together...
  • a simple but elegant restaurant website.
  • a bike repair website. 
  • a responsive portfolio website.
  • a Bootstrap website.  

We cover everything you need to build your first website. From creating your first page through to uploading your website to the internet. We’ll use the world’s most popular (and free) web design tool called Visual Studio Code.

There are exercise files you can download and then work along with me. At the end of each video I have a downloadable version of where we are in the process so that you can compare your project with mine. This will enable you to see easily where you might have a problem.

We will delve into all the good stuff such as how to create your very own mobile burger menu from scratch learning some basic JavaScript and jQuery. 

 You will...
  • Learn how to work with responsive images and icons. and stunning full screen background images and probably one too many gradients. 
  • Learn how to create forms and to choose great fonts for your website. 
  • Learn how to work with Bootstrap 4 to easily add carousels, cards and complex looking menus. 
  • Setup a domain name with hosting so that your website is live on the internet for others to see.  

There are fun class projects for you to work on which will enable you to practice what you learn. By the end of this course you’ll have a great understanding of important web design topics like HTML5, CSS3, Flex box, Responsive design and Bootstrap.   

If that all sounds a little too fancy - don’t worry, this course is aimed at people new to web design and who have never coded before. We’ll start right at the beginning and work our way through step by step. 

Who am I? 

I’m Dan, and I’ve been building websites for about 15 years now. I am award winning instructor, and have won a MAX Master award for the last 2 years in a row at the prestigious Adobe Max conference.

Time to upgrade yourself?
Sign up for the course and let’s learn how to build responsive websites.

Course duration 16 hours 42 mins
Daniel Scott

Daniel Scott

Founder of Bring Your Own Laptop & Chief Instructor

instructor

I discovered the world of design as an art student when I stumbled upon a lab full of green & blue iMac G3’s. My initial curiosity around using the computer to create ‘art’ developed into a full-blown passion, eventually leading me to become a digital designer and founder of Bring Your Own Laptop.

Sharing and teaching are a huge part of who I am. As a certified Adobe instructor, I've had the honor of winning multiple Adobe teaching awards at their annual MAX conference. I see Bring Your Own Laptop as the supportive community I wished for when I was first starting out and intimidated by design. Through teaching, I hope to bring others along for the ride and empower my students to bring their stories, labors of love, and art into the world.
True to my Kiwi roots, I've lived in many places, and currently, I reside in Ireland with my wife and kids.

Certificates

We’re awarding certificates for this course!

Check out the How to earn your certificate video for instructions on how to earn yours and click the available certificate levels below for more information.

Downloads & Exercise files

Download Exercise Files Download Completed Files

Transcript

All right, this video is all about adding images to your HTML. It's pretty easy, let's jump in now and learn how to do it. 

To add our image, we're going to put it inside the Header. So, clicking in between the Header, angle brackets, put a 'Return' in. We're going to use IMG, that's the kind of shortened version of the tag that describes an image. I hit 'Return', and it puts in all the junk we need. So the image source, just where it is. It's nowhere at the moment, so we need to put it in a place inside of our local folder. So let's do that first. 

So what we're going to do is we're going to jump out to our Finder. On a Mac, it's called Finder, on your PC it's called Window-- so, find your My Documents panel, get this up. And on your desktop, inside of your Project 1, we've got Index and Style, but we need to put our image in here. And it's really common not to just dump it sitting kind of in with these guys. You put them in a group, in it's own little folder called Images. 

So we're going to right click, I'm going to make a new folder. That's basically the same on Mac or PC. You either call it IMG or images. I call it images. Half the world calls it IMG, the other half of the world calls it images. I call it images. It's not good or bad but yeah, you have to take sides. So we've got a folder in there called Images, there's nothing in it. So let's go into our Exercise Files. Let's go to Project1, and inside of here, there's a PNG called logo-adere-restaurant. I'm going to right-click it, I'm going to copy it, just copy. My shortcuts you can tell. Can I copy? There you go, Copy, or Command C, or Ctrl C on a PC. 

Let's go back to our Desktop and paste it in. 'Desktop', 'Project1', 'Images'. Right click, paste item, and there he is. So hasn't really done much. I guess it brings up a really good point; everything in this website needs to be in this folder called Project1. Remember, doesn't have to be called Project1, but everything has to be inside of here. It's called the root of the website. So it needs to know that this is Home base, and it doesn't need to know the rest of your computer exists. Just needs to know this, like little folder, is its own little world. 

So under 'Image Source', so I just typed in 'im', I just started typing 'im', you can see it goes, "Hey, I've looked into your root folder and I've seen this folder called images, would you like to use that?" and you're like, "I would." If it doesn't appear it's probably broken. You need to go make sure that Images folder is in the right place, but if it's still not working just type it in. IMG, and then you need a forward slash, to say, I'm inside that folder, and what's inside that folder? There's only one thing. It's pretty clever. Now let's save it, 'Save All', and let's preview in a browser. There it is. It's Left Aligned, we're going to move it into the middle, but that's how you add an image; pretty easy. 

The Alt Text is super important when you're adding images. Basically Alt Text is short for alternative, and it just means, if this image didn't load, what text would best describe this image? And this is going to be the logo for Adare Restaurant. Is that what I called it? It is. Adare Restaurant, that's my restaurant. So that describes that image. And why we do it is, for a couple of reasons. The visually impaired will have a screen reader that will read them the website. So obviously if you can't see the logo you need to be described what it is. So it needs to be a very good descriptor for people getting read out your website. 

The other thing is that Google uses it to help kind of work out what your site's about. So if you just put logo, that's fine, but you might as well put in, for Adare Restaurant, because if somebody's searching for Adare Restaurants, and your website is very clearly, for Adare Restaurants, it helps your rankings. So make sure Alt Text is really clear what it is, but also, is very specific to your kind of target. In our case we want people looking for restaurants in this town called Adare, where I'm moving to in a couple of weeks, can't wait, anyway. 

That's going to be it for this video, we've put in an image, we'll do how to create images out of programs later on in the course. We'll separate that out, we'll do Photoshop, Illustrator, and XD, how to make images. The one thing all of you need to know if you are creating them now is, that they shouldn't have any spaces. If I have a space there, or at least in the file that I've made, in my Images folder, that shouldn't have any spaces. Same rules as naming these. Should have underscores or hyphens, or, doesn't matter if it has no spaces. So just make sure, no spaces. All right, now the next video; let's go.
  • Powered by Marvin
  • Terms of use
  • Privacy policy
  • © Bring your Own Laptop Ltd 2024