HTML Forms And Canvas

HTML Forms And Canvas

·

1 min read

HTML Forms

👉 The Element

  • The HTML <input> element is the most used form element.
  • An <input> element can be displayed in many ways, depending on the type attribute.
  • Here are some examples:

image.png

👉 HTML Form

  • An HTML form is used to collect user input. The user input is most often sent to a server for processing.

👉 Example ➖ image.png

HTML Canvas

👉 What is HTML Canvas?

  • The HTML <canvas> element is used to draw graphics, on the fly, via JavaScript.
  • The <canvas> element is only a container for graphics. You must use JavaScript to actually draw the graphics.
  • Canvas has several methods for drawing paths, boxes, circles, text, and adding images.
  • A canvas is a rectangular area on an HTML page. By default, a canvas has no border and no content.
  • The markup looks like this:

👉 Example➖ image.png


image.png> Download our HTML & CSS Visual Treat! ebook Here: Click here

Â