Académique Documents
Professionnel Documents
Culture Documents
Laboratory Exercise
Materials:
Procedures:
Activity 1: Creating an HTML file in Notepad
1. Click
button then type Notepad. The Notepad window opens.
2. Type in the following HTML code:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
</body>
</html>
3. On the File menu, click on Save. The Save As dialog box appears.
4. Locate the directory where to save the file.
5. In the File name text field, type in index.html, then click the Save button.
TIP: To avoid saving a text document in Notepad, make sure to save your file as .html or .htm to
be able to view it in a Web browser.
01 Laboratory Exercise 1
*Property of STI
Page 1 of 5
K0032
body {
background-color: green;
}
h1 {
color: yellow;
text-align: center;
}
This code simply change the background color to green and make the color of the <h1> to yellow
and center aligned.
2. Save it as css_style.css.
3. Open index.html file.
4. Type the codes below before the </head> tag
01 Laboratory Exercise 1
*Property of STI
Page 2 of 5
K0032
Challenge Exercise
Activity 1: About Me Page
1. Create a page named as aboutme.html that describes you. The page should include the
information below. See sample output in Figure 1.
a. Full name
b. Description of yourself in less than two sentence. Emphasize important word on bold.
c.
Figure 1
01 Laboratory Exercise 1
*Property of STI
Page 3 of 5
K0032
Figure 2
Activity 3: Favorite Movie
Open the aboutme.html page and produce some of the films information in a nested list under
bullets of the listed movies. See sample in Figure 3.
a. Represent the information of each movie in definition list form. Refer to Figure 3 for
reference.
b. Consider applying styles to your definition list to make it look smart.
01 Laboratory Exercise 1
*Property of STI
Page 4 of 5
K0032
Figure 3
01 Laboratory Exercise 1
*Property of STI
Page 5 of 5