Question
- Open your text editor and create a html file - Write the necessary lines of html. - Add a paragraph and assign ID demo
- Open your text editor and create a html file
- Write the necessary lines of html.
- Add a paragraph and assign ID demo
- Create a button and use onclick event to write Hello Javascript inside the paragraph tag.
-
Create three different buttons and attach the following statements to it:
1) a statement that finds the element with the ID of demo and set the content inside this element to 3+5.
2 ) a statement that finds the element with the ID of demo and from the style of that element, set the color to red.
3) a statement that finds the element with the ID of demo and from the style of that element, set the display to none to hide the element.
- Open your text editor and create a html file. - Write the necessary lines of html. " Add a paragraph and assign ID "demo". - Create a button and use onclick event to write "Hello Javascript" inside the paragraph tag. - Click Me! - Create three different buttons and attach the following statements to it: " 1) a statement that finds the element with the ID of "demo" and set the content inside this element to 3+5. 2 ) a statement that finds the element with the ID of "demo" and from the style of that element, set the color to red. 3) a statement that finds the element with the ID of "demo" and from the style of that element, set the display to none, to hide the element
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started