TAILIEUCHUNG - Learning Web Design Third Edition- P9

Learning Web Design Third Edition- P9:Everything you need to know to create professional web sites is right here. Learning Web Design starts from the beginning defining how the Web and web pages work and builds from there. By the end of the book, you'll have the skills to create multi-column CSS layouts with optimized graphic files, and you'll know how to get your pages up on the Web. | Step 5 Change the Look with a Style Sheet Step 5 Change the Look with a Style Sheet Depending on the content and purpose of your web site you may decide that the browser s default rendering of your document is perfectly adequate. However I think I d like to pretty up the Black Goose Bistro home page a bit to make a good first impression on potential patrons. Prettying up is just my way of saying that I d like to change its presentation which is the job of Cascading Style Sheets CSS . In Exercise 4-5 we ll change the appearance of the text elements and the page background using some simple style sheet rules. Don t worry about understanding them all right now we ll get into CSS in more detail in Part III. But I want to at least give you a taste of what it means to add a layer of presentation onto the structure we ve created with our XHTML markup. exercise 4-5 Adding a style sheet 1. Open if it isn t open already. 2. We re going to use the style element to apply an embedded style sheet to the page. This is just one of the ways to add a style sheet the others are covered in Chapter 11 Style Sheet Orientation. The style element is placed inside the head of the document. It uses the required type attribute to tell the browser the type of information in the element text css is currently the only option . Start by adding the style element to the document as shown here Figure 4-14. The Black Goose Bistro page after CSS style rules have been applied. head title Black Goose Bistro title style type text css style head 3. Now type the following style rules within the style element just as you see them here. Don t worry if you don t know exactly what is going on. you ll learn all about style rules in Part III. style type text css body background-color C2A7F2 font-family sans-serif hl color 2A1959 border-bottom 2px solid 2A1959 h2 color 474B94 font-size h2 p margin-left 120px style 4. Now it s time to save the file and take a look at it in the browser. It should

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.