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
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
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
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 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...
A color code personality test categorizes people into four colors – Red (Power), Blue (Intimacy), Green...
A color code personality test categorizes people into four colors – Red (Power), Blue (Intimacy), Green (Peace), and Yellow (Fun). In general, 25% of people are Red, 35% Blue, 20% Green, and 20% Yellow. An art class of 45 students is tested at a university and 7 are found to be Red, 18 Blue, 9 Green, and 11 Yellow. Can it be concluded that personality type has an impact on students’ areas of interest and talents, such as artistic students...
Write one difference for items below a.     char versus Character b.     Source code versus Byte code c.    Complier error...
Write one difference for items below a.     char versus Character b.     Source code versus Byte code c.    Complier error versus Runtime error d.   char [ ] versus String [ ]
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT