TAILIEUCHUNG - Creating Cool Web Sites with HTML, XHTML, and CSS apr phần 4

thuộc tính, thẻ không có ý nghĩa và không ảnh hưởng đến các định dạng của thông tin. Sau đây, ví dụ, sẽ cho kết quả hiển thị của văn bản mà không có định dạng: Bây giờ bạn có thể truy cập trực tuyến Nhà Trắng | 104 Creating Cool Web Sites with HTM L XHTM L and CSS attributes the a tag has no meaning and doesn t affect the formatting of information. The following for example would result in the display of the text without formatting You can now visit a the White House a online To make this link live that is to make it clickable in a Web browser you need to specify the hypertext reference attribute href value . The value can be empty if you don t know the actual information but you must specify the attribute to make the link appear active to the viewer. You can rewrite the sentence as follows to make it a Web link You can now visit a href the White House a online A Web browser would display the preceding line of HTML code with the portion between the a references the anchor tags appearing in blue the default color with an underline or highlighted in some other fashion. The information that should be contained between the quotation marks is the URL for the Web page to which you want to link. The URL for the White House Web site for example is http . One classic problem that appears in HTML code is the use of curly smart or fancy quotation marks. Web servers just don t know what they mean. Doublecaution check to ensure that the quotes in your HTML documents are all straight like this rather than like this. The same applies to apostrophes and single quotes make sure that all the ones in your HTML documents are straight instead of curly . A rudimentary program such as NotePad or TextEdit uses straight quotes by default. Using either of these makes building Web pages easier than using a more sophisticated word processing program such as Microsoft Word. The following is the sentence with the correct live hypertext link to the White House You can now visit a href http the White House a online The following is a more comprehensive example which combines various facets of HTML to build an interesting and attractive Web page. html head title .

Đã 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.