
- Ta tạo thẻ div với tên class=”app” để chứa toàn bộ khung web
- Ta tạo thẻ header với tên class=”header” để chứa phần đầu trang web
- Ta tạo thẻ div với tên class=”container” để chứa phần thân trang web
- Ta tạo thẻ footer với tên class=”footer” để chứa phần cuối trang web
Sau đây là code ta tạo ra như sau:
<div class="app">
<header class="header">
</header>
<div class="container">
</div>
<footer class="footer">
</footer>
</div>
Đoạn code trên được đặt trong cặp thẻ <body></body> trong file index.html