0% found this document useful (0 votes)
51 views3 pages

Code: Result

This document contains code snippets and results from 3 questions about HTML and CSS. Question 1 contains basic HTML boilerplate code. Question 2 contains HTML and CSS code to create a table with styled borders and padding. The result displays a table with two rows and three columns of sample data. Question 3 contains HTML code with unstyled text, and the result displays all the text content on one line without formatting.

Uploaded by

Husna Fadzil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views3 pages

Code: Result

This document contains code snippets and results from 3 questions about HTML and CSS. Question 1 contains basic HTML boilerplate code. Question 2 contains HTML and CSS code to create a table with styled borders and padding. The result displays a table with two rows and three columns of sample data. Question 3 contains HTML code with unstyled text, and the result displays all the text content on one line without formatting.

Uploaded by

Husna Fadzil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

QUESTION 1

Code:
<!DOCTYPE html>
<html>
<body>

</body>
</html>

Result:
QUESTION 2

Code:
<!DOCTYPE html>
<html>
<head>
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
th, td {
padding: 5px;
text-align: left;
}
</style>
</head>
<body>

<table style="width:100%">
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Points</th>
</tr>
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</table>

</body>
</html>
Result:

First Name Last Name Points


Jill Smith 50
Eve Jackson 94
QUESTION 3

Code:
<!DOCTYPE html>
<html>
<body>

Universal Studios Presents

Jurassic Park

About

On the Island of Isla Nublar, a new park has been built: Jurassic Park is a theme park of cloned
dinosaurs!!

</body>
</html>

Result :
Universal Studios Presents Jurassic Park About On the Island of Isla Nublar, a new park has been
built: Jurassic Park is a theme park of cloned dinosaurs!!

You might also like