1. what is URL in web technology?
• A URL (Uniform Resource Locator) is a reference to a web resource that
specifies its location on a computer network and a mechanism for
retrieving it.
• Example: https://www.example.com/products?id=123#section2
▪ Scheme: "https://"
▪ Hostname: "www.example.com"
▪ Path: "/products"
▪ Query string: "id=123"
▪ Fragment: "section2"
2. what is URI?
• A URI (Uniform Resource Identifier) is a string of characters used to
identify a resource. URIs are a superset of URLs (Uniform Resource
Locators) and URNs (Uniform Resource Names).
• URL (Uniform Resource Locator): Identifies a resource's location on the
internet, including protocol, hostname, and path.
• URN (Uniform Resource Name): Offers a unique identifier for a resource,
independent of location or access method, aiming for persistence over
time.
3. How will create a password field in HTML form?
<form>
<label for="password">Password:</label>
<input type="password" id="password" name="password">
<input type="submit" value="Submit">
</form>
4. How will you add a image in html form ?
<form>
<label for="image">Image:</label>
<img src="image.jpg" alt="Image" width="100" height="100">
</form>
5. List any four common browsers
• Google Chrome
• Mozilla Firefox
• Apple Safari
• Microsoft Edge
6. Describe html5 code to display the follwing
a b
c d
<html>
<head>
<title>Two Row Two Column Grid</title>
<style>
.grid-container {
display: grid;
grid-template-columns: repeat(2, auto); /* Two columns */
grid-template-rows: repeat(2, auto); /* Two rows */
}
.grid-item {
border: 1px solid #ccc;
padding: 20px; /* Adjust padding as needed */
text-align: center;
}
</style>
</head>
<body>
<div class="grid-container">
<div class="grid-item">A</div>
<div class="grid-item">B</div>
<div class="grid-item">C</div>
<div class="grid-item">D</div>
</div>
</body>
</html>
7. How will you embed the external style sheet?
<html>
<head>
<title>My HTML Document</title>
<link rel="stylesheet" href="styles.css">
</head>
</html>
8. How will you put a link for image with example?
<body>
<a href="https://example.com">
<img src="image.jpg" alt="Description of the image">
</a>
</body>
9. List the advantages of javascript
• It can be used for client-side and server-side, front end and back
end
• It provides dynamism and interactivity on websites
• It runs on multiple platforms and devices
• It allows for cross-platform compatibility
• It’s supported by all major web browsers
• There are many libraries, frameworks, and APIs available to
facilitate tasks
10.How to create arrays in javascript?
There are two ways to create arrays in JavaScript
• Using Array Literals
• Using the Array Constructor
Example for Using Array Literals:
• let numbers = [1, 2, 3, 4, 5];
Example for Using the Array Constructor:
• let numbers = new Array(1, 2, 3, 4, 5);
• let emptyArray = new Array();
11. List the types of pop up boxes available in javascript
• Alert box
• Confirm box
• Prompt box
12.Give some methods of data objects
Array Methods:
• push()
• pop()
String Methods:
• substring()
• split()
Object Methods:
• Object.keys()
• Object.values()
Map Methods:
• set()
• get()
13.How scripting language is differ from the HTML?
14.Difference between HTML and DHTML
15.List the components of DHTML
It consists of 4 components that is
➔ HTML- Provides the structure and content of web pages
➔ Css - Controls the presentation and styling of HTML elements
➔ JavaScript - Adds interactivity and behavior to web pages
➔ DOM - Enabling dynamic manipulation in DHTML