+ 2

how to draw rectangle in html5

none

24th Jun 2018, 12:21 PM
Azhar A. Hadi
Azhar A. Hadi - avatar
4 Respuestas
+ 5
use the svg and rect tag
24th Jun 2018, 12:29 PM
Ben
Ben - avatar
24th Jun 2018, 12:58 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
You can use: - SVG by rect tag - Canvas tag with strokeRect/fillRect method on context - Simple HTML by creating a block element with fixed size and fixed position ans style it with css
24th Jun 2018, 12:37 PM
KrOW
KrOW - avatar
0
<div style="width:500px;height:100px;border:1px solid #000;">This is a rectangle!</div>
25th Jun 2018, 1:21 PM
Ericka
Ericka - avatar