0% found this document useful (0 votes)
3 views1 page

Essential HTML Tags Explained

The document outlines basic HTML tags used for structuring and formatting text on webpages. It includes descriptions of tags such as <p>, <h1> to <h6>, <em>, <strong>, and others, detailing their purposes and how they are displayed. Additionally, it mentions the <marquee> tag as outdated and provides examples for some tags.

Uploaded by

erickchugu
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Essential HTML Tags Explained

The document outlines basic HTML tags used for structuring and formatting text on webpages. It includes descriptions of tags such as <p>, <h1> to <h6>, <em>, <strong>, and others, detailing their purposes and how they are displayed. Additionally, it mentions the <marquee> tag as outdated and provides examples for some tags.

Uploaded by

erickchugu
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

BASIC TAGS.

1. <p>: Stands for "paragraph." It is used to define and structure text paragraphs on a webpage.
2. <h1> to <h6>: Header tags are used to create headings with varying levels of importance, where
<h1> is the highest and <h6> is the lowest.
3. <em>: Emphasizes text by italicizing it. Often used for emphasizing a word or phrase within a
sentence.
4. <strong>: Represents strong importance or emphasis, typically displayed as bold text. Used for
indicating stronger importance than <em>.
5. <abbr>: Defines an abbreviation or acronym and can include a title attribute for providing the full
expansion of the abbreviation when hovered over.
6. <cite>: Used to reference the title of a creative work, like a book or a movie. It's often rendered in
italics.
7. <blockquote>: Indicates a block of text quoted from another source. Typically indented and styled
differently from regular text.
8. <q>: Represents an inline quotation. Encloses a short inline quote within double quotation marks.
9. <code>: Used for displaying computer code or program code. The text inside this tag is usually
displayed in a monospace font.
10. <pre>: Preformatted text preserves whitespace and line breaks exactly as they appear in the source
code. Often used for displaying code examples or poetry.
11. <br>: Inserts a line break within text, typically used to start a new line without creating a new
paragraph.
12. <hr>: Creates a horizontal rule (line) to visually separate content sections.
13. <sup>: Represents superscript text, which is smaller and raised above the regular text baseline.
14. <sub>: Represents subscript text, which is smaller and positioned below the regular text baseline.
15. <del>: Marks text as deleted or removed. The text inside this tag is often displayed with a
strikethrough.
16. <ins>: Indicates text that has been inserted or added to the document. The text inside this tag is
often underlined.
17. <sup> (Superscript): Used for superscript text, which appears smaller and above the regular text
baseline. Example: H<sup>2</sup>O renders as H²O.
18. <sub> (Subscript): Used for subscript text, which appears smaller and below the regular text
baseline. Example: CO<sub>2</sub> renders as CO₂.
19. <marquee> (Marquee): Creates a scrolling text or content effect. Considered outdated and not
recommended for modern web development. Example: <marquee behavior="scroll"
direction="left">Scrolling Text</marquee>.
20. <hr> (Horizontal Rule): Creates a horizontal line or rule to separate content sections. Used to
indicate a thematic break in the content. Example:

GEORGE WAINAINA 0718313173/0731919231 georgewainaina58@[Link] Page 1

You might also like