TAILIEUCHUNG - html xhtml and css for dummies 7th edition phần 5

Vì vậy, chúng tôi bao gồm các khối xây dựng cơ bản để xây dựng, các trang web đúng cách cân đối và không phải do trùng hợp ngẫu nhiên, hoặc là. Các chương cuối cùng trong Phần II giao dịch với các đánh dấu phản đối - cụ thể là, các yếu tố HTML và các thuộc tính không còn an toàn thông minh để sử dụng. | Part III Taking Precise Control Over Web Pages and Styles Use inline styles carefully You can attach individual style rules called an inline style to individual elements in an HTML document. An inline style rule attached to an element looks like this p style color green Green text. p Adding style rules to an element isn t really the best approach. We generally recommend that you choose either internal or preferably external style sheets for your rules instead of attaching the rules to individual elements in your document. Here are a few reasons Your style rules get mixed up in the page and are hard to find. You must place the entire rule in the value of the style attribute which makes complex rules hard to write and edit. You lose all the benefits that come with grouping selectors and reusing style rules in external style sheets. External style sheets An external style sheet holds all your style rules in a separate text document that you can reference from any HTML file on your site. You must maintain a separate style sheet file but an external style sheet offers benefits for overall site maintenance. If your site s pages use the same style sheet you can change any formatting characteristic on all pages with a change to the style sheet. We recommend using external style sheets on your sites. Linking To reference an external style sheet use the link element in the Web page header like this html head title External Style Sheet Example title link rel stylesheet type text css href head body -- Document content goes here -- body html Chapter 9 Introducing Cascading Style Sheets The href attribute in the link element can take either A relative link a style sheet on your own site An absolute link a style sheet that doesn t reside on your own site Usually you shouldn t use a style sheet that doesn t reside on your Web site because you want control of your site s look and feel. To quickly add style to your Web page or to experiment to see how browsers handle .

TÀI LIỆU LIÊN QUAN
TỪ KHÓA LIÊN QUAN
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.