Lessons: 17Length: 2.2 hours

Next lesson playing in 5 seconds

Cancel
  • Overview
  • Transcript

3.4 Code the “Rates” Page

Hello, and welcome back to Build a Classic Five Page Website. In the last lesson, we coded up the accomodation page, which we have on screen here. And in this lesson, we're going to take this page, duplicate it, make a couple of edits, and hey presto, it's gonna turn into the right page. All right, let's go ahead and do that. So we will right-click on the combination page, duplicate it and then you file rate.html. Now this is probably gonna be the quickest of all the pages that we create, cuz there's only a couple of things we have to do. First up we'll take the active class of the combination link and put it onto the rates link. Then change the heading so that it reads rates. Now, we just need to carry over the content from our rates page mock up. So we've got a few paragraphs here. Copy all of that text, gonna add it in here. And we're just gonna need to add an extra couple of paragraph tags. So that each one of these paragraphs is individually wrapped. And you see how we've got these individual paragraph tags here. That's why we added this empty div in here before. If we didn't, then each one of these paragraphs would be turned into a grid cell and we don't want that. We want this to be treated as the grid cell, so that was the reason for that. Now we'll add in our different images. We've got rates_1 and rates_2. And then we've got a different set of list items. So you'll just do the same thing as you did before, add in the list items. I'll just copy and paste those in. And that's it. Just like that. And we're gonna hit the rates link. And there we go. Super straight forward and super quick. So if you get the chance with a site like this, that is static, try to make it as easy on yourself as possible and reuse elements wherever you can. That can also help with the process of coming back and doing any manual updates later if you need to. And again, of course, because we're using the exact same code as on our other pages, the responsiveness is already completely taken care of. Now we've only got two more pages to code up. And the next one that we're gonna tackle out of those is the Guest Comments page. So we're gonna to that in the next lesson. I"ll see you there.

Back to the top