TAILIEUCHUNG - Web Programming with HTML, XHTML, and CSS- P3

Web Programming with HTML, XHTML, and CSS- P3: There are a lot of books about designing and building web pages, so thank you for picking up this one. Why do I think it is different? Well, the Web has been around for over a decade now, and during its life many technologies have been introduced to help you create web pages, some of which have lasted, others of which have disappeared. Many books that teach you to write web pages are revisions of earlier versions of the same book and therefore still take the same approach as the previous edition did | Chapter 2 Links and Navigation The title Attribute As mentioned at the start of the chapter a title attribute is vital for any links that are images and can also help provide additional information to visitors in the form of a visual text tooltip in most browsers or an auditory clue in voice browsers for the visually impaired. Figure 2-2 near the beginning of this chapter showed you what the title attribute looks like in Firefox when a user hovers over the link. The type Attribute The type attribute specifies the MIME type of the link. Appendix H includes a list of MIME types. An HTML page would have the MIME type text html whereas a JPEG image would have the MIME type img jpeg. The following is an example of the type attribute being used to indicate that the document the link points to is an HTML document a href type text html Index a Theoretically the browser could use the information in the type attribute to either display it differently or indicate to the user what the format of the destination is although none do use it at present. Try It Out Creating Links Within Pages Now it s your turn to try making a long page with links between different parts of the page. In this example you are going to create a page that is a restaurant menu. So open your text editor or authoring tool and follow these steps 1. Start with the XML declaration DOCTYPE declaration and the elements for the skeleton of the document html head title and body . Remember to give the document a title and add in the namespace identifier on the root html element xml version DOCTYPE html PUBLIC - W3C DTD XHTML Strict EN http TR xhtml1 DTD html xmlns http 1999 xhtml lang en head title A menu example title head body body html 2. Inside the body element add the headings for the page. Each of these should have a destination anchor so that you can link directly to that part of the page. The main heading will be used for Back to top links whereas

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.