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 <img>
tag, which is used to insert images into a webpage. I learned how to:
Use the
<img>
tag with thesrc
attribute to specify an image.Set the
width
andheight
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.
โ 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! ๐