Web Application Development Notes With Answers
Web Application Development Notes With Answers
The basic structure includes <!DOCTYPE>, <html>, <head>, and <body> tags.
Example:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>This is a paragraph.</p>
</body>
</html>
- Important Tags:
<h1> to <h6>: Defines headings, with <h1> being the largest and <h6> the smallest.
<map>, <ol>, <select>, <legend>: Used for maps, ordered lists, selection lists, and fieldset legends
respectively.
- Meta Tags:
Used to provide metadata about the HTML document, such as keywords for search engines.
Example:
<meta charset="UTF-8">
- Types of CSS:
1. Inline CSS: Written directly inside an HTML element using the style attribute.
2. Embedded CSS: Defined in the <style> tag within the <head> section.
3. External CSS: Written in an external file and linked to the HTML document.
Describes the rectangular boxes that are generated for elements in the document tree.
Example:
div {
width: 300px;
padding: 10px;
margin: 20px;
}
- Selectors in CSS:
Example:
<div class="container">
<div class="row">
</div>
</div>
3. JavaScript
- JavaScript Functions:
2. prompt(): Displays a dialog box that prompts the user for input.
JavaScript has two types of scope: global and local. A variable declared outside a function has
global scope, while one declared inside a function has local scope.
Example:
4. PHP
GET: Sends form data in the URL; limited by URL length; less secure.
POST: Sends form data in the request body; no size limit; more secure.
mysql_select_db("database_name", $conn);
mysql_close($conn);
5. jQuery
- jQuery Selectors:
- jQuery Effects:
6. Web Design
Common issues include user interface design, cross-browser compatibility, performance, and
security.
- Effective Navigation:
Features such as breadcrumbs, menus, and internal links help users navigate easily.
- Responsive Design:
Uses CSS frameworks like Bootstrap to ensure websites work on devices of all sizes.