Hãy hiểu ngắn gọn khi bạn mở trình duyệt và gõ địa chỉ web như http. //www. ugaoo. com. Đại khái tất cả mọi thứ diễn ra phía sau hiện trường, trước khi bạn bắt đầu thấy trang web được hiển thị trong trình duyệt của mình. Show
Điểm quan trọng cần hiểu ở đây là máy chủ có thể phản hồi bằng một URL mới mà người dùng có thể được chuyển hướng đến. Bạn sẽ nhận thấy URL được chuyển hướng này bị thay đổi trên thanh địa chỉ của trình duyệt Ở trên, chúng ta đã xem xét cách máy chủ nhận yêu cầu và phản hồi bằng trang HTML. Bây giờ chúng ta hãy hiểu ngắn gọn về trang HTML là gì. Trang HTML là gì? Dạng dài - Ngôn ngữ đánh dấu siêu văn bản Its text file which contains HTML , etc with their respective starting and ending tags, arranged in defined structure by the HTML standard. These tags are arranged in parent child relationship like below. Entire contents are enclosed inside starting and ending tag. <html> <head> <title> Hello </title> </head> <body> <p> Hello web world </p> </body> </html> The HTML page is divided into two major sections and . The first section contains the tags and contents related to showing the title, logo, and other relevant configurations used by the browser to render the page properly. It also ideally contains other resources like CSS & javascript URLs which are processed by the browser to render the page. ( I will not get into details of what is CSS and Javascript. They themselves are big topics individually to understand in detail). The second section contains the HTML tags which result in the page that you see in your browser.Có một số tài nguyên khác góp phần hiển thị trang mà chúng tôi thấy trong trình duyệt JavaScript - |