Basic HTML Markup
Concepts
- Elements:
Here are some elements to start with:
- paragraphs
- headings
- lists; ordered and unordered
- Hyperlinks
- Images
- Text formatting elements
- code
- Blockquotes, quotes, and cite: example below
- address
- subscript and superscript
- Abbreviations
- Nesting elements:
- Attributs:
- Block and inline elements:
- Block elements:
- Creates a block on a page, that appears in a new line.
- Takes all the width that is available from the left to the right of the parent element.
- Pushes the content that appears after it to the next line.
- Generally, is a structural element on the page like headings, navigation, footer, etc.
- Inline elements:
- Only occupies the space required by the content in it.
- Generally contained inside a block element.
- Does not produce new lines on the page.
- Comments
Create HTML comments with this syntax between the tags: <!--comment-->
Examples of some HTML elements
Quotes and citation
The HTML <blockquote> Element indicates that the enclosed text is anextended quotation.
The quote element <q> is intended for short quotations that don't requireparagraph breaks.
- MDN q page.
Subscript and superscript
Christmas is on 25th of December.
This text contains superscript text.
Abbreviations
Proper use of semantic tags improves the SEO of a web page.
Thura Aljubury, ©2024, Conestoga College