















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
















Some Text
Hello
div
p br div
p
- Paragraph tag, surrounds paragraph with whitespace/line breaks. -
- “The curly braces of HTML” - used for grouping other tags. Surrounds its content with whitespace/line breaks. - - Like , but no whitespace/line breaks. - - Forces a new line (like “\n”). Has no content. - and and - Used to organize a basic HTML document. - - tag: creates a blank drawing surface thatExample 2:
Hello, World!
JS: let parObj = document.getElementByID("thePar"); parObj.innerHTML = "Hello, 331!";amount of JS to interact with it.
dynamically generating the HTML on-the-fly.
Example 3:
Let’s convert our previous canvas code from Example 2 to use React! Step by step from Example 3:
element to a
Example 4:
Example 6:
a. In a real application, probably isn’t something that makes sense to be its own component, but it’s a good example.
Example 7: