Search
 
SCRIPT & CODE EXAMPLE
 

PHP

quiz

CALENDAR OF EVENT
Comment

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

PREVIOUS NEXT
Code Example
Php :: Laravel 8 Factory - One To Many (Polymorphic) Relationship 
Php :: Laravel You may use the sectionMissing directive to determine if a section does not have content: 
Php :: response in xml laravel 
Php :: php mysql foreach is bad pardics ? 
Php :: registration welcome email laravel 
Php :: laravel filemanger choose multiple images 
Php :: messagebird php curl send sms example 
Php :: laravel pdf generator 
Php :: search php array 
Php :: route laravel 
Php :: session 
Php :: php multiple array to single array 
Php :: woocommerce check if shop page 
Php :: wordpress font awesome enque 
Php :: my xampp 
Php :: Clear Caching of Queries Laravel Specific Model Cache 
Php :: how to make a timer in php 
Php :: phpstorm deployment 
Php :: remove column laravel migration 
Java :: recycler view dependency 
Java :: how to read integer input using bufferedreader java 
Java :: spigot custom join message 
Java :: react-native force rtl on android 
Java :: java check if number is even 
Java :: base64.decode android 
Java :: stringjoiner stream java 
Java :: convert string to int java 
Java :: how to set scroll to bottom jscrollpane 
Java :: open gps setting android intent 
Java :: set text size programmatically android 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =