The Struggle: πͺπ
I had an idea for a colorful and organized webpage layout, but my first design didn't match. The result was messy and unorganized, nothing like what I imagined!
Debugging πππ οΈ:
1οΈβ£ Initial Insight:
I took a closer look at my code and realized I wasn't using any semantic tags. My layout was just a combination of divs, making the design difficult to control.
2οΈβ£ Exploring Resources:
After watching a tutorial by CodeWithHarry on YouTube, I discovered that using semantic tags (like <header>
, <main>
, and <footer>
) not only makes the HTML more meaningful but also helps structure the layout more effectively.
3οΈβ£ Breakthrough Moment:
I replaced my non-semantic tags with proper HTML5 elements, updated my CSS accordingly, and BOOM! My design transformed into exactly what I wanted. The improvement was night and day!
Lesson Learned: πβ¨
The moral of the story: Semantic tags bring both clarity and visual harmony to your web projects. They make your code more readable and your final design more polished.
πΈ Attached:
Comparison screenshots: the first image shows the final design, and the second image displays the initial messy layout.
π€ To My Network:
Who else has realized this after using semantic tags? What were your takeaways?
Top comments (0)