HTML is made of tags โ small pieces of code that tell the browser how to display content. Tags usually come in pairs: an opening tag and a closing tag.
<tagname>Content</tagname>
<p>Hello World</p>
<h1>
to <h6>
โ Headings from largest to smallest<p>
โ Paragraph<a>
โ Anchor/Link<img>
โ Image<br>
โ Line break (self-closing)<strong>
and <em>
โ Bold and Italic text<h1>Welcome!</h1>
<p>This is a simple paragraph to explain HTML tags.</p>
<a href="https://www.google.com">Visit Google</a>
This tag creates a clickable link that opens Google.
<img src="https://via.placeholder.com/150" alt="Placeholder Image">
The alt
attribute gives a description if image fails to load.
alt
text in images for accessibility and better SEO!
Write a small HTML snippet with your name as a heading and a paragraph about your favorite hobby.