New course! Every coder should learn Generative AI!
Try a free lesson+ 20
1. Body is the display of the main page of HTML5 web, which mean it can't be edited with any kind of shape.. You only can change it's size, color and every inheritance property
2. If you want to make a circle, try to make it with "div" block element or make it with "svg" element with "circle" or "ellipse" element inside it..
3. Check your syntax bruhh..
+ 11
Do the CSS tutorial.
+ 7
You can't create a circle with the body tag, you need to declare at least one div and call it as circle class then do this:
.circle {
width: 50;
height: 50;
border-radius: 100%
}
+ 6
DACK:CHESS , stop advertising, or else you are in trouble!
+ 6
First => HTML create div <div></div>
Second => CSS div{
width: 50px;
height: 50px;
border: 1px solid black;
border-radius: 100%;
}
your div is create with circle
+ 5
Body is fixed and it cant be transferred into circle. Try making some block level elements like p or div and make them In a circular format
+ 5
FusionX please use proper family friendly environment language there are children on the platform.
Please remove comment...
Thanks and happy coding.
+ 4
Just begin with html and css. Then learn javascript if you want to learn. Start now. Don't spam here.
+ 4
Because you can't make a circle with the body. You have to declare a div and class than style it in css with proper syntax which you don't bother about I think. So please write the code with proper syntax. And also give the div a background which you have not given in your code.
+ 4
You would need to aply that css to a div rather than the body and you hav'nt added a background color.
Hope that helps.
+ 3
You didn't write semicolon.
+ 3
You should start learning html and css first complete those. Then create your code.
+ 3
<head>
<style type="text/css">
div{
height:120px;
width:120px;
background-color:red;
border-radius:50%;
}
</style>
</head>
<body>
<div>
</div>
+ 3
You could do it from the dom with javascript
https://code.sololearn.com/WR225M9V1UP2/?ref=app
+ 2
Use <div> instead of <body>
+ 2
bro you forget to put the semicolon in last line
+ 2
//This is my CSS
#circle {
width: 90px;
height: 90px;
border-radius: 50%;
background-color: red;
}
//This is my HTML
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h5>This is the cercle id</h5>
<div id="circle"></div>
</body>
</html>
+ 1
Algfish31
Its because u wrote it in de js part
+ 1
Algfish31
and also
i think maybe bcus u wer trying to apply it on the body dats why it didnt work