How to Build a Web Page With CSS
- 1). Open your HTML web authoring tool and begin typing the standard <HTML> </HTML> structure. Assume for example that the web page you are constructing is a two-column page description for an Ice Cream promotion using an INLINE CSS.
- 2). Type the Style and main elements of the CSS as follows in the <HEAD> section of your HTML: <style type="text/css">
- 3). Create the CSS Text Header 1 tag: h1 { font-family: Arial, Helvetica sans-serif; color: #799EB9; font-size: large; position: absolute; top: 63px; left: 195px; letter-spacing: normal; letter-spacing: normal; vertical-align: text-top; white-space: normal; height: auto; background-color: #FFFFFF; text-transform: uppercase; } head { }
- 4). Create the image CSS tag: body {background-image: URL (your_image.jpg); background-repeat: no-repeat} See Tip 4a.
- 5). Create the CSS Text Header 2 tag: h2 { font-family: Arial, Helvetica, sans-serif; color; #7195AB; font-size: large; font-weight: normal; }
- 6). Create the paragraph CSS tag: p { font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #003399; }
- 7). Create the List Item CSS tag: li { font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #003399; }
- 8). Close the Style by typing: </style> The inline style sheet is complete and you can now create the web page and have the HTML elements map to the CSS attributes defined above.
- 9). Type the H1 tag as follows: <H1>CRYER'S ICE CREAM</H1> followed by <h2>ALL FLAVORS YOU CAN IMAGINE!</h2>
- 10
Create the styled bulleted list by typing: <p><span>Try OUR New Flavors:</span></p> <ul> <li>Tangerine</li> <li>Cantaloupe</li) <li>Peach Almond></ul>