Exploring Front-End Web Development


Latest Post:

Using Anchor Tags Versus Button Tags

When you're looking to solicit a user click to initiate an action, HTML provides two elements to do the job: the <a> (anchor) and the <button> elements. Determining which tag to select can be confusing, since both can be styled to look however you want. For example, you could have a "Learn More" call to action that is coded as an anchor and styled like a real-world clickable button. Conversely, you could have a "Save" button element that looks like a text link — with or without an icon…

Read More


Getting the Height of a Hidden Element

Sometimes, we need to animate the height of a currently closed or hidden element, so that it appears to slide open. The use case of an accordion comes…

Read More
© 2022 John Graham