Create an external style sheet that could be used to produce the following web p
ID: 3771190 • Letter: C
Question
Create an external style sheet that could be used to produce the following web page and create the code to insert the style sheet in the web page.
A. Create the code to insert the cascading style sheet named css in the heading of the web page.
B. Create an external cascading style sheet named css
a. Insert a comment with your name on the first line
Configure the entire web page with Times New Roman; font, size 16 points
c. Configure all of heading 2 tags as center-aligned and the hexadecimal value for the color is 336699
Create a class named MyMessage where the text is bolded and the color is red
e. Configure the color and format of all of the hyperlinks.
a) The color value should be FF0000, no underlining for the default link and previously visited link.
b) The color should be 336699 with underlining if the user places the mouse cursor over the hyperlink.
Explanation / Answer
mypage.html
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>
<body>
<h2 class="MyMessage">My Message</h2>
<a href="demo.html">
</body>
</html>
mystyle.css
/* Name : */
body {
font-family: "Times New Roman";
font-size: 16px;
}
h2 {
text-align: center;
color: #336699;
}
.MyMessage{
font-style: bold;
color: #ff0000;
}
a:visited,a:link{
color: #ff0000;
text-decoration: none;
}
a:hover{
color: #336699;
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.