TAILIEUCHUNG - Tìm Hiểu về Wordpress - part 8

Tham khảo tài liệu 'tìm hiểu về wordpress - part 8', công nghệ thông tin, đồ họa - thiết kế - flash phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | WHICH TEMPLATE FILE WILL WORDPRESS USE T H E TEMPLATE H E 1 R A R C H Y PAGE TYPE tries first triest next tries last 404 SEARCH TAXONOMY taxonomy- taxHterm .php taxonomy- tax .php HOME ATTACHMENT mime-type .php SINGLE single- post-type .php PAGE page- slug .php page- id .php CATEGORY category- slug .php category- id .php TAG tag- slug .php tag- id .php AUTHOR author- author-nicename .php author- author-id .php DATE ARCHIVE Kicking It Off with the Header If you had never seen the files in a WordPress theme before you could probably guess which file is responsible for the top of pages. It s everybody s favorite theme file The DOCTYPE and HTML Attributes In of all themes the header file is the first file that is called when WordPress is rendering any type of web page. As such its contents begin with the same code that all web pages begin with namely the DOCTYPE. This isn t the time or place to talk about why to chose one DOCTYPE over another there are plenty available to choose from but suffice it to say that XHTML Strict is a very common DOCTYPE choice these days. Here s how it looks in the source code DOCTYPE html PUBLIC - W3C DTD XHTML Strict EN http TR xhtml1 DTD Directly after any site s DOCTYPE element is the opening HTML tag which has a number of attributes that work with the DOCTYPE to prepare the browser for what to expect from the source code. Two commonly seen attributes for the html tag include language attributes and XML namespace declarations. At this point WordPress jumps in to help define the page s language attributes html xmlns http 1999 .

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