A beginner-friendly static website for browsing important Indian laws.
Open index.html directly in a browser, or in VS Code:
- Install the Live Server extension.
- Right-click
index.html. - Choose Open with Live Server.
No static student project can safely contain and maintain every current Central, State, Union Territory, rule, regulation, notification, amendment, and judicial interpretation. This starter therefore uses a searchable catalogue and directs users to official government sources.
Inside index.html, find const laws = [...] and add another object:
{
title: "Name of Act",
year: 2026,
category: "Category",
description: "Brief neutral description.",
keywords: ["keyword one", "keyword two"],
officialUrl: "OFFICIAL GOVERNMENT URL",
searchUrl: "https://www.indiacode.nic.in/"
}For a production version, use a backend, database, admin panel, amendment history, State/UT filters, and a government-authorized dataset or API.