Search
 
SCRIPT & CODE EXAMPLE
 

HTML

html quiz

Inside which HTML element do we put the JavaScript?
 1. <script>
 2.<js>
 3.scriptinf>
 4.<javaScript>
 
 answer : <script>
<!-------------------------------------------------->
  
- What is the correct JavaScript syntax to change the content of the HTML element below?

<p id="demo">This is a demonstration.</p>
1. document.detElementById("demo").innerHTML="Hello Mohammad"
2. document.detElementBy("demo").innerHTML="Hello Mohammad"
3. detElementById("demo").innerHTML="Hello Mohammad"
4. document.detElementById("demo")="Hello Mohammad"

answer : 1. document.detElementById("demo").innerHTML="Hello Mohammad"
<!-------------------------------------------------->

-Where is the correct place to insert a JavaScript?

1. in the <body>
2. in the <head>
3. in both <head> and <body>  
  
answer: 3. in both <head> and <body>  

<!-------------------------------------------------->
-What is the correct syntax for referring to an external script called "xxx.js"?
1.<script src="xxx.js">
2.<script name="xxx.js">
3.<script href="xxx.js">
  
answer : 1.<script src="xxx.js">
<!-------------------------------------------------->

-The external JavaScript file must contain the <script> tag.
1.true
2.false

answer: 2.false
<!-------------------------------------------------->


Comment

html quize

Question 01 => Yes Or No //no
Question 02 => Yes Or No //yes
Question 03 => Yes Or No //no
Question 04 => Yes Or No //no
Comment

PREVIOUS NEXT
Code Example
Html :: in what language is html written 
Html :: href seo 
Html :: how to edit html in wordpress 
Html :: html source tag 
Html :: print tag in html 
Html :: onclick call php function with parameters 
Html :: spin wheel game html code 
Html :: how to add a rollover image in html 
Css :: css image to white 
Css :: css hide number input arrows 
Css :: css var negative 
Css :: button style none 
Css :: @media between two sizes 
Css :: css text selection none 
Css :: Disable highlighting text in CSS. 
Css :: center a fixed div horizontally 
Css :: css center image 
Css :: how to render css in flask link 
Css :: css transition all 
Css :: scroll-behavior not working 
Css :: radio checked css 
Css :: css button transparent 
Css :: Change png to white using CSS 
Css :: text decoration none 
Css :: separar letras en css 
Css :: linear-gradient(top to bottom) 
Css :: css text limit 
Css :: css important 
Css :: media query all devices 
Css :: unselectable css property 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =