Lay out
Create layout areas
- Create a new folder within the HTML Files folder called Travel.
- In Notepad, create a home page (file name index.html) titled Traveling Down South.TIP: Make sure that your new home page has all the necessary tags:
- Save it in the Travel folder.
- Below the tag, put a tag:
- Add the attribute id="links":
id="links">- Close the
tag:- Add the word Links, so it's enclosed by the
tags:Links - Add the attribute id="links":
- Link the page to a style sheet called format.css.The code should look like this:
Links
On this page, there will be an area for navigational links, and an area for the page's content.
You've created the area for links:Links
Content
Links
Content
- Create an area to contain the page's content:
LinksContent - Save index.html.
- In Notepad, open format.css from the Dogs folder.Then save it in the Travel folder.
- In format.css, add formatting for the links area.Make its background gray:body {
background: #ffffcc;
}h1 {
font-family: verdana,helvetica,sans serif;
font-weight: bold;
font-size: 16pt;
}h2 { font-family: verdana,helvetica,sans serif;
font-weight: bold;
font-size: 14pt;
}p {
font-family: arial,helvetica,sans serif;
font-size:10pt;
}li {
font-family: arial,helvetica,sans serif;
font-size: 10pt;
}a {
color: #ff0000;
}#links {
background: #cccccc;
}
- Add formatting for the content area.Make its background white:a {
color: #ff0000;
}#links {
background: #cccccc;
}#content {
background: #ffffff;
} - Save format.css.
- In the browser, open index.html from the Travel folder.It should look like this:
Web Layout HTML & CSS