Question

Write the source HTML code for drawing a rectangle with red border color and 2px width.

Write the source HTML code for drawing a rectangle with red border color and 2px width.

Homework Answers

Answer #1
<!DOCTYPE html>
<html>
<head>
<style>

div {
/* setting the style for border */
  border-style: solid;
  /* setting the style for border color as red*/
  border-color: red;
  /* setting the style for border height as 170*/
  height:170px;
  /* setting the style for border width as 2*/
  
  border-width:2px;
}
</style>
</head>
<body>


<div></div>
</body>
</html>

NOTE : PLEASE COMMENT BELOW IF YOU HAVE CONCERNS.

Please Like and Support me as it helps me a lot

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
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...
3. Write a JavaScript code that print 3 color (yellow, black, red). You should create an...
3. Write a JavaScript code that print 3 color (yellow, black, red). You should create an array that has all the color then use a loop to print the array.
Lab: RectClass (constructor) Code in C++ This program creates a Rectangle object, then displays the rectangle's...
Lab: RectClass (constructor) Code in C++ This program creates a Rectangle object, then displays the rectangle's length, width, and area Define an overloaded constructor and use it when creating the Rectangle object instead of using the setters. Change this program to calculate and display the rectangle's perimeter. Example: In feet, how wide is your house? 20 In feet, how long is your house? 25 The house is 20.00 feet wide. The house is 25.00 feet long. The house has 500.00...
Write the below code to use HTML and JavaScript. 1)Write a JavaScript program to create a...
Write the below code to use HTML and JavaScript. 1)Write a JavaScript program to create a new string from a given string changing the position of first and last characters. The string length must be greater than or equal to 1. 2)Write a JavaScript program to check whether a string starts with 'Java' and false otherwise
I need to write the code for a CNC machine for a simple drawing of a...
I need to write the code for a CNC machine for a simple drawing of a house and incorporate G02 and G03 into it using I and J axis. Including some round windows and a half moon window.
Write PHP with HTML code to Generate a deck of cards Deal out the correct number...
Write PHP with HTML code to Generate a deck of cards Deal out the correct number of hands. Each hand should be saved in an array and those arrays should be saved in an array called hands. Display what game and how many players you are dealing at the top of the page Using nested for loops, display the cards for each hand
Write a C# source code. Write a function called CircArea() that finds the area of a...
Write a C# source code. Write a function called CircArea() that finds the area of a circle. It should take an argument of type double and return an argument of the same type. Write a Main() method that gets a radius value from the user, calls CircArea(), and displays the result.
you need to write the code for the obstacle infra red sensor. They don't use an...
you need to write the code for the obstacle infra red sensor. They don't use an actual distance, that's an adjustment made on the hardware, you need to write the code for if they detect anything. HCSR04 ultrasonic sensor with arduino Please help me with this
(Use Java ) please write comment on every line I need to understand the code Problem...
(Use Java ) please write comment on every line I need to understand the code Problem Description: Write a program that prompts the user to enter a point (x, y) and checks whether the point is within the rectangle centered at (0, 0) with width 10 and height 5. For example, (2, 2) is inside the rectangle and (6, 4) is outside the rectangle, as shown in the Figure. (Hint: A point is in the rectangle if its horizontal distance...
Using python, write the program below. Program Specifications: You are to write the source code and...
Using python, write the program below. Program Specifications: You are to write the source code and design tool for the following specification: A student enters an assignment score (as a floating-point value). The assignment score must be between 0 and 100. The program will enforce the domain of an assignment score. Once the score has been validated, the program will display the score followed by the appropriate letter grade (assume a 10-point grading scale). The score will be displayed as...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT