上網瀏覽網頁對現代人來說是一件很自然的事情,雖然輸入網址就可以跳轉到我們想去的頁面、頁面也能在幾秒內載入完整內容,但這背後的過程又是如何呢?
網頁的原理
瀏覽網頁的過程可以拆分為以下幾個階段:
使用者在瀏覽器中輸入路徑,向網路伺服器發送請求HTML文件
伺服器回傳對應的HTML文件給瀏覽器
瀏覽器開始解析HTML並產生內容、解析CSS產生排版與樣式、解析JavaScript並產生網頁元素與使用者的互動機制...等等
產生出我們看到的網頁畫面
Are you sure to leave this team?
Once you delete your team, all team notes will be deleted and cannot be recovered. Please ensure you've exported or transfered these notes.
Enter team name before deleting it:
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up