URL shortener project created using HTML, CSS, and JavaScript
index.html
: The main HTML file containing the structure of the URL shortener page.styles.css
: The CSS file for styling the URL shortener page.script.js
: The JavaScript file for handling the URL shortening logic.
- Open
index.html
in your web browser. - Enter the original URL in the input field.
- Click the "Shorten" button to get a simulated short URL.
- The short URL will be displayed on the page.
Note: This is a simple example that uses client-side JavaScript for demonstration purposes. In a real-world scenario, you would need a server-side application to handle URL shortening securely.
The URL shortening logic in script.js
is a basic simulation. In a production environment, you would implement a secure and unique shortening algorithm on the server-side.
Commands : npm i _ npm run dev