Web Programming ct214H Lab1 HTML
Web Programming ct214H Lab1 HTML
LAB 1 – HTML
Content:
- Creating a webpage
- Basic elements (paragraph, heading, etc.) and formatting (font, bold, italic,
underline, etc.)
- Lists, special characters.
- Table, form, image, map, page background, etc.
v Requirements:
Create the following webpage and view it in a browser:
v Hint:
1) Open a text editor (e.g. NotePad++) and type the following segment of code:
<html>
<head>
<meta charset="UTF-8"/>
<title>Thực hành Lập trình Web - Bài 1.1</title>
<head>
<body>
<p>Chào mừng bạn đến với môn học <b>Lập trình Web<b></p>
</body>
</html>
Figure 3. Transcript
v Hint:
- Headings, lists, colors, etc.: similar to Ex 3.
- Tables:
o Width: use the width attribute of the <table> tag
o Table alignment: use the align attribute of the <table> tag.
o Cell “STT”: merges 2 cells on the same column, using the rowspan
attribute of the <td> tag. Similar for the “Mã HP”, “Tên học phần”, “Số
TC” columns.
o Cell “Điểm học phần”: merge 2 cells on the same row using the colspan
attribute of the <td> tag. Similar for the “Điểm trung bình học kỳ”
column.
o Cell background color: use the bgcolor attribute of the <td> tag.
o Cell alignment: use the align attribute of the <tr> or <td> tag.