TAILIEUCHUNG - giáo trình HTML5 và CSS3 từng bước phần 3

Tham khảo tài liệu 'giáo trình html5 và css3 từng bước phần 3', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 68 Chapter 5 Practice Files Before you can use the practice files provided for this chapter you need to download and install them from the book s companion content location. See Using the Practice Files at the beginning of this book for more information. Hyperlinking to a Web Page No matter what type of hyperlink you want to create the basic syntax is the same. It starts with the a tag and then uses an href attribute which provides the URL or the path to the destination. For example an opening tag might look like this a href http This is followed by the text that will appear underlined as the link text that you click or by a reference to the image that will serve as a hyperlink. You ll learn more about images in Chapter 9 Displaying Graphics. After that text is the closing a tag. Here s a complete example Visit a href http a for the latest information. When viewed in a browser this produces a text-based hyperlink similar to that shown in the following image Visit for the latest information. Hyperlinks are underlined by default. You can specify alternative formatting for hyperlinks by using styles as explained in Chapter 6 Introduction to Style Sheets. Using Partial Paths and Filenames In some cases you do not need to provide a file name or a complete path to the destination in a hyperlink. It depends on the context and the file s name. If you do not link to a specific page the server that hosts the Web site responds by displaying the default page for that site if one is available . If a browser does not request a specific page when accessing a server most servers will send the default page which is usually named either index or default. Perhaps you wondered why the main page of The Garden Company s Web site is called now you know. In Internet Explorer type the following URL in the Address bar http www. en us Hyperlinking to a Web Page 69 The opening page of the US version of the

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.