Pls house can anyone help in drawing of shapes with html? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Pls house can anyone help in drawing of shapes with html?

10th Sep 2023, 6:55 AM
Oluwakemi Chizoba
9 Answers
+ 8
Fabian Roy Don't provide ready-made code. Let him try on his own, Otherwise he will not be able to understand concepts,tags,and everything.
10th Sep 2023, 7:51 AM
Darpan kesharwani🇮🇳[Inactive📚]
Darpan kesharwani🇮🇳[Inactive📚] - avatar
+ 4
Oluwakemi Chizoba Note that,If you're having trouble in code, share your code and describe what error message you're receiving. without watching no one can figure out what's going wrong.
10th Sep 2023, 7:13 AM
Darpan kesharwani🇮🇳[Inactive📚]
Darpan kesharwani🇮🇳[Inactive📚] - avatar
+ 4
To create shapes in HTML, you can utilize the HTML <canvas> element, which is designed for drawing graphics. You will also need to be familiar with JavaScript. For further information about working with canvas and JavaScript, please visit: https://www.w3schools.com/html/html5_canvas.asp Additionally, you can use CSS to draw shapes, as demonstrated by Fabian Roy"
11th Sep 2023, 12:52 AM
Chris Coder
Chris Coder - avatar
+ 2
You're welcome!
11th Sep 2023, 7:19 AM
Chris Coder
Chris Coder - avatar
+ 1
Sample code of making a shape in HTML : <div class="circle"></div> <div class="rectangle"></div> <style> .circle { width: 100px; height: 100px; background-color: red; border-radius: 50%; } .rectangle { width: 200px; height: 100px; background-color: blue; border-radius: 10px; } </style>
10th Sep 2023, 7:48 AM
Fabian Roy
Fabian Roy - avatar
+ 1
okay :(
10th Sep 2023, 7:55 AM
Fabian Roy
Fabian Roy - avatar
+ 1
Firstly, share your attempt. Then we can help you if any issue is there.
10th Sep 2023, 11:48 AM
Gulshan Mahawar
Gulshan Mahawar - avatar
0
Thanks all I do appreciate
11th Sep 2023, 5:24 AM
Oluwakemi Chizoba
0
So simple it is create div , then set height and width then apply margin and padding try to learn by changing these factors...
12th Sep 2023, 6:42 AM
CyberCraft 🇮🇳