TAILIEUCHUNG - HTML & CSS: The Complete Reference- P16

Tham khảo tài liệu 'html & css: the complete reference- p16', 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ả | This page intentionally left blank r- r-s r __ i i n a__ _ir X _ Xl_ __X _ _ APPENDIX Character Entities Keyboard characters such as and have special meanings to X HTML because they are part of HTML tags and must be encoded. Other characters such as certain foreign language accent characters and special symbols can be difficult to specify depending on the keyboard being used. To address escaping of special-purpose characters and inserting a wide range of characters and symbols character entities should be employed. The format of character entities is in general code where code may be a A decimal form like 203 A hex form like x0 0CB or stripped of leading zeros simply xCB A named value if available such as Euml NOTE When using a hex form either a lowercase or uppercase x may be used as well as upper-and lowercase values for digits A-F so XCB and xCB and xCb and so on are all equivalent. Case sensitivity is not however guaranteed for named entities and may result in errors or wrong characters. Good style would suggest lowercase for the hex symbol and uppercase for the digits. As an example p Numeric entity decimal 163 p p Numeric entity hex x00A3 p p Named entity pound p 727 r- r-s r i i n a__ _i_r _x _ _xi_ x i _ 728 Part III Appendixes would look like this Numeric entity decimal Numeric entity hex Named entity Encoding Quirks and Considerations Encoding characters is quite important if you want to validate your markup. For example consider when you have nontrivial query strings in X HTML links like so p Does this a href http program p1 foo p2 bar link a validate p The markup will not validate. Validation Output 2 Errors I Line 9 Column 59 cannot generate system identifier for general entity p2 p uoes tms a nret- ntcp program pi-toosj i-Dar iinK a vanaate p An entity reference was found in the document but there is no reference t v .

TỪ KHÓA LIÊN QUAN
Đã 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.