Answers for "how to make rectangle in html"

0

svg rect

<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
  <rect width="100" height="100" x="50" y="50"/>
</svg>
Posted by: Guest on July-25-2020
2

how to make a rectangle in javascript

const canvas = document.getElementById('pong') // first make a index . html with a canvas height and width and id of pong or whatever
// and then we have to get access to our context to draw on it
const context = canvas.getContext('2d')

// then you do...

context.drawRect(20, 20, 150, 150);
context.fillStyle = '#fff' // thats white!!
Posted by: Guest on September-06-2020
0

how to make a rectangle in javascript

<html>
<head>
	<meta charset="UTF-8">
	<title>Pong</title>
	<script language="Javascript" type="text/Javascript" src="libraries/p5.js"></script>
	<script language="Javascript" type="text/Javascript" src="pong.js" defer></script>
		<style> body {padding: 0; margin: 0;} </style>
</head>
<body>
	<canvas id="pong" width="600" height="400"></canvas>
</body>
</html>
Posted by: Guest on September-06-2020
0

tina4 shape html

echo _doctype()._html(
        _head(_title("Hello World!")),
        _body(
        _div(
        _h1("Hello World!",
            _b("Another tag",
                _p("Testing")
            )
        ),
        _p(["style" => "border: 1px solid red"], "This should have a red border")
        )));
Posted by: Guest on September-01-2020

Code answers related to "how to make rectangle in html"

Browse Popular Code Answers by Language