HTML_Detailed_Definitions
HTML_Detailed_Definitions
1. What is HTML?
HTML (HyperText Markup Language) is the standard markup language used to create web pages. It
2. Tag
Tags are the building blocks of HTML. They are used to define elements and are enclosed within
3. Element
An element consists of a start tag, content, and an end tag. Example: <p>This is a paragraph.</p>
4. Attribute
Attributes provide additional information about elements. They are always included in the opening
5. Head
The <head> element contains metadata about the document, such as the title, links to stylesheets,
and scripts.
6. Body
The <body> element contains the content of an HTML document, such as text, images, and other
HTML provides six levels of headings from <h1> (most important) to <h6> (least important).
8. Paragraph
9. Links
The <a> tag is used to define hyperlinks. Attributes: href (destination URL), target (where to open
link).
10. Images
The <img> tag embeds images. Attributes: src (image source), alt (alternative text).
11. Lists
HTML supports ordered (<ol>) and unordered (<ul>) lists. List items are defined with the <li> tag.
12. Tables
Tables are defined using <table>, with rows (<tr>), headers (<th>), and data cells (<td>).
13. Forms
Forms are used to collect user input. Tags: <form>, <input>, <textarea>, <select>, <button>.
Common input types include text, password, radio, checkbox, submit, and email.
<section>, <nav>.
<div> is a block-level container, while <span> is an inline container used to group elements for
styling.
17. Iframe
The <iframe> tag embeds another HTML page within the current page.
18. Comments
HTML comments are written as <!-- Comment --> and are not displayed in the browser.
<!DOCTYPE html> defines the document type and version of HTML used.
<meta> provides metadata like character set, viewport settings, and description. Placed in the
<head>.
21. HTML5
HTML5 is the latest version and introduces new semantic elements, multimedia support, and APIs.
22. Multimedia
HTML5 supports audio and video using <audio> and <video> tags with controls and source
elements.
23. Block vs Inline Elements
Block-level elements start on a new line and take up full width. Inline elements do not break the flow
24. Accessibility
Accessibility in HTML ensures content is usable by all users, including those with disabilities. Use
Responsive web design ensures web pages render well on various devices using meta viewport and
media queries.
End of Definitions