This mini project demonstrates how HTML, CSS, and JavaScript work together to create an interactive web page.
The main feature of the project is a Toggle Button that switches a heading text between ON and OFF when clicked.
The project is designed to help beginners understand:
- Basic HTML structure
- Core CSS styling
- JavaScript DOM manipulation
- Handling user interactions using click events
- Practice writing structured HTML
- Apply CSS styling and layout techniques
- Learn how JavaScript interacts with HTML elements
- Implement a simple toggle logic using JavaScript
- HTML5 – Structure of the webpage
- CSS3 – Styling, layout, responsiveness
- JavaScript (Vanilla JS) – Toggle functionality
- Displays a heading with initial text OFF
- Toggle button switches text between ON and OFF
- Centered layout using Flexbox
- Responsive design for different screen sizes
- Clean and readable UI
📦 Personal Profile
├── index.html
├── styles.css
├── java.js
├── README.md
└── screenshots/
├── off.png
└── on.png
- The page loads with the heading showing OFF
- When the user clicks the Toggle button:
- The text changes to ON
- Clicking the button again:
- Changes the text back to OFF
- This behavior is controlled using JavaScript with a state variable
- Content remains centered on small screens
- Text stays readable on all devices
- Button resizes properly
- No horizontal scrolling
- Page loads → OFF
- Click Toggle → ON
- Click Toggle again → OFF
Biruk Yilfasew Hunde
Pre-Engineering Student at ASTU
This project is created for educational purposes and personal practice.

