Introduction
Today was an exciting day in my web development journey as I explored essential HTML concepts and dived into the basics of SEO optimization. In this blog, I'll share what I learned about adding images, tables, lists, line breaks, and SEO best practices that improve user experience.
π Adding Images in HTML
One of the fundamental elements in HTML is the tag, which is used to insert images into a webpage. I learned how to:
Use the <img>
tag with the src attribute to specify an image.
Set the width and height to control its dimensions.
Optimize images for performance and responsiveness.
Setting the alt attribute improves accessibility and helps in SEO ranking by allowing search engines to understand the image content.
π Understanding HTML Tables
HTML tables allow us to display data in a structured way. I learned about:
The <thead>
, <tfoot>
, and <tbody>
sections for organizing table content.
Adding captions using the <caption>
tag.
Structuring rows with <tr>
and columns with <td>
.
learned about colspan and Rowspan
π₯ The Function of <br>
in HTML
The <br>
tag is used to insert line breaks within content, making text more readable. Unlike paragraphs (<p>)
, it doesnβt add extra spacing.
π HTML Lists & Their Types
Lists play a crucial role in organizing content. I learned about three types of lists:
Ordered Lists (<ol>)
β Displays items in numerical order.
Unordered Lists (<ul>)
β Displays items with bullet points.
Description Lists (<dl>)
β Used for term-definition pairs.
By changing the type attribute in ordered lists, we can use different numbering styles (e.g., 1, A, i).
π SEO & User Experience Optimization in HTML
Beyond structuring web pages, SEO (Search Engine Optimization) plays a major role in improving a websiteβs visibility. I explored:
β
Core Web Vitals
Google uses these metrics to evaluate a websiteβs user experience:
CLS (Cumulative Layout Shift): Measures visual stability. The less it is the better it is
LCP (Largest Contentful Paint): Measures loading performance.
FID (First Input Delay): Measures interactivity and responsiveness.
β Inspection To check CWV go to your website and click on inspect and then go to lighthouse there u can see analyzed reports of your website
β
Meta Description & Keywords
Meta tags provide search engines with a summary of the webpage
Adding well-structured meta descriptions and keywords helps boost a websiteβs ranking on search engines.
π― Conclusion
Todayβs learning journey helped me understand both HTML structuring and SEO fundamentals. By implementing best practices, I can improve both design and user experience on web pages.
π Stay tuned for more updates on my learning journey! π
Top comments (0)