PROGRAMMING in .Net Technology (LAS) QUARTER 2 - For Learners
PROGRAMMING in .Net Technology (LAS) QUARTER 2 - For Learners
NET TECHNOLOGY)
Name of Learner
Grade level and Section
Date
Imagine HTML as the abstract text and images displayed in a web page, CSS as the page
that actually gets displayed, and JavaScript as the behaviors that can manipulate both HTML
and CSS.
html
head body
h1 p
For example, you can insert a text as a paragraph with this HTML:
Then, you can set the size and color of that paragraph with some CSS:
JAVASCRIPT
HTML
CSS
p{
font-size: 20px;
color: blue;
}
And you can make it interactive that when the user clicks it with some JavaScript
1|Page
PROGRAMMING (.NET TECHNOLOGY)
var p = document.getElementById('some-paragraph');
p.addEventListener('click', function(event) {
p.innerHTML = 'Click me!';
});
HTML, CSS, and JavaScript are totally different languages, but they all refer to one another in
some way. Most websites rely on all three, but the appearance of every website is determined
by HTML and CSS. That makes this module a great starting point for your web development
journey.
HTML
Web
Development
CSS
JAVASCRIPT
A domain name is the website’s equivalent of a physical address. Its like when a GPS needs
a street address or a zipcode to provide directions, a web browser needs a domain name to
direct you to a website.
There are two main elements of a domain. For example, the domain name Youtube.com
2|Page
PROGRAMMING (.NET TECHNOLOGY)
consists of the website’s name (Youtube) and the domain name extension (.com). When a
company (or a person) purchases a domain name, they’re able to specify which server the
domain name points to.
Every website that you visit effectively consists of two main elements: a domain name and a
web server.
A web server is a physical machine that hosts the files and the databases that your website
is made from and sends them out to people across the internet when they visit your site from
their machine.
The domain name is what people type in to access your site, and it points the web browser
to the server that stores those resources. Without a domain name, people would need to
remember the specific IP address of your server — and that’s just not going to happen.
Learning Tasks (Includes directions/ instructions, exercises, and guide questions if necessary)
*(All key stage (1 - 4) shall have 5 items ONLY Standardized questions based on MELC)
*Illustration and pictures shall adhere with the IPR guidelines.
ACTIVITY 1
Direction: List down 5 famous websites you always visit and write your purpose why you visit those
site. Example: Youtube- to watch my favorite vlogger
ACTIVITY 2
computer
H______ S______
__ ___
Java
ACTIVITY 3
Direction: Write the domain extension of the following domain. Number 1 is done for you.
.COM 1. Commercial
____________2. Organization
____________3. Network
____________4. Education
____________5. Government
3|Page
PROGRAMMING (.NET TECHNOLOGY)
ACTIVITY 4
Direction: Write the domain extension of the following domain. Number 1 is done for you.
Write a short essay to discuss the importance learning HTML, CSS and JavaScript. Are these three
applications the same? Why? (not less than 150 words)
ACTIVITY 5
Direction: Choose the best answer that describes the following sentences. Number 1 is done
for you.
Reflection
https://www.internetingishard.com/html-and-css/introduction/
https://www.hostinger.ph/tutorials/what-is-a-domain-name
Name of Learner
4|Page
PROGRAMMING (.NET TECHNOLOGY)
Learning Tasks (Includes directions/ instructions, exercises, and guide questions if necessary)
*(All key stage (1 - 4) shall have 5 items ONLY Standardized questions based on MELC)
*Illustration and pictures shall adhere with the IPR guidelines.
ACTIVITY 1
DIRECTION: WRITE AN HTML TAG FOR THE FOLLOWING
</style>
</head>
<body>
<h1>This is a Heading</h1>
5|Page
PROGRAMMING (.NET TECHNOLOGY)
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>
2. Change the color of the element with id="para1", to "red".
<!DOCTYPE html>
<html>
<head>
<style>
</style>
</head>
<body>
<h1>This is a Heading</h1>
<p id="para1">This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>
3. Set the background color for the page to "linen" and the background color for <h1> to
"lightblue".
<!DOCTYPE html>
<html>
<head>
<style>
</style>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>
ACTIVITY 2
ESSAY
1. Try to visit a website and identify the CSS tags used in the website.
2. Rate the website from 1-10 and explain your rating
3. What properties of colors should be used in making a webpage more
presentable? Explain your answer..
ACTIVITY 3
6|Page
PROGRAMMING (.NET TECHNOLOGY)
Reflection
I have learned in this activity that ______________________________________________________
________________________________________________________________________________
________________________________________________________________________________
7|Page
PROGRAMMING (.NET TECHNOLOGY)
Name of Learner
Grade level and Section
Date
Learning Tasks (Includes directions/ instructions, exercises, and guide questions if necessary)
*(All key stage (1 - 4) shall have 5 items ONLY Standardized questions based on MELC)
*Illustration and pictures shall adhere with the IPR guidelines.
ACTIVITY 1
DIRECTION:
1. Create a variable called carName, assign the value Volvo to it.
var ____ = "______";
2. Create a variable called x, assign the value 50 to it.
var ______ =________;
3. Multiply 10 with 5, and alert the result:
alert(10 ____ 5);
4. Get the value "Volvo" from the cars array.
var cars = ["Saab", "Volvo", "BMW"];
8|Page
PROGRAMMING (.NET TECHNOLOGY)
var x = ________;
5. Use the length property to alert the length of txt.
var txt = "Hello World!";
var x = _________;
alert(x);
ACTIVITY 2
ACTIVITY 3
1. What is the HTML tag under which one can write the JavaScript code?
A) <javascript>
B) <scripted>
C) <script>
D) <js>
A. sf
B. ks
C. s
D. k
9|Page
PROGRAMMING (.NET TECHNOLOGY)
Reflection
10 | P a g e
PROGRAMMING (.NET TECHNOLOGY)
Name of Learner
Grade level and Section
Date
BASICS OF JQUERY
Describe the use of jQuery to simplify code that uses many common JavaScript APls
TLE_ICTP.NET 11-12PPHJCIIj-IIIa-d-30
Learning Context (Brief discussion of the lesson, cite examples)
What is jQuery?
jQuery is a JavaScript Library.
jQuery greatly simplifies JavaScript programming.
jQuery is easy to learn.
jQuery fadeOut()
Demonstrates the jQuery fadeOut() method.
jQuery fadeToggle()
Demonstrates the jQuery fadeToggle() method.
jQuery fadeTo()
Demonstrates the jQuery fadeTo() method.
11 | P a g e
PROGRAMMING (.NET TECHNOLOGY)
Learning Tasks (Includes directions/ instructions, exercises, and guide questions if necessary)
*(All key stage (1 - 4) shall have 5 items ONLY Standardized questions based on MELC)
*Illustration and pictures shall adhere with the IPR guidelines.
ACTIVITY 1
DIRECTION: Fill in the blanks. Write the correct javascript code for the following:
ACTIVITY 2
DIRECTION: Write the letter of the correct answer.
1. What is the HTML tag under which one can write the JavaScript code?
A) <javascript>
B) <scripted>
C) <script>
D) <js>
2. Which of the following is the correct syntax to display “GeeksforGeeks” in an alert box
using JavaScript?
A. alertbox(“GeeksforGeeks”);
B. msg(“GeeksforGeeks”);
C. msgbox(“GeeksforGeeks”);
D. alert(“GeeksforGeeks”);
3. What is the correct syntax for referring to an external script called “geek.js”?
A. <script src=”geek.js”>
B. <script href=”geek.js”>
C. <script ref=”geek.js”>
D. <script name=”geek.js”>
4. Which of the following is not a reserved word in JavaScript?
A. interface
B. throws
C. program
D. short
5. Predict the output of the following JavaScript code.
A. sf
12 | P a g e
PROGRAMMING (.NET TECHNOLOGY)
B. ks
C. s
D. k
ACTIVITY 3
Reflection
https://www.w3schools.com/jquery/default.asp
13 | P a g e
PROGRAMMING (.NET TECHNOLOGY)
Name of Learner
Grade level and Section
Date
<form action="/action_page.php">
<label for="fname">First name:</label><br>
<input type="text" id="fname" name="fname" value="John"><br>
<label for="lname">Last name:</label><br>
<input type="text" id="lname" name="lname" value="Doe"><br><br>
<input type="submit" value="Submit">
</form>
The form-data can be sent as URL variables (with method="get") or as HTTP post transaction (with
method="post").
1. <input type="button">
14 | P a g e
PROGRAMMING (.NET TECHNOLOGY)
2. <input type="checkbox">
3. <input type="color">
4. <input type="date">
5. <input type="datetime-local">
6. <input type="email">
7. <input type="file">
8. <input type="hidden">
9. <input type="image">
10. <input type="month">
11. <input type="number">
12. <input type="password">
13. <input type="radio">
14. <input type="range">
15. <input type="reset">
16. <input type="search">
17. <input type="submit">
18. <input type="tel">
19. <input type="text">
20. <input type="time">
21. <input type="url">
22. <input type="week">
Explain the Use of HTML Input Attributes
The value Attribute
The input value attribute specifies an initial value for an input field:
The readonly Attribute
The input readonly attribute specifies that an input field is read-only.
A read-only input field cannot be modified (however, a user can tab to it, highlight it, and copy the text
from it).
Learning Tasks (Includes directions/ instructions, exercises, and guide questions if necessary)
*(All key stage (1 - 4) shall have 5 items ONLY Standardized questions based on MELC)
*Illustration and pictures shall adhere with the IPR guidelines.
ACTIVITY 1
DIRECTION:
1. In the form below, add an input field with the type "button" and the value "OK".
2. In the form below, add two radio buttons, both with the name "gender".
15 | P a g e
PROGRAMMING (.NET TECHNOLOGY)
3. Add a submit button, and specify that the form should go to "/action_page.php".
4. In the form below, add an empty drop down list with the name "cars".
5. In the form below, add a submit button with the value "Submit Form".
ACTIVITY 2
DIRECTION: Write the letter of the correct answer.
1. The two most important attributes of a form.
A. Id and action
B. Class and method
C. Action and method
16 | P a g e
PROGRAMMING (.NET TECHNOLOGY)
C. Type="password"
ACTIVITY 3
Reflection
17 | P a g e
PROGRAMMING (.NET TECHNOLOGY)
Name of Learner
Grade level and Section
Date
The numbers in the table specify the first browser version that fully supports Drag and Drop.
function drag(ev) {
ev.dataTransfer.setData("text", ev.target.id);
}
function drop(ev) {
ev.preventDefault();
var data = ev.dataTransfer.getData("text");
ev.target.appendChild(document.getElementById(data));
}
</script>
</head>
<body>
</body>
</html>
<img draggable="true">
In the example above, the ondragstart attribute calls a function, drag(event), that specifies what data to
18 | P a g e
PROGRAMMING (.NET TECHNOLOGY)
be dragged.
The dataTransfer.setData() method sets the data type and the value of the dragged data:
function drag(ev) {
ev.dataTransfer.setData("text", ev.target.id);
}
By default, data/elements cannot be dropped in other elements. To allow a drop, we must prevent the
default handling of the element.
This is done by calling the event.preventDefault() method for the ondragover event:
event.preventDefault()
function drop(ev) {
ev.preventDefault();
var data = ev.dataTransfer.getData("text");
ev.target.appendChild(document.getElementById(data));
}
Learning Tasks (Includes directions/ instructions, exercises, and guide questions if necessary)
*(All key stage (1 - 4) shall have 5 items ONLY Standardized questions based on MELC)
*Illustration and pictures shall adhere with the IPR guidelines.
ACTIVITY 1
DIRECTION: Write TRUE if the statement is CORRECT and FALSE if the statement is not.
1. Any element in HTML can be dragged and dropped
2. Dragging means when you "grab" an object and drag it to a different location.
3. Only google chrome can support the drag and drop API
4. To make an element draggable, you will set it to FALSE
5. By default, data/elements cannot be dropped in other elements
.ACTIVITY 3
19 | P a g e
PROGRAMMING (.NET TECHNOLOGY)
Reflection
20 | P a g e
PROGRAMMING (.NET TECHNOLOGY)
Name of Learner
Grade level and Section
Date
How it Works
The controls attribute adds video controls, like play, pause, and volume.
It is a good idea to always include width and height attributes. If height and width are not set, the page
might flicker while the video loads.
The <source> element allows you to specify alternative video files which the browser may choose
from. The browser will use the first recognized format.
The text between the <video> and </video> tags will only be displayed in browsers that do not support
the <video> element.
HTML <video> Autoplay
To start a video automatically use the autoplay attribute:
Browser Support
21 | P a g e
PROGRAMMING (.NET TECHNOLOGY)
This allows you to load, play, and pause videos, as well as setting duration and volume.
There are also DOM events that can notify you when a video begins to play, is paused, etc.
Learning Tasks (Includes directions/ instructions, exercises, and guide questions if necessary)
*(All key stage (1 - 4) shall have 5 items ONLY Standardized questions based on MELC)
*Illustration and pictures shall adhere with the IPR guidelines.
ACTIVITY 1
ACTIVITY 2
DIRECTION: Write the letter of the correct answer.
1. How do you embed video and audio content using HTML5 features?
A. Using Flash or Silverlight plugins
B. Using JavaScript
C. Using CSS
22 | P a g e
PROGRAMMING (.NET TECHNOLOGY)
1. List down the video formats: that is supported by the following browser
Edge
Chrome
Firefox
Safari
Opera
2. Enumerate and state the tags used in inserting a video in HTML
Reflection
https://www.youtube.com/watch?v=x4r7af2Lcmw
https://www.w3schools.com/html/html5_video.asp
23 | P a g e
PROGRAMMING (.NET TECHNOLOGY)
Name of Learner
Grade level and Section
Date
The example below returns the latitude and longitude of the user's position:
24 | P a g e
PROGRAMMING (.NET TECHNOLOGY)
watchPosition() - Returns the current position of the user and continues to return updated position as
the user moves (like the GPS in a car).
clearWatch() - Stops the watchPosition() method.
The example below shows the watchPosition() method. You need an accurate GPS device to test this
(like smartphone):
Learning Tasks (Includes directions/ instructions, exercises, and guide questions if necessary)
*(All key stage (1 - 4) shall have 5 items ONLY Standardized questions based on MELC)
*Illustration and pictures shall adhere with the IPR guidelines.
ACTIVITY 1
ACTIVITY 2
DIRECTION:
Write the following tags for geolocation API and have a screenshot of the webpage view
and send it to your teacher
ACTIVITY 3
25 | P a g e
PROGRAMMING (.NET TECHNOLOGY)
Direction: Write a short essay that explains the usefulness of Geolocation API in webpages.
Reflection
26 | P a g e
PROGRAMMING (.NET TECHNOLOGY)
Learning Tasks (Includes directions/ instructions, exercises, and guide questions if necessary)
*(All key stage (1 - 4) shall have 5 items ONLY Standardized questions based on MELC)
*Illustration and pictures shall adhere with the IPR guidelines.
ACTIVITY 1
A. Value of x:2
Value of x:3
Value of x:4
B. Value of x:1
Value of x:2
Value of x:3
C. Value of x:2
Value of x:2
Value of x:4
D. Value of x:2
Value of x:3
Value of x:3
4. What is the correct function of a while loop?
A. A control flow statement that allows code to be executed repeatedly based on a given
Boolean condition.
B. To consume the initialization, condition and increment/decrement in one line
C. To initialize the variable in use.
D. To check for condition after executing the statements
27 | P a g e
PROGRAMMING (.NET TECHNOLOGY)
ACTIVITY 2
DIRECTION: Write the java code for each of the following
1. Print i as long as i is less than 6.
2. Use the do/while loop to print i as long as i is less than 6.
3. Use a for loop to print "Yes" 5 times:
4. Loop through the items in the cars array.
5. Stop the loop if i is 5.
6. In the loop, when the value is "4", jump directly to the next value.
ACTIVITY 3
Direction: Give an example of a problems and write the three looping statements for each problem.
Reflection
28 | P a g e
PROGRAMMING (.NET TECHNOLOGY)
Reviewed by:
_____________________________
Learning Resource Evaluator
(Master Teachers, Subject Specialist)
_____________________________ _____________________________
School Head Public School District Supervisor
_____________________________ _____________________________
Education Program Supervisor (Subject) Education Program Supervisor (LRMS)
Approved by:
_____________________________
CID - Chief Education Program Supervisor
29 | P a g e