π¦ UNIT β I : HTML + HTTP + IMAGES + TABLES + FRAMES
β 1. Introduction to HTTP
- HTTP (HyperText Transfer Protocol) is the communication protocol between browser & server.
- Works on request β response model.
- Uses port 80 (HTTP) and 443 (HTTPS).
- Stateless β server does not remember previous requests.
β 2. Introduction to HTML
- HTML = HyperText Markup Language
- Used to create web pages.
- HTML uses tags to define the structure of a page.
β 3. Basic HTML Tags
| Tag | Description |
|---|---|
<html> |
Root of the document |
<head> |
Metadata |
<title> |
Title of webpage |
<body> |
Main content |
<h1>β¦<h6> |
Headings |
<p> |
Paragraph |
<br> |
Line break |
<hr> |
Horizontal line |
β 4. Body Tags & Coding Style
- Use proper indentation.
- Write clean HTML:
<body>
<h1>Welcome</h1>
</body>
β 5. Formatting & Modifying Text
| Tag | Meaning |
|---|---|
<b> |
Bold |
<i> |
Italic |
<u> |
Underline |
<strong> |
Strong bold |
<em> |
Emphasis |
<sup> |
Superscript |
<sub> |
Subscript |
β 6. Lists
Unordered List
<ul><li>Item</li></ul>
Ordered List
<ol><li>Item</li></ol>
Definition List
<dl><dt>Term</dt><dd>Definition</dd></dl>
β 7. Links
1. Linking to another Document
<a href="page.html">Go</a>
2. Internal Links
<a href="#section1">Jump</a>
3. Email Links
<a href="mailto:test@gmail.com">Mail Me</a>
4. Relative vs Absolute
- Relative β
"about.html" - Absolute β
"https://google.com"
β 8. Images
<img src="img.jpg" width="300" height="200" alt="Image">
Image Concepts:
- Placement β align with CSS
-
Margins β
margin:10px; - Formats β JPG, PNG, GIF
- Clickable Images
<a href="next.html"><img src="pic.jpg"></a>
Image Maps
<img src="map.jpg" usemap="#m">
<map name="m">
<area shape="rect" coords="0,0,50,50" href="a.html">
</map>
β 9. Working with Tables
Basic Table
<table><tr><td>Data</td></tr></table>
Table Attributes:
-
border,width,cellpadding,cellspacing
Cell Attributes:
-
align,valign,rowspan,colspan
Nested Tables
<table>
<tr><td>
<table>β¦</table>
</td></tr>
</table>
β 10. Frames (Old HTML Feature)
Creating Frameset
<frameset cols="50%,50%">
<frame src="left.html">
<frame src="right.html">
</frameset>
-
Column Frames β
cols="30%,70%" -
Row Frames β
rows="50%,50%" - Complex Frames β nested framesets
π¦ UNIT β II : CSS + JAVASCRIPT
β 1. CSS (Cascading Style Sheet)
3 Ways to Use CSS
- Inline CSS
<p style="color:red;">Hello</p>
- Internal CSS
<style>h1{color:blue;}</style>
- External CSS
<link rel="stylesheet" href="style.css">
β 2. CSS Selectors
ID Selector
#box { color:red; }
Class Selector
.red { color:red; }
Tag Selector
h1 { font-size:30px; }
β 3. Borders
div { border:2px solid black; }
β 4. Navigation Links
Horizontal nav bar using list:
ul li { display:inline; padding:10px; }
β 5. CSS Effects
- Hover effects
- Shadows
- Transitions
- Background color
β 6. JavaScript Introduction
- JavaScript makes web pages dynamic.
- Runs in browser.
- Used for validation, events, animations, form handling.
β 7. JavaScript Variables
var a;
let b;
const c = 10;
β 8. Operators
- Arithmetic β
+ - * / % - Comparison β
== != > < - Logical β
&& || !
β 9. Control Statements
if(){ }
else if(){ }
for(){ }
while(){ }
β 10. Error Handling
try{ }
catch(e){ }
β 11. Arrays
let a = [1,2,3];
β 12. Functions
function test(){ }
β 13. Built-In Functions
alert()parseInt()toString()Math.random()
β 14. Date & Time
let d = new Date();
d.getFullYear();
β 15. Objects
let person = {name:"Abhishek", age:20};
β 16. Call Method
obj.func.call(otherObj);
π¦ UNIT β III : WYSIWYG Editors + Image Optimization
β 1. WYSIWYG HTML Editors
("What You See Is What You Get")
Examples:
- Dreamweaver
- Expression Web
- AMAYA
- CoffeeCup HTML Editor
Benefits:
- No need to write code
- Drag-and-drop
- Auto formatting
- Quick page creation
β 2. Creating a Website in Editor
- Create site
- Create new page
- Insert & format text
- Add images
- Link pages
- Email links
- Manage files
β 3. Creating & Inserting Images
Optimizing Images
- Compress size
-
Use appropriate format
- JPG β photos
- PNG β transparency
- GIF β simple graphics
Insert GIF/PNG
<img src="pic.gif">
π¦ UNIT β IV : Accessible Tables + Frames
β 1. Designing Accessible Tables
- Use proper
<thead>,<tbody>,<caption> - Add CSS for styling
- Maintain readability
Styling Example:
table { border-collapse:collapse; }
th,td { border:1px solid #000; padding:10px; }
β 2. Editing Table Layouts
- Change width
- Merge cells
- Add background colors
β 3. Creating Websites with Frames
(Old method; replaced by CSS layouts now)
Frameset Example
<frameset cols="30%,70%">
<frame src="menu.html">
<frame src="content.html">
</frameset>
Features:
- Open pages inside frames
- Control borders
- Change scrollbars
- Target links to frame
π¦ UNIT β V : Web Hosting + FTP
β 1. What is a Domain?
- A domain is your website name.
- Example:
google.com
β 2. DNS
- DNS = Domain Name System
- Converts domain names to IP addresses.
β 3. How to Register a Domain
-
Use websites like
- GoDaddy
- Namecheap
- Google Domains
Pay yearly fee.
β 4. What is Web Hosting?
- A service that stores your website files on a server.
β 5. How to Get Hosting
- Choose hosting provider
- Buy plan
- Connect domain
- Upload website
β 6. Hosting Your Website
- Upload files using cPanel or FTP
- Set permissions
- Test website online
β 7. FTP (File Transfer Protocol)
FTP is used to:
- Upload files
- Download files
- Rename files
- Delete files
Basic FTP Commands
-
lsβ list files -
cdβ change directory -
put filenameβ upload -
get filenameβ download -
rename old newβ rename
FTP Softwares
- FileZilla
- WS_FTP
- CuteFTP
π IMPORTANT EXAM QUESTIONS (Most Repeated)
β UNIT β I
- Explain types of HTML lists.
- Difference between relative & absolute links.
- Explain image maps with example.
- Explain tables & their attributes.
β UNIT β II
- What is CSS? Explain its types.
- Explain JavaScript event model.
- Difference between var, let, const.
- Explain JavaScript functions & arrays.
β UNIT β III
- What is WYSIWYG editor? Explain its advantages.
- How to optimize images for the web?
β UNIT β IV
- Explain accessible table design.
- What are frames? Explain types of framesets.
β UNIT β V
- What is a domain? Explain DNS.
- What is web hosting?
- Explain FTP and its commands.
Top comments (0)