Question

Please provide HTML code for the following: • Change the color of all <p> elements to...

Please provide HTML code for the following:

• Change the color of all <p> elements to “blue"

• Change the 3 border properties, so that they only show the border on the top
side

• Use the padding property to set the top and bottom paddings for <p> to
"25px", and left and right paddings to "50px"

• Style text in <h1> to uppercase letters, and text in <p> to capitalized letters

• Remove the bullets/markers from the list items

• Set the margin of the div to "25px“

• Set the width of <h1> to "50%"

• Set the font size for the page to "20px", and the font size for <h1> to "3em"

• Set the border of the div to "25px solid navy"

• Set the background color of <th> elements to "lightblue"

Homework Answers

Answer #1

<html>
<head>

<basefont size=20px>
<style>

p{
color:blue;
text-transform:capitalize;
padding-top: 25px;
padding-right: 50px;
padding-bottom: 25px;
padding-left: 50px;
border-left:none;
font-size: 3em;
width:50%
}


h1
{
text-transform:uppercase;
font-size: 3em;
width:50%
}

div
{
font-size: large;
border-width: 25px;
border-color: #000080
}
th
{background-color:#ADD8E6;}

</style>
</head>
<body>

<h1>hello welcome</h1><br>

<p>Hyper text markup language</p>

<ul style="list-style-type:none;">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>


<table border=2>
<th>
Student name
</th>
<tr><td>Raj</td>
</tr>
</table>


<div>
<h1>hello</h1>
</div>

</body>
</html>

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Open the debug3-4.css file. The body element should have a width that is 90% of the...
Open the debug3-4.css file. The body element should have a width that is 90% of the width of the browser window ranging from a minimum of 600 pixels up to a maximum of 1024 pixels. Fix the syntax errors in the body style rule that defines the width of the web page. The style rule for the body element sets up a grid layout for the page. However, there are several errors in defining the grid areas, grid columns, and...
!DOCTYPE html html head style /style /head body h1This is a Heading/h1 pThis is a strongparagraph/strong,...
!DOCTYPE html html head style /style /head body h1This is a Heading/h1 pThis is a strongparagraph/strong, with some words more strongimportant/strong than others /p pThis is another paragraph./p ul liApple/li liOrange/li liPear/li /ul table tr thFirstname/th thLastname/th /tr tr tdPeter/td tdGriffin/td /tr tr tdLois/td tdGriffin/td /tr /table /body /html Your tasks for this Critical Thinking activity are: Hide the h1 element. It should not take up any space. Display the list items as inline elements. Display the strong elements as...
Challenge 5 Read ALL of the instructions carefully before starting the exercise! Dear Colleague, Earlier today...
Challenge 5 Read ALL of the instructions carefully before starting the exercise! Dear Colleague, Earlier today I built my fourth website using HTML5 and CSS3. This time I wanted to try using CSS float layout options on a website dedicated to my favorite topic: robotics. I wanted my website to look like what is shown in Figure 1 (see below). However, after giving it my best effort, things once again didn’t turn out the way I wanted (see the code...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>All Pets Veterinary Hospital</title> <style> body { font-family: arial,...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>All Pets Veterinary Hospital</title> <style> body { font-family: arial, sans-serif; font-size: 100%; } /* outer container */    #wrapper { width: 960px; margin: 50px auto; padding: 0px; background-color: rgb(255, 255, 255); /* white */ border: 1px solid #000; /* black */ }    header h1 { text-align: center; }    nav { text-align: center; background: rgb(175, 196, 206); }    address figure { text-align: center; } </style> </head> <body> <div id="wrapper"> <!-- outer...
Please linked both files. For this assignment you need to create a ToDo list using Javascript,...
Please linked both files. For this assignment you need to create a ToDo list using Javascript, along with HTML and CSS. Begin by creating a HTML page called todo.html. Then create a Javascript file called todo.js and link it in to the HTML page using a script tag. All Javascript for the assignment must be in the separate file. (For CSS, feel free to include styles in a style block at the top of the HTML page, or to link...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT