Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 4 Chapter 4 Creating a Simple Page Disclaimer: All words, pictures are adopted from “Learning Web Design (3rdeds.)” by Jennifer NiederstRobbins,

Similar presentations


Presentation on theme: "Chapter 4 Chapter 4 Creating a Simple Page Disclaimer: All words, pictures are adopted from “Learning Web Design (3rdeds.)” by Jennifer NiederstRobbins,"— Presentation transcript:

1 Chapter 4 Chapter 4 Creating a Simple Page Disclaimer: All words, pictures are adopted from “Learning Web Design (3rdeds.)” by Jennifer NiederstRobbins, published by O’Reilly 2007. Edited by Guoliang Liu, Only for Course CSc2320 at GSU CS Department

2 In this chapter An introduction to (X)HTML elements and attributes A step-by-step demo for simple web page Document structures Basic text and image elements A simple style sheet troubleshooting 2

3 5-steps to produce a web page Start with content Give the document structure Identify text elements Add an image Change the look with a style sheet 3

4 Launch a Text Editor Creating a new document in Notepad (Windows) Creating a new document in TextEdit(Mac OS) 4

5 Step 1: Content Type your content Save your file What Browsers Ignore? ◦ Line breaks (carriage returns) ◦ Tabs and multiple spaces ◦ Un-recognized markup ◦ Text in comments 5

6 Step 2: Document Structure HTML element 6

7 Step 2: Document Structure Basic document structure 7

8 Step 2: Document Structure Tips ◦ Lower cases for elements and attributes  …, … ◦ Use quotation marks for attribute values  … ◦ Closing elements every time ◦ Use style sheets instead of table-based approach 8

9 Step 3:Identify Text Elements 9

10 Step 4: Add an Image Use element 10

11 Step 5: Set the Look (Style Sheet) Create style rules 11

12 Troubleshooting Missing slash? Missing ending tags? Missing left/right angle brackets? 12

13 Homework Reading Chapter 4 Assignment 3: ◦ Make a same or a similar web page like:  The page "Black Goose Bistro" in page 67 of the textbook  You can use other pictures and text content that you like  You have to use the elements we have talked about including,,, and add a style sheet (the one in page 11).  For the paragraphs, it will be appreciated if you put some comments about the class so far.  Name your html file as “assignment3.html” ◦ Email to TA with the attachment ◦ Due: Monday, Sep 15 th, 2014 13

14 assignment3.html should be like 14


Download ppt "Chapter 4 Chapter 4 Creating a Simple Page Disclaimer: All words, pictures are adopted from “Learning Web Design (3rdeds.)” by Jennifer NiederstRobbins,"

Similar presentations


Ads by Google