Exploring Front-End Web Development



My Unexpected Undefined

3/19/2025

I got myself with a TypeError yesterday for trying to read the properties of undefined while using find to return a specific item from an array.

Read More

Using Anchor Tags Versus Button Tags

9/26/2021

When deciding between `<a>` and `<button>` elements, use `<a>` for navigation (links to new pages or sections) and `<button>` for actions (form submission, executing tasks). Avoid mixing purposes, as it leads to unnecessary complexity and potential issues.

Read More

Getting the Height of a Hidden Element

5/21/2021

Sometimes, we need to animate the height of a hidden element to make it slide open. CSS can handle height animations, but it doesn't support animating to arbitrary heights. By using JavaScript, we can calculate the element’s full height and animate it smoothly.

Read More