3_Computer science grade 10Using Scripts_did mat 1_1 variant
Оценка 4.6

3_Computer science grade 10Using Scripts_did mat 1_1 variant

Оценка 4.6
docx
09.05.2020
3_Computer science grade 10Using Scripts_did mat 1_1 variant
3_Computer science grade 10Using Scripts_did mat 1_1 variant.docx

Didactical material

Name __________________ Class ______________________

Objective: 10.4.2.3 use ready-made scripts in web-development

1.      Use JavaScript to change the HTML content of the <p> element to "Hello World!".

<body>

<p id="demo">Hi.</p>

<script>

document.__________("demo").innerHTML = "Hello World!";

</script>

</body>

2.      Use JavaScript to change the text size of the <p> element to 40 pixels.

<body>

<p id="demo">Hi.</p>

<script>

document.getElementById("demo")._________._________ = "40px";

</script>

</body>

3.      Use JavaScript to set the color of the <p> element to "red".

<body>

<p id="demo">Hi.</p>

<script>

document.getElementById("demo").____________.________ = "red";

</script>

</body>

4.      Use JavaScript to change the image source from "scream.png" to "smiley.gif".

<body>

<img id="demo" src="scream.png">

<script>

____________.getElementById("demo").__________ = "smiley.gif";

</script>

</body>


 

Didactical material Name __________________

Didactical material Name __________________
Скачать файл