HTML
HTML (HyperText Markup Language) is the language used to create and structure web pages.
Meaning of HTML Structure
HTML structure means the basic framework or layout of a web page that shows how content is arranged using HTML tags.
<!DOCTYPE html>
All HTML documents must start with a <!DOCTYPE> declaration.
The declaration is not an HTML tag. It is an "information" to the browser about what document type to expect.
Why we use <!DOCTYPE html>:
Tells the browser the HTML version – It informs the browser that the page is written in HTML5.
Ensures correct display – Without it, browsers may use quirks mode, which can make your page look wrong.
Helps with modern features – It allows the browser to understand and correctly display new HTML5 elements like , , and .
Meaning of **head tag:**
The head tag holds information about the web page (like title, metadata, and CSS links) that is mostly not visible on the page.
Meaning of **title tag:**
The title tag is used to give a title to the web page. It is placed inside the
Meaning of **body tag:**
The body tag contains all the visible content of a web page, such as headings, paragraphs, images, and links. Everything the user sees on the page is placed inside the
Inside **body tag**
The body tag contains all the visible parts of a web page, such as:
1. Headings → <h1> to <h6>
2. Paragraphs → <p>
3. Images → <img>
4. Links → <a>
5. Lists → <ul>, <ol>, <li>
6. Tables → <table>
7. Forms → <form>, <input>
8. Buttons → <button>
9. Videos / Audio → <video>, <audio>
10. Divisions and sections → <div>, <section>, <article>
Top comments (0)