Sololearn: Learn to Code
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..
21st Oct 2020, 8:27 AM
El Roy Situmorang
21st Oct 2020, 12:22 AM
Samira
Samira - avatar
+ 11
Do the CSS tutorial.
21st Oct 2020, 4:10 AM
Sonic
Sonic - avatar
+ 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% }
21st Oct 2020, 6:29 AM
Andrei Solero
Andrei Solero - avatar
+ 6
DACK:CHESS , stop advertising, or else you are in trouble!
22nd Oct 2020, 2:45 AM
Dino Wun (Use the search bar plz!)
Dino Wun (Use the search bar plz!) - avatar
+ 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
22nd Oct 2020, 5:58 PM
MOHAMMAD AZMAL ALI
MOHAMMAD AZMAL ALI - avatar
+ 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
21st Oct 2020, 12:32 AM
Ayush Kumar
Ayush Kumar - avatar
+ 5
FusionX please use proper family friendly environment language there are children on the platform. Please remove comment... Thanks and happy coding.
22nd Oct 2020, 5:12 AM
BroFar
BroFar - avatar
+ 4
Just begin with html and css. Then learn javascript if you want to learn. Start now. Don't spam here.
21st Oct 2020, 1:13 AM
Samira
Samira - avatar
+ 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.
21st Oct 2020, 3:53 AM
Aditya
Aditya - avatar
+ 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.
22nd Oct 2020, 3:19 PM
Richard Tate
Richard Tate - avatar
+ 3
You didn't write semicolon.
21st Oct 2020, 12:09 AM
Samira
Samira - avatar
+ 3
You should start learning html and css first complete those. Then create your code.
21st Oct 2020, 1:07 AM
Samira
Samira - avatar
+ 3
<head> <style type="text/css"> div{ height:120px; width:120px; background-color:red; border-radius:50%; } </style> </head> <body> <div> </div>
21st Oct 2020, 5:06 PM
Zaid ⛈️🇹🇿👑
Zaid ⛈️🇹🇿👑 - avatar
+ 3
You could do it from the dom with javascript https://code.sololearn.com/WR225M9V1UP2/?ref=app
22nd Oct 2020, 8:56 PM
Richard Tate
Richard Tate - avatar
+ 2
Use <div> instead of <body>
21st Oct 2020, 5:02 PM
Black Knight
Black Knight - avatar
+ 2
bro you forget to put the semicolon in last line
22nd Oct 2020, 1:58 AM
Pravesh Maurya
Pravesh Maurya - avatar
+ 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>
22nd Oct 2020, 4:09 PM
KHADRI Brahim
KHADRI Brahim - avatar
+ 1
Algfish31 Its because u wrote it in de js part
21st Oct 2020, 12:21 AM
Desmond Ampomah
Desmond Ampomah - avatar
+ 1
Algfish31 and also i think maybe bcus u wer trying to apply it on the body dats why it didnt work
21st Oct 2020, 12:24 AM
Desmond Ampomah
Desmond Ampomah - avatar