How to Connect 2 Pages
Daniel Walter Scott
Lessons
How This Class is Structured
01:41 2What to Download
02:57 3Creating Our First Webpage
05:55 4What is HTML5 & CSS3
08:24 5Head vs. Body vs. Html Tag
09:01 6Title & Description
05:54What Code Editor Should I Use
02:42 8Using Diy Tags
06:26 9What is a CSS Class
09:05 10How to Create Nested Divs
05:03 11Class Project
05:24 12External CSS
09:07 13Creating Our Index Style Pages
12:16 14Testing Your Website
08:47 15Check Your Code For Errors
11:01 16What are HTML5 Structure Tags
05:47 17Add HTML5 structure elements
16:02 18How to Set the Color of the Background
05:10 19Adding Images to a Website
04:38 20How to Center an Image
01:14 21Change the Font Size & Color
14:11 22Make a Clickable Link
08:45 23Stretching Background Image
05:38 24Making a Div Tag Transparent
02:36 25Simple Website Text Navigation
06:43 26CSS Compound Classes
07:02 27Class Project 02
02:05 28Class Project 02 - COMPLETE
04:48 29Add an Email Button to a Website
03:49 30Add Google Maps to Your Website
11:25 31Making a Website Live
16:50 32Uploading via SFTP
11:50 33Setting Up Our New Project
03:46 34CSS Reset
15:22 35Min-height vs. Height
07:01 36Div Tags Onto One Line
05:23 37Getting div tags onto one line using Flexbox in HTML & CSS
05:23 38Evenly Spaced Div Tags
04:42 39Two Div Tags of Different Sizes
07:13 40Vertically Center Content
07:20 41Class Project 3
02:51 42Class Project 3 - COMPLETE
05:39 43Change Default Fonts
04:19 44Installing Google Fonts
12:44 45What are PX & EM & REM
14:56 46Change Line Height
04:33 47SVG vs. JPG vs. PNG
07:04 48How to Create a SVG, JPG, or PNG
11:00 49Block Images vs. Background Images
08:32 50Finishing Up Our Cards
09:10 51Icons via Font Awesome
16:31 52Making a Div Container Clickable
09:55 53Box-sizing & Border-box
06:19 54How to Make A Colored Button
07:46 55Why Can't I Add Margin or Paddding
11:08 56Rounded Corners
04:17 57Drop Shadows
06:24 58Backup Your Website
05:00 59Reusing a Button Class
03:10 60Class Project 04
02:58 61Class Project 04 -COMPLETE
05:45 62Adding a Horizontal Rule
03:51 63Make Divs Wrap Onto Separate Lines
12:14 64Hover Color & Animating a Button
03:33 65Pseudo Classes
09:31 66Simple Dropdown Navigation
20:04 67Adding Our Dropdown to the Website
14:50 68Useful Shortcuts and Tips in VS Code
13:28 69Large Background Image
09:24 70How to Connect 2 Pages
10:42 71Simple PHP Form Work
17:49 72Placeholder Form Text
05:46 73Multi Line Form Text Box
02:18 74Form Check Marks
03:04 75Form Radio Button
06:07 76Form Drop Down Menu
05:48 77How to Style Your Form
12:55 78What does responsive website design mean
04:17 79How to change a website layout size color when at different sizes using media queries
11:28 80How to test your website on a tablet or mobile phone from Visual Studio Code
06:00 81How to change the layout of a responsive website for mobile vs desktop
16:02 82How to turn things on and off for mobile tablet & desktop responsive websites
06:03 83What is pixel density responsive images pixel ratio dp px in webdesign
14:47 84How to export responsive images for website from XD Photoshop Illustrator
05:11 85How to add responsive images to website using 100% width in HTML & CSS
06:08 86How to use srcset to change images in HTML for responsive website
10:15 87How to add a css style to the first line of a p tag on a website (
11:18 88How to make the header footer full width but the inside centered
05:36 89Class Project 05 – Header design
03:12 90Class Project 05 – Header design COMPLETE
06:25 91How to use a span tag or span class in HTML to change text
10:32 92How to pin the navigation to the top of a website fixed nav
03:17 93How to make a simple responsive mobile menu using CSS only
08:21 94What is Javascript vs Jquery in website web design
06:35 95How to make a burger menu 3 line mobile navigation for a website
15:11 96How to switch a menu nav from desktop to mobile phone
21:45 97Overview of what Bootstrap 4 is in website design
07:57 98How to install Bootstrap 4 on a website using Visual Studio Code
06:27 99Quick overview of how the Bootstrap Grid Layout works in VS Code
10:49 100Quick overview of how Bootstrap Components works in VS Code
09:23 101Quick overview of how Bootstrap CSS Styles works in VS Code
08:20 102How to customize the default Bootstrap 4 css styles
13:51 103How to use Bootstrap Layout Grid Experiment 1
10:20 104How to make 100% header & uneven widths in Bootstrap 4
07:16 105How to create uneven col widths in Bootstrap 4
07:27 106How to add padding & margins using Bootstrap 4 in VS Code
12:03 107How to change layout of Bootstrap depending on mobile or desktop
15:46 108How to turn things on & off on your website using Bootstrap 4
05:30 109Google Chrome Inspect
12:40 110Add Shadows to Text & Boxes
07:06 111Change the Default Buttons
06:16 112Responsive Images in Bootstrap 4
09:34 113How to Center Text & Div Tags
04:16 114Customize the Bootstrap Navbar
07:29 115Add Your Own Logo
03:58 116Change the Default Nav Styles
12:12 117Fix the Navigation to the Top
04:41 118Col Images & Col Background
07:56 119Bootstrap Border & Rounded Corners
04:20 120Bootstrap 4 Carousels
05:13 121Card Groups
03:29 122Drop Shadows On Bootstrap Cards
02:25 123Clickable Boxes in Bootstrap 4
04:02 124Final Quiz
Lesson Info
How to Connect 2 Pages
Alright. It's time for a contact us page and we'll link it up with the homepage. They jump across using our navigation. I need, I think I've deleted one of the letters from the contact button. But basically we're gonna duplicate the homepage and I'm gonna show you what need to look out for when you are duplicating pages. And then I'll show you how to link them together in this little video. Let's jump in. Alright, so let's create our contact us page now. I wouldn't go to file new. Okay. And start making a new html page because there's no point typing all this out again. And because our contact us page uses the same logo and the same novel on the top and our sweet dropdown menu. Okay. So there's lots of bits that I want to reuse. Basically, I'm only going to switch out this chunk in the middle. Okay. So these heritage's so index page. Okay, make sure it's selected file servers, give it a new name. I'm gonna call mine. Contact or contact us, make sure that no spaces hyphens or underscore...
s. The only page you have to explicitly call something is index has to be called. Index. Everything else is up to you. Cool. Alright. The first thing you need to do whenever you duplicated pages, change the title, you don't want to pages with the same title. Okay. So it's really hard to know what to put on the contact us page. Just put in the address details, phone number, that type of thing. So if people are searching for real cycles phone number, they might get to the right page without having to go to like the homepage and back out again. Alright, we should be adding our meta description. We haven't done it to this whole website. That's a real big oversight from me. It's one of those things that you need, where it's really good to have but not essential. Okay, so meta descriptions doesn't have a really good shortcut. Okay. It's no like alright, I'm just going to type in meta and hit tab at the moment at least or I can't work out a way to the meta description. You just steal it from an old site. That's what I do. Okay, but it has the same structure is view ports as this kind of one up the top here. So that often is a good kind of way for me to cheat. Okay, so middle name, this one is called description. Okay. And it has the same thing. It says content. Okay. And that's where the description goes and it should be about 150 characters. Okay, so we start talking about the contact details of, I don't know how you write 150 characters. Um Okay what am I doing? I'll speed this up and I'll show you what I put. Alright, I'm back, make sure at the end of your meta description there is a closing angle brackets. Okay, I'm going to turn my rapping on. Okay so I added this stuff so that if there was a search result, Okay, remember our search results. The meta description is this thing is this kind of great stuff here. You know, when you're working on a website, often you don't need to go into a site, you're like, oh, okay, you can find out all the information from the description and what we've done for our people. I need to go back and edit to the index page, which I'm not going to do. I should. Now an interesting thing is who's responsible for this? So let's say it's your you are the owner of raw cycles, you are responsible for writing all the meta descriptions and I find it's easy to do it on the fly. Don't go, I'll do that later on, you'll never do it. Okay. That's been my experience. If you're working with a client asked them or tell them they have to say it's critical. I need the title of every page and tell them the kind of, you know, it needs to be short, it needs to be this many characters, it needs to have this good descriptions in it and you need a corresponding description for every page. Can be a little hard to get meta descriptions that our clients, but your page can live without a description, but it can't live without a title or at least if you wanted to actually rank in any search engine. Alright, let's actually connect the pages so we're gonna need two of them open. I'm going to close down my CSS and I'm going to have the index page and the Contact us page so I'm going to separate them kind of over here. So I got one in the other. So let's connect the say the homepage. Let's connect it when somebody uses this dropdown. While actually uses this. The contact us page because the moment goes, nowhere goes to hash. We only use that pound symbol because it means some browsers. If you click on a button and there's nothing in here, it'll come up with an error and that's not really what you want. Okay, You want to be testing just with no errors. Okay? So let's find our contact us. There it is there instead of hash, we're going to say delete you were going to start typing in contact and hopefully it goes, do you mean this page? You're like, yeah I do. It's safe. Okay, let's preview this in the browser. Okay. We're going to click on it and look at that. We've gone to the contact us page. Nothing's changed. Okay? You see at the top of your, Okay? That changed. So let's make some obvious difference. So let's go to contact us and over here let's say instead of so these two hero boxes I don't want anymore. So there is one. So I'm gonna get rid of everything in the main goodbye let's say that that's a big difference. Let's have a little look now. So let's go back so that my index page, we can click on contact and it jumps to the contact us page. Now we want to get back to the home page. Some pages have home and that's fine. You can have a home button most websites though, you just click on the logo, you might have experienced that. So to add a link to our logo, we're gonna wrap this image in an A tag. Okay, so we're going to wrap it up. We're gonna use our sweet new shortcut. So I'm gonna select, I'm gonna turn rapping on word wrap. Okay, so I'm going to take all of that. I'm going to use command shift P. Or control shift P on a pc wrap with abbreviation. So you might have to type in rap and we're gonna wrap it up in an a tag and I'm not going to give it anything else. I'm just gonna call it a tag, hit, enter on the keyboard so you can see now this fella, I'm gonna separate it out so it makes it easy for you to see. Okay, so this image now is wrapped up in an a tag. Where is it going to go? It's going to go to index. Okay, let's save it and let's have a quick little check. So the logo still actually, let's go back to the homepage. Okay. It's not working. It should have auto saved H. F. You. The image has a lot of it. The image has an a tag wrapped around it, click on it. It does work. Cool. Alright, so we want it to be on both sides. Okay, so at the moment you click on the logo. Okay, on the index page it goes back to the logo, which is not quite what we want. So we're going to grab that whole thing. Okay, so where is it logo starts? No logo starts, there ends there. We're going to copy and paste it to both pages. So where is he logo? There? It is there, it's going to replace that whole thing, so it's on both of them. So now let's give it a go, let's go to our testing. So if I click on contact, you know, connect, I don't even know how long ago I broke that. And let's go back to the homepage. Contact homepage. There is a bit of a drama of like, okay, you do it on one and you got a copy and paste it on both with the navigation is easy enough, right? You can select the whole kind of navigation or this whole chunk or the hole hitter. Okay, okay, grab that whole header and copy and paste it on both. It's not going to be a huge drama for our side because it isn't it's only six buttons. Do we? Potentially only have six or seven or eight pages. All right, the next thing I want to do is actually add some content to our kind of website. We're gonna put it in the main. Now this is gonna run into a problem. Like I'm going to say I did this on purpose. I promise gay we have a problem where main does some stuff. We said main be a height, which is perfectly fine for what I want a minimum height. But we should do some stuff like flex box and center items because we wanted to do some fun stuff on our homepage where we wanted these guys to sit side by side. And so we we did some specific stuff to maine. So the problem is I don't want to do those two main now, but I want to keep using main. So we could either call this one section now in style section over here or we do what every good web designer who gets lost any sort of person anywhere on a computer. Does we end up doing things like, let's just call it main too. And we have another one called Main two over here. You've done it. You've called your thing final. You'd be like, all right. It's my final document. And you call it final. It's like the curse of death, right? You laugh because you've done it. You call it final to even you've got final final on your computer somewhere. I bet. So yeah, sometimes you end up with Maine to now. The thing is we can't call this Main too because maine is an actual html tag like hitter. It's predefined. So we need to call it. You need to do this. You need to say this one is called main too. So it needs to be a div class called maine to. There's a few other ways of doing this. This is what we're going to do for the moment. It's like realism. Also known as bad coding. Alright, so main to what do we want to do for maine to? So here we're gonna style it. The only thing I really want for maine to is to give it a minimum height so it doesn't crush itself. That'll do fine. And I think we need some contact us. We need some probably some padding at the top, but we'll see how it goes. Let's add in here and each one and underneath that a P tag. Okay, let's copy some text from our project to text file. Okay. The H one is called contact us. Can I just take that in there? Con contact us remember. I can't see my fingers and I'm typing hard. All right. You guys you you you alright looking nice and tidy. Let's check it in the browser too close to the top so I might just add mean to you can have some padding at the top please, buddy petting petting top. HM 150 probably too much. Way too much 15. Here we go. So actually before we go, let's just like I guess give you the for instance, so let's ignore this. So let's between men who doesn't exist and we're just using main the main tag again. Okay, so mean this one here needs to end with maine and pre defined pre made and it worked on page one or the homepage, but let's see what it does on this page. You see it's flexing so it means it sticks it side by side and you're like that's not what I want. Okay, so that's why we've got this separate box. I just kind of explained why without actually showing you that kind of bad results. Alright man. Two, let's get on to the next video. We will start looking at forms. It's gonna be a good one. Good long one. It's a good hearty part of the class. Alright. We don't even have to save its auto saving for us. And yeah let's get on to the next video
Class Materials
Ratings and Reviews
Viwosoft Technologies
Great tutorial - your clear instructions and concise explanations make learning HTML5 & CSS3 a breeze!