This project presents a visually styled Periodic Table of Elements, built using pure HTML and CSS. It replicates the structure of the actual periodic table, with each element displayed in its correct position, styled for clarity and visual appeal.
You can host this project using GitHub Pages or any static site hosting service to view the periodic table in your browser.
βββ index.html
βββ Style.css
βββ Image.avif
index.html: Contains the full HTML markup for the periodic table.Style.css: External stylesheet for layout and typography.Image.avif: Background image used for visual enhancement.
- Semantic HTML structure using
<table>,<tr>,<td>,<strong>,<small>,<h1>, and<q>. - Accurate layout of elements using
colspanandrowspanto reflect real-world periodic table gaps. - Each cell includes:
- Element Symbol (e.g., H, He, Li)
- Atomic Number (e.g., 1, 2, 3)
- Background: A fixed, centered image (
Image.avif) fills the viewport. - Typography:
- Title uses the Asimovian font for a futuristic look.
- Table content uses the Bungee font for bold, readable styling.
- Table Layout:
- Left margin applied to visually center the table.
- Borders and alignment enhance clarity.
Fonts are imported from Google Fonts:
This project is ideal for:
- Educational websites
- Chemistry learning tools
- Interactive science dashboards
- HTML/CSS practice and portfolio enhancement
- Clone the repository:
git clone https://github.com/Aashir-Shaikh/periodic-table-html-css.git
- Open
index.htmlin any modern browser. - Ensure
Style.cssandImage.avifare in the same directory.
- Add hover effects to each element cell.
- Include tooltips with element details (e.g., atomic mass, category).
- Make the table responsive for mobile devices.
- Integrate JavaScript for interactive filtering or search.
This project is open-source and available under the MIT License.