What are the Basic Tags of HTML? | Web Development Notes | New Topic [2024]
In this note, we are going to learn about a topic called “What are the Basic Tags of HTML?“, and different types of tags of HTML. Welcome to Poly Notes Hub, a leading destination for engineering notes for diploma and degree engineering students.
Author Name: Arun Paul.
What are HTML Tags?
HTML (Hyper Text Markup Language) employs several tags to structure and format material on web pages. Here’s an outline of several commonly used HTML tags and their purposes:
What are the Basic Tags of HTML?
Here we listed some important and basic tags of HTML:
1. Basic Structure
- <!DOCTYPE html>, for document types and HTML Version
- <html>, this is the root element of html page.
- <head>, it is contains meta information of the document.
- <title>, sets the title of the document, which appears in the browser’s title bar or tab.
- <body>, it contains the content of the webpage.
2. Meta Data and Links
- <meta>, Metadata includes character set, description, and keywords.
- <link>, for connecting external link.
3. Content Sectioning
- <header>, it is defines header of a document or a section.
- <nav>, used for defining the navigation bar.
- <main>, used for specify the main content of the web page.
- <footer>, used to define a footer of the web page.
4. Text Content
- <h1> to <h6>, heading tags.
- <p>, define paragraph.
- <a>, define hyperlink oranker tag.
- <div>, define a division or section of a document.
- <span>, defines a section in a document.
5. Lists
- <ul>, defines an unordered list.
- <ol>, defines an ordered list.
- <li>, defines list items.
- <dl>, defines a description list.
- <dt>, defines a term in a description list.
6. Media
- <img>, for embeds an image.
- <audio>, for embeds sound or audio.
- <video>, for embeds video content.
- <iframe>, for embeds another HTML page.
7. Forms
- <form>, defines a HTML form for user inputs.
- <input>, defines an input field.
- <textarea>, defines a multi line text area field.
- <button>, defines a clickable button.
- <label>, defines a label for the input field.
Other tags are, <table>, <tr>, <td>, <th>, <thead>, <style>, <strong>, <b> etc.