About HTML (Short Definition)
1. Text Editor/IDE:
A text editor (e.g., Notepad, Sublime Text) or an IDE (e.g., VS Code, Atom) is
used to write HTML code for creating and editing web pages.
2. Tags:
HTML uses tags enclosed in angle brackets (<>) to define elements. Key tags include:
- <html>: The root element of an HTML document.
- <head>: Contains metadata (e.g., title, styles).
- <body>: Holds the main content displayed on the web page.
- <h1>
to <h6>:
Headings, with <h1> being the largest and <h6> the smallest.
- <p>: Defines a paragraph.
- <br>: Inserts a line break.
- <a>: Defines hyperlinks.
- <title>: Sets the title displayed in the browser tab.
- <hr>: Inserts a horizontal line.
3. Elements:
HTML elements consist of opening and closing tags, content, and attributes (if
any). Example: <p>This is a
paragraph.</p>.
4. Attributes:
Attributes provide additional information about elements. They are written in
the opening tag. Example: <a href="https://example.com">Link</a>.
Comments
Post a Comment