FULL PRACTICAL REVISION NOTES – HTML, CSS & JAVA
-------------------------------------------------------
SECTION 1: HTML (HyperText Markup Language)
Basic Structure:
<html>
<head>
<title>Page Title</title>
</head>
<body>
Content here
</body>
</html>
Important Tags:
• Headings: <h1> to <h6>
• Paragraph: <p>
• Line break: <br>
• Bold/Italic/Underline: <b> <i> <u>
• Image: <img src="[Link]" width="200">
• Link: <a href="[Link]
• Lists: <ul> <ol> <li>
• Tables: <table> <tr> <td> <th>
• Forms: <form> <input> <select> <textarea>
• Div/Span: <div> <span>
HTML5 Tags:
<header> <footer> <section> <article> <nav> <video> <audio>
-------------------------------------------------------
SECTION 2: CSS (Cascading Style Sheets)
Ways to Add CSS:
1. Inline → <tag style="color:red">
2. Internal → <style>
3. External → [Link]
Selectors:
• Element → p{}
• Class → .box{}
• ID → #main{}
Common Properties:
• color, background-color
• font-size, font-family
• margin, padding
• border
• width, height
• display
• position
• flexbox: display:flex
Box Model:
Content → Padding → Border → Margin
-------------------------------------------------------
SECTION 3: JAVA (Core Java Basics)
Basic Structure:
class Main {
public static void main(String args[]) {
[Link]("Hello Java");
Data Types:
int, float, double, char, boolean, String
Operators:
+ - * /, == != < >, && ||
Conditionals:
if, else if, else, switch
Loops:
for, while, do-while
Arrays:
int a[] = {1,2,3};
OOP Concepts:
Class, Object, Constructor, Inheritance, Polymorphism, Abstraction, Encapsulation
String Functions:
length(), charAt(), substring()
Exception Handling:
try, catch, finally
File Handling:
FileReader, FileWriter
-------------------------------------------------------
Best of luck for your practical exam!