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 HTMLโฆ
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
section and shows in the browser tab. The title helps users and search engines know what the page is about.
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
tag.
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>