Write the HTML to create a style to display all h1 and h3 heading on your page i
ID: 3570698 • Letter: W
Question
Write the HTML to create a style to display all h1 and h3 heading on your page in yellow, underlined and italic. Suppose you want to create the following External Styles(External Styles Sheet): One: text color blue; right text alignment; font type Ariel or sans-serif; font size 23 pt. The style should be applicable for any page element. Two: text color red; center text alignment; underlined, bold. The style should be applicable only to h1 headings. Three: text color blue; right text alignment font type Ariel or sans-serif; font size 12px. The style should be applicable for any page element. Write the code that will do that.Explanation / Answer
14.
<html>
<head>
<title>HTML style changes</title>
<style>
h1,h3 {
color:yellow;
text-decoration:underline;
font-style:italic;
}
</style>
</head>
<body>
<h1>This is a heading with h1 tag.</h1>
<h3>This is a heading with h3 tag.</h3>
</body>
</html>
15.
a) One:
create a file named style.css with the following code:-
p {
color:blue;
text-align:right;
font-family:Arial;
font-size:23px;
}
b.) Two:-
create a file named style.css with the following code:-
h1 {
color:red;
text-align:center;
text-decoration:underline;
font-weight:bold;
}
c.) Three:-
create a file named style.css with the following code:-
p {
color:blue;
text-align:right;
font-family:Arial;
font-size:12px;
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.