Start learning with our library of video tutorials taught by experts. Get started
Viewers: in countries Watching now:
This course is designed to quickly lead you through the steps of building an HTML website, from creating a new page to building links and tables. Author James Williamson simplifies the coding process, with straightforward steps you can recreate on your own. The course explains the basic structure of an HTML document, shows how to add text and images, and introduces font styling with CSS. James also offers a bonus design challenge at the end of each chapter, where he asks you to think of a solution before offering his own.
Starting with this chapter, and in each of the remaining chapters, we're going to have a lab at the end of the chapter that basically just tests what you've learned so far. Now in our first lab, we're going to explore creating the basic structure of a new HTML document. Before we get started with that, I want to show you what we're going to be building over the course of the remaining chapters. We're going to build this little reference site, Up and Running with HTML. You're looking the first page here, Introduction to HTML. So essentially this has a nice little intro to HTML, some history, a timeline. We have a page where you can learn a little bit more about HTML syntax, so the markup itself.
We have another page that talks about creating links that we will be doing a lot of when we get into the link chapter. We have an existing HTML Reference page where you can learn about common HTML terms and learn about some of the special characters that we can place in HTML. Finally, we have the sort of Next Steps, which is really just sort of explain my philosophy of learning web design and then gives you guys some additional resources that you can go check out online when you're learning HTML. This is what we're going to be building eventually, so we're going to start from scratch by building the basic structure of these documents.
So I am going to go back into our code editor and I'm going to open up the intro.htm from 02_06 directory. Now, not a lot going on in this file right now, but it's not totally empty. What you're seeing at the very top of the page here, this is what's called an HTML comment. We're going to learn more about them in a little bit, but right now what this is giving us is instructions on what we need to do for this particular lab. Now, you can do all of this below the comments. So the comment can be the very first thing that shows up, and you can just go ahead and start coding directly underneath that.
The first thing we'll need is an HTML5 document type declaration. After that, we're going to add an HTML element to identify the fact that this is an HTML file. And you should specify in that HTML element, using an attribute, that the document is going to be using English. Now after that, go ahead and add the head of the document inside the HTML element. Inside the head, you're going to add a meta tag that sets the character set to UTF-8, and then after that you want to add a title, and the title of this document is going to be Introduction to HTML.
Just after the head you'll add the body tag, and inside the body you're going to add some div tags to create sections, and the sections are going to be identified using the ID attribute for each div tag, and you're going to have three of them. You will have header, content, and footer. Below the comment you'll see this content it's on the page right here. This is just placeholder content, and you can copy or cut that and then paste that into the div tags. As a matter of fact, I recommend cutting it so that you don't have this sort of extra content down below the closing HTML tag.
Build your HTML directly after that and then just sort of move this up into those div sections to serve as placeholder content once were done. So that's your first lab. Now, after you're finished, or if you get stuck, you can check out the lab solution movie in the 02_06 finished_files directory, if you want to compare your work to mine.
There are currently no FAQs about Up and Running with HTML.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.