..What Is CSS ? Create A Sample Code To Illustrate The External Stylesheet For Your
..What Is CSS ? Create A Sample Code To Illustrate The External Stylesheet For Your
<html>
<head>
<link rel="stylesheet" type="text/css" href="mystyle.css”>
</head>
<body>
<h1>This is my Sample File.</h1>
</body>
</html>
Here is how the "mystyle.css" looks:
body {
background-color: lightblue;}
h1 {
color: navy;
margin-left: 20px;}
===========================================================
W hat are JDBC Driver(s) ? Name them and differentiate
between Two and Three tier database access modifier?
Ans: JDBC Driver is a software component that enables java application to
interact with the database.There are 4 types of JDBC drivers:
The JDBC-ODBC bridge driver uses ODBC driver to connect to the database.
The JDBC-ODBC bridge driver converts JDBC method calls into the ODBC
function calls. This is now discouraged because of thin driver.
Advantages:
o easy to use.
1) Client layer:
2) Business layer:
In this layer all business logic written like validation of data, calculations, data
insertion etc. This acts as a interface between Client layer and Data Access
Layer. This layer is also called the intermediary layer helps to make
communication faster between client and data layer.
3) Data layer:
In this layer actual database is comes in the picture. Data Access Layer contains
methods to connect with database and to perform insert, update, delete, get data
from database based on our input data.
Three-tier Architecture
Advantages
Disa//dvantages
1. Increase Complexity/Effort
Two-Tier Architecture:
The two-tier is based on Client Server architecture. The two-tier architecture is
like client server application. The direct communication takes place between client
and server. There is no intermediate between client and server. Because of tight
coupling a 2 tiered application will run faster.
Disadvantages:
Explain the concept of Document Object Model (DOM) with the help of an example.
Ans: "The W3C Document Object Model (DOM) is a platform and language-neutral interface that
allows programs and scripts to dynamically access and update the content, structure, and style of
a document."
In other words: The HTML DOM is a standard for how to get, change, add, or delete HTML
elements.
<html>
<body>
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML = "Hello World!";
</script>
</body>
</html>
==========================================================================================
===========================================================================================