π¦ UNIT β I : HTML + HTTP + IMAGES + TABLES + FRAMES
β Q1. What is HTTP? Explain features, methods, and status codes. (10 Marks)
Definition
HTTP (HyperText Transfer Protocol) is a communication protocol used for transferring data between client (browser) and server.
Features of HTTP
- Stateless β Server does not remember previous requests.
- Connectionless β Connection closes after response.
- ClientβServer model β Browser sends request, server sends response.
- Plain-text protocol β Easy to read and debug.
- Supports caching β Makes websites load faster.
HTTP Methods
| Method | Use |
|---|---|
| GET | Retrieve data |
| POST | Send data |
| PUT | Update |
| DELETE | Remove |
HTTP Status Codes
| Code | Meaning |
|---|---|
| 200 | Success |
| 301 | Moved Permanently |
| 403 | Forbidden |
| 404 | Not Found |
| 500 | Server Error |
β Q2. Explain HTML structure with example. (5 Marks)
<!DOCTYPE html>
<html>
<head>
<title>My Page</title>
</head>
<body>
<h1>Hello World</h1>
</body>
</html>
Explanation:
-
<!DOCTYPE html>β HTML5 declaration -
<html>β Root element -
<head>β Contains metadata -
<body>β Visible content
β Q3. Explain all HTML Text Formatting Tags with examples. (5 Marks)
| Tag | Use | Example |
|---|---|---|
<b> |
Bold | <b>Bold</b> |
<i> |
Italic | <i>Italic</i> |
<u> |
Underline | <u>Underline</u> |
<strong> |
Important | <strong>Important</strong> |
<em> |
Emphasis | <em>Emphasis</em> |
<mark> |
Highlight | <mark>Text</mark> |
<sup> |
Superscript | 52 |
<sub> |
Subscript | H2O |
β Q4. Explain all types of lists with examples. (5 Marks)
1οΈβ£ Unordered List
<ul><li>Apple</li><li>Mango</li></ul>
2οΈβ£ Ordered List
<ol><li>First</li><li>Second</li></ol>
3οΈβ£ Definition List
<dl>
<dt>HTML</dt>
<dd>HyperText Markup Language</dd>
</dl>
β Q5. Explain hyperlinks with types & examples. (10 Marks)
1. External Link
<a href="https://google.com">Google</a>
2. Internal Link
<a href="about.html">About</a>
3. Email Link
<a href="mailto:info@gmail.com">Mail Us</a>
4. Internal Page Jump
<a href="#top">Go to Top</a>
5. Download Link
<a href="notes.pdf" download>Download PDF</a>
β Q6. Explain images with attributes, types & examples. (10 Marks)
Basic:
<img src="photo.jpg" alt="My Photo" width="200">
Attributes:
-
srcβ file path -
altβ alternative text -
width,heightβ dimensions -
titleβ tooltip
Image Formats:
| Format | Use |
|---|---|
| JPG | Photos |
| PNG | Transparent images |
| GIF | Animations |
β Q7. Explain Image Map with example. (5 Marks)
<img src="india.jpg" usemap="#map">
<map name="map">
<area shape="rect" coords="0,0,100,100" href="delhi.html">
</map>
β Q8. Explain tables with rowspan & colspan. (10 Marks)
<table border="1">
<tr>
<th rowspan="2">Name</th>
<th colspan="2">Marks</th>
</tr>
<tr>
<td>Math</td><td>Sci</td>
</tr>
</table>
β Q9. What are frames? Explain types with example. (10 Marks)
Column Frames:
<frameset cols="30%,70%">
<frame src="menu.html">
<frame src="content.html">
</frameset>
Row Frames:
<frameset rows="30%,70%">
Nested Frames:
<frameset cols="25%,75%">
<frame src="left.html">
<frameset rows="50%,50%"> ... </frameset>
</frameset>
π¦ UNIT β II : CSS + JAVASCRIPT
β Q10. Explain types of CSS with examples. (5 Marks)
Inline CSS
<p style="color:red;">Hello</p>
Internal CSS
<style>h1{color:blue;}</style>
External CSS
<link rel="stylesheet" href="style.css">
β Q11. Explain CSS Selectors (Tag, Class, ID). (5 Marks)
p {color:red;} /* Tag Selector */
.red {color:blue;} /* Class Selector */
#box {color:green;} /* ID Selector */
β Q12. Explain CSS Box Model. (5 Marks)
+-------------------+
| MARGIN |
| +-------------+ |
| | BORDER | |
| | +---------+ | |
| | | PADDING | | |
| | | CONTENT | | |
| | +---------+ | |
| +-------------+ |
+-------------------+
Includes:
- Content
- Padding
- Border
- Margin
β Q13. Explain JavaScript Variables & Data Types. (5 Marks)
Declaring:
var a = 10;
let b = 20;
const c = 30;
Data Types:
- Number
- String
- Boolean
- Object
- Array
β Q14. Explain JavaScript Operators with examples. (5 Marks)
Arithmetic:
let sum = 10 + 5;
Comparison:
10 > 5
Logical:
if(a > 10 && b < 20)
β Q15. Explain JavaScript Arrays & Functions. (8 Marks)
Array Example:
let fruits = ["Apple","Banana","Mango"];
Function Example:
function add(a,b){ return a+b; }
β Q16. Explain Error Handling. (5 Marks)
try {
let a = k;
} catch(e) {
alert("Error Found");
}
π¦ UNIT β III : WYSIWYG EDITORS + IMAGES
β Q17. What is WYSIWYG? Advantages? (5 Marks)
WYSIWYG = What You See Is What You Get
Advantages:
- No coding needed
- Drag & drop
- Instant preview
- Auto formatting
Examples:
Dreamweaver, Expression Web, Amaya
β Q18. What is Image Optimization? (5 Marks)
Reducing file size without losing quality.
Methods:
- Compressing
- Using proper formats
- Reducing resolution
π¦ UNIT β IV : ACCESSIBLE TABLES + FRAMES
β Q19. What are Accessible Tables? (5 Marks)
Tables designed for screen readers and better UX.
Example:
<table>
<caption>Student List</caption>
<thead><tr><th>Name</th><th>Age</th></tr></thead>
<tbody><tr><td>Abhi</td><td>20</td></tr></tbody>
</table>
β Q20. Define: <thead>, <tbody>, <tfoot>. (5 Marks)
-
<thead>β Contains headings -
<tbody>β Main table data -
<tfoot>β Summary footer
π¦ UNIT β V : WEB HOSTING + DNS + FTP
β Q21. What is a Domain? (2 Marks)
A domain is a website name like google.com or nexgenstudio.com.
β Q22. What is DNS? Explain with diagram. (5 Marks)
DNS = Domain Name System
Converts domain β IP address.
Example:
google.com β 142.250.182.78
β Q23. What is Web Hosting? Explain types. (5 Marks)
Types:
- Shared Hosting
- VPS Hosting
- Dedicated Hosting
- Cloud Hosting
β Q24. Explain FTP & Commands. (10 Marks)
FTP = File Transfer Protocol
Used to upload website files to server.
Commands:
-
lsβ list -
cdβ change dir -
put fileβ upload -
get fileβ download -
rename old newβ rename
β Q25. Steps to Upload Website via FileZilla. (5 Marks)
- Open FileZilla
- Enter hostname, username, password
- Connect
- Open
public_html - Upload files
- Visit website
β Q26. What is the Difference Between Relative and Absolute Link?
β Relative Link
A relative link points to a page within the same website or same folder.
It does not include the full website URL.
β Example:
<a href="about.html">About Us</a>
This works only inside the same website because it assumes the file "about.html" exists in the same folder.
β When to use?
- When linking pages inside your own website
- For easy file management
- For local development
β Absolute Link
An absolute link contains the complete URL, including protocol (http/https) and domain name.
β Example:
<a href="https://www.google.com">Google</a>
This link works from anywhere in the world, because it gives the full address.
β When to use?
- When linking to another website
- When linking to external pages
- When sharing content across the internet
β Q27. What is CSS? How can we access an external .css file in our website? Explain with example?
CSS (Cascading Style Sheets) is a stylesheet language used to control the design, layout, and appearance of a webpage.
HTML creates the structure, while CSS adds color, spacing, fonts, borders, backgrounds, animations, etc.
β Uses of CSS:
- Makes webpages attractive
- Controls layout (positioning, spacing)
- Improves user experience
- Saves time because one CSS file can style the entire website
β Types of CSS
- Inline CSS
- Internal CSS
- External CSS (Most commonly used) β asked in question
β How to Access/Link an External CSS File in a Website
External CSS means writing all styling rules inside a separate file with the extension:
style.css
We connect this CSS file to an HTML page using the <link> tag inside <head>.
β Syntax for Linking External CSS
<link rel="stylesheet" href="style.css">
β Full Example (Easy and Exam-Ready)
π Step 1: Create an external CSS file named style.css
body {
background-color: lightblue;
}
h1 {
color: darkblue;
text-align: center;
}
p {
font-size: 18px;
}
π Step 2: Link this file in HTML using <link> tag
<!DOCTYPE html>
<html>
<head>
<title>External CSS Example</title>
<!-- Linking CSS file -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Welcome to My Website</h1>
<p>This paragraph is styled using external CSS.</p>
</body>
</html>
β How it Works? (Easy Explanation)
- HTML loads first.
- Browser sees
<link rel="stylesheet" href="style.css"> - Browser opens the external file style.css
- CSS rules are applied to HTML elements
- The webpage becomes styled and beautiful
Here is an even more easy, simple and scoring answer β perfect for writing in your exam.
β Q28 Explain the Concept of Web Designing. Write steps to create the Home Page of your University Website in Amaya.
π¦ What is Web Designing? (Very Simple Answer)
Web Designing means creating how a website looks and how the user uses it.
It includes:
- Designing layout
- Adding text, images, colors, and buttons
- Creating menus
- Making the website attractive
- Making pages easy to use
In short:
π Web designing is the process of creating the visual look and structure of a website.
π¦ Steps to Create a Home Page of University Website in Amaya
Here are the steps in the simplest form:
β Step 1: Open Amaya
Open the Amaya Web Editor on your computer.
β Step 2: Create a New Web Page
Go to File β New β HTML Document
A blank webpage will appear.
β Step 3: Add Page Title
At the top, set the title as:
βMy University β Home Pageβ
This title appears in the browser tab.
β Step 4: Insert University Name
Click on the page and type the name:
XYZ University
Select it β choose Heading 1 (H1) to make it large.
β Step 5: Insert University Logo
Go to Insert β Image
Select the logo file and adjust its size.
β Step 6: Add Navigation Menu
Insert links like:
- Home
- About Us
- Courses
- Departments
- Contact Us
Using Insert β Link.
β Step 7: Add University Description
Insert a short introduction paragraph:
"XYZ University is known for quality education and excellent campus facilities."
Use Insert β Text.
β Step 8: Add Campus Images
Go to Insert β Image
Add photos of campus buildings or students.
β Step 9: Add a Table for Quick Info
Use Insert β Table
Example:
| Info | Details |
|---|---|
| Established | 1995 |
| Location | Ranchi |
| Courses | BCA, MCA, BBA, MBA |
β Step 10: Add Footer
At the bottom of the page, type:
Β© 2025 XYZ University β’ Email: info@xyz.edu
β Step 11: Apply Basic Formatting
Use toolbar to:
- Change font color
- Center headings
- Add background color
- Adjust spacing
β Step 12: Save and Preview
Go to File β Save
Open in browser to check your home page.
β Q29 Write css code That Define five class of paragraph with different background , color , margin , padding and border style.
<p class="p1">This is paragraph style 1.</p>
<p class="p2">This is paragraph style 2.</p>
<p class="p3">This is paragraph style 3.</p>
<p class="p4">This is paragraph style 4.</p>
<p class="p5">This is paragraph style 5.</p>
**/* Paragraph Class 1 */
.p1 {
background-color: lightblue;
color: darkblue;
margin: 20px;
padding: 15px;
border: 2px solid blue;
}
/* Paragraph Class 2 */
.p2 {
background-color: lightgreen;
color: darkgreen;
margin: 25px;
padding: 10px;
border: 3px dotted green;
}
/* Paragraph Class 3 */
.p3 {
background-color: #f7e3e3;
color: maroon;
margin: 15px;
padding: 20px;
border: 2px dashed red;
}
/* Paragraph Class 4 */
.p4 {
background-color: #fff3cd; /* Light yellow */
color: #856404; /* Dark yellow text */
margin: 30px;
padding: 12px;
border: 4px double orange;
}
/* Paragraph Class 5 */
.p5 {
background-color: #e2eafc; /* Light purple */
color: #2a2a72; /* Dark blue/purple */
margin: 18px;
padding: 18px;
border: 2px groove purple;
}
Top comments (0)