Thư viện tài liệu trực tuyến miễn phí dành cho các bạn học sinh, sinh viên
Global and local variables v A variable is local to a function if § It is a formal parameter of the function § It is declared with var inside the function (e.g. var x = 5) v Otherwise, variables are global v Specifically, a variable is global if § It is declared outside any function (with or without var) § It is declared by assignment inside...
45 trang | Chia sẻ: hachi492 | Ngày: 06/01/2022 | Lượt xem: 937 | Lượt tải: 0
Advanced Colors • We already know that colors can be defined by name, RGB, or hex values • CSS 3 also allows you to paint away with HSL — hue, saturation, and lightness • An HSL color value is specified with: hsl(hue, saturation, lightness). Ø Hue is a degree on the color wheel (from 0 to 360): • 0 (or 360) is red • 120 is green • 240 is blu...
34 trang | Chia sẻ: hachi492 | Ngày: 06/01/2022 | Lượt xem: 801 | Lượt tải: 0
vHTML 5 specify DOCTYPE as follows: vNew tags introduced in HTML5 for better structure § header − This tag represents the header of a section. § footer − This tag represents a footer for a section and can contain information about the author, copyright information, etc. § nav − This tag represents a section of the document intended for ...
45 trang | Chia sẻ: hachi492 | Ngày: 06/01/2022 | Lượt xem: 795 | Lượt tải: 0
Web Servers • Basic functionality: • Receive HTTP request via TCP • Map host header (domain name) to specific virtual host (one of many host names sharing an IP address) • Map Request-URI to specific resource associated with the virtual host • File: Return file in HTTP response • Program: Run program and return output in HTTP response • Map...
48 trang | Chia sẻ: hachi492 | Ngày: 06/01/2022 | Lượt xem: 684 | Lượt tải: 0
Brief history of Web Applications ● Initially: static HTML files only with HTML forms for input ● Common Gateway Interface (CGI) ○ Certain URLs map to executable programs that generate web page ○ Program exits after Web page complete ○ Introduced the notion of stateless servers: each request independent, no state carried over from previous re...
323 trang | Chia sẻ: hachi492 | Ngày: 06/01/2022 | Lượt xem: 667 | Lượt tải: 0
Câu 6: Trạng thái nào của HTTP Response thể hiện có lỗi từ phía Client? A. 2xx B. 3xx C. 4xx D. 5xx Đáp án: C Câu 7: Đâu không phải nút con của nút window trong cây Document? A. plugins B. event C. frames D. navigator Đáp án: A Câu 8: Mã HTML nào duới đây thực hiện căn lề trái cho nội dung 1 ô trong bảng? A.
59 trang | Chia sẻ: hachi492 | Ngày: 06/01/2022 | Lượt xem: 925 | Lượt tải: 0
7.6.4 The Shape of Things to Come SimpleXML handles element attributes as transparently as it does elements and their content. Attribute-value pairs are represented as members of a PHP associative array, and can be accessed like regular array elements. To see how this works, take a look at this script: Unlike previous examples, which used an ext...
9 trang | Chia sẻ: hachi492 | Ngày: 06/01/2022 | Lượt xem: 822 | Lượt tải: 0
Let’s explain in detail the code for this layout. As in the previous example, we make our “leftcol” DIV float to left and its width is set to 20%. Our “content” DIV is floated to left and its width is set to 59%, while our recently added “rightcol” DIV is floated to the right, and its width is set to 20% too. Header and Footer DIVS are kept to the ...
21 trang | Chia sẻ: hachi492 | Ngày: 06/01/2022 | Lượt xem: 741 | Lượt tải: 0
He made me to lie down in green pastures: he led me beside the still waters. He restoreth my soul: he leadeth me in the paths of righteousness for his name's sake. Yea, though I walk through the valley of the shadow of death, ...
7 trang | Chia sẻ: hachi492 | Ngày: 06/01/2022 | Lượt xem: 757 | Lượt tải: 0
5.1 Business Registration page Design the following page for Business Registration to add a business. Users can choose multiple categories for the business in the list in the left of the page. 5.2 Business Listing page Design the following page for Business Listing to display a list of businesses for a specific category. Users can click to the l...
16 trang | Chia sẻ: hachi492 | Ngày: 06/01/2022 | Lượt xem: 899 | Lượt tải: 0