WS Ass2
WS Ass2
Telegram : @programming_1_2
Q1. Given the following CSS code, what would be the font color for H1 and H3?
h1, h2, h3 {font-family: Verdana; color: red}
h1, h3 {font-weight: bold; color: pink}
(a) h1 = red, h3 = red.
(b) h1 = pink, h3 = pink.
Q5. Write a full xhtml code using CSS with the following specifications.
Page Contents/ This is line 1 / use h1/ red color/ Verdana font size 20.
specifications This is line 2 / use h2/ default browser.
Q6. Re-answer the previous question with the same specifications above using
embedded and inline CSS styles.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Assignment 2 - Question 5.</title>
</head>
<body style="background-color: yellow;">
<h1 style="color: red; font-size: 20; font-family:Verdana, Geneva, Tahoma,
sans-serif">This is line 1</h1>
<h2>This is line 2</h2>
</body>
</html>