What are HTML Tags, Attributes, and Elements
January 30, 2023 ⚊ 1 Min read ⚊ HTMLHTML (Hypertext Markup Language) is a language used to describe the structure and content of web pages. It consists of:
- Tags: HTML elements that describe the structure of the content. E.g. <p> for paragraphs, <h1> for headings.
- Attributes: Additional information about the element. E.g. “src” attribute for images <img src=”image.jpg”>
- Elements: The tag and its content, along with any attributes, form an HTML element. E.g. <p>This is a paragraph</p> is a paragraph element.
Some common HTML tags include:
- <html>
- <head>
- <title>
- <body>
- <header>
- <nav>
- <main>
- <article>
- <section>
- <aside>
- <footer>
- <h1> to <h6>
- <p>
- <a>
- <img>
- <ul>
- <ol>
- <li>
- <table>
- <form>
- <input>
- <textarea>
- <select>
- <button>
- <label>