Card Expander Web page
Web page made using HTML, CSS and JavaScript

Card Expander Web page

Basic Idea of the Web Page:

Title and Heading:

  • The title of the page is "Iconic Structures of the World".
  • The heading <h1> introduces the theme of the page, indicating that it will display famous structures from around the globe.

Container and Panels:

  • The container <div> holds multiple panels, each representing a different iconic structure.
  • Each panel consists of : An image of the structure as its background, name of the structure (<h3> element) overlaid on the image.

Main Logic Behind the Web Page:

  • CSS Styling: The CSS styles are used to format the layout and appearance of the page. It sets the background color, font family, container width, panel size, and hover effects.
  • HTML Structure: The HTML markup defines the structure of the page, including the title, heading, container, and panels. Each panel is given a unique class (panel) and inline styles for its background image.
  • JavaScript (script.js): The JavaScript code adds interactivity to the page.

  1. It selects all the panels using querySelectorAll('.panel') and adds a click event listener to each panel.
  2. When a panel is clicked, the removeActiveClasses() function is called to remove the active class from all panels.
  3. Then, the clicked panel is assigned the active class, making it visually distinct (e.g., highlighted or enlarged).

Here is the deployed version of the web page discussed above ??

Summary:

The web page serves as a visual showcase of iconic structures worldwide. It uses HTML for structure, CSS for styling, and JavaScript for interactivity. Users can click on each panel to view the details of the respective structure while the other panels are visually distinguished as inactive.

Thank you for your time

Happy exploring!


要查看或添加评论,请登录

Akash Palla的更多文章

  • Linux commands : The fun way7??

    Linux commands : The fun way7??

    1. nano: Your Digital Notepad Analogy: Think of nano as a versatile notepad that you always carry with you.

    2 条评论
  • My Recent Freelance Project

    My Recent Freelance Project

    Hello everyone, I’m delighted to share a recent milestone in my freelance career. I had the privilege of enhancing CZ…

  • Linux commands : The fun way6??

    Linux commands : The fun way6??

    1. Imagine the Omnitrix (a device that allows Ben to transform into aliens) is currently worn by Ben (represents the…

  • Linux commands : The fun way5??

    Linux commands : The fun way5??

    1. Imagine Joy without his magical ring.

  • Linux commands : The fun way4??

    Linux commands : The fun way4??

    1. Sherlock Holmes and Pattern Recognition: Just like Sherlock Holmes excels at identifying patterns and clues, is a…

  • Linux commands : The fun way3??

    Linux commands : The fun way3??

    1. With a snap of his fingers, Thanos wiped out half of all life in the universe.

    2 条评论
  • Linux commands : The fun way2??

    Linux commands : The fun way2??

    1. Imagine Mr.

    2 条评论
  • Linux commands : The fun way1??

    Linux commands : The fun way1??

    Imagine each folder on your computer as a room in a giant house. With cd, you don't have to wander through endless…

    2 条评论
  • Face Detection with OpenCV

    Face Detection with OpenCV

    In this mini-project, I dove into the world of computer vision to create a simple tool that detects faces in images…

  • Building a QuizApp with Python Tkinter

    Building a QuizApp with Python Tkinter

    In this project, I've used the standard Python GUI library "Tkinter" to create a Simple QuizApp completely using…

社区洞察

其他会员也浏览了