Fundamental HTML Tags

Arjun SharmaArjun Sharma
2 min read
  1. <html>: This is like the cover of a book. It tells the computer that everything inside is written in HTML.

  2. <head>: Think of this as the table of contents. It contains important information about the webpage, like its title.

  3. <title>: Just like the title of a book, this tells the computer what to show at the top of the browser tab.

  4. <body>: Imagine this as the pages of the book. It holds all the content that you see on the webpage.

  5. <h1> to <h6>: These are like chapter titles in a book. They show different levels of importance for headings.

  6. <p>: These are like paragraphs in a book. They hold the main text content.

  7. <a>: This is like a magic door in a storybook. Clicking on it takes you to another webpage.

  8. <img>: This is like a picture in a book. It shows an image on the webpage.

  9. <ul> and <ol>: These are like lists of items. <ul> makes a bullet list, and <ol> makes a numbered list.

  10. <li>: This is like each item on a list. It goes inside <ul> or <ol>.

  11. <div>: Think of this as a big box. It helps organize and group different parts of the webpage.

  12. <span>: This is like a small box. It's used to style or change a small part of the text.

  13. <input>: Imagine this as a place to fill in information, like a blank in a Mad Libs story.

  14. <button>: This is like a clickable button. It can do something when you click on it, like submit a form.

0
Subscribe to my newsletter

Read articles from Arjun Sharma directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Arjun Sharma
Arjun Sharma

"Enthusiastic QA Analyst with a profound interest in backend development, driven by a passion for creating robust and reliable software systems. Committed to continuous learning and exploration of backend technologies, I find joy in unraveling complexities and optimizing performance. Beyond the code, I am dedicated to mentoring kids, sharing my knowledge, and igniting their curiosity for technology. Through insightful blog posts, I aim to inspire others while fostering a supportive community of learners. Join me on this journey as we explore the world of backend development and empower the next generation of tech enthusiasts!"