This repository contains code for a custom 404 error page designed with HTML and CSS.
The HTML file (index.html
) creates a simple yet visually appealing 404 error page with a message indicating that something went wrong and a button to redirect users to the initial page. The associated CSS file (styles.css
) styles the elements to provide a cohesive and attractive layout.
To use this code:
- Download or clone this repository.
- Open the
index.html
file in a web browser to view the 404 error page. - Customize the content, styles, and button link as needed for your project.
The HTML file consists of:
<h2>
: Displaying the number '404'.<p>
: Showing an error message.<a>
: A button linking back to the initial page.
The CSS file (styles.css
) defines styles for:
- Body background color and text styles.
- Button design and hover effects.
- Error message and number styling.
Feel free to modify the HTML and CSS to match your project's design and requirements.
Feel free to connect with me and explore more!