What does the html file include and what
HTML files consist of markup (which controls structure and appearance) and content (text, images, etc. that appear on the web page). Typical structures include: document type declaration, header, and body. Commonly used tags include: head (), body (), title (
-
), paragraph (
), hyperlink () , image (
), unordered list (
What does an HTML file contain?
HTML (Hypertext Markup Language) files are composed of two main elements:
1. Tags
- tags are Special directives that control the structure and appearance of documents.
- They are usually surrounded by angle brackets (< and >) and represent various elements.
- For example, the tag represents the head of the document, and the tag represents the body of the document.
2. Content
- Content is the actual text, images, and multimedia elements that appear on a web page.
- It sits within the tag and provides the actual content of the document.
- For example, to display text, you can use the
(paragraph) tag:
I am HTML content
##HTML file The structure of
A typical HTML file has the following structure:- Document type declaration (DOCTYPE): Specifies the HTML version and character set encoding.
- Head (Head): Contains basic information about the document, such as title, metadata, and links.
- Body: Contains the main content of the document, such as text, images, and interactive elements.
Commonly used tags in HTML
The following are some common tags in HTML:- ## Document header
:
- Document body