HTML-SYNTAX Flashcards
1
Q
Give five examples of HTML element types.
A
- < h1 > < / h1 > : header
- < ol > < / ol >: ordered list
- < ul > < / ul >: unordered list
- < p > < / p >: paragraph
- < body > < / body > : body
(Note: Additional spaces have been added here and there to abide by the website’s display rules. [Cannot display code without premium version])
2
Q
What is the purpose of HTML attributes?
A
- All HTML elements can have attributes
- Attributes provide additional information about elements
- Attributes are always specified in the start tag
- Attributes usually come in name/value pairs like: name=”value”
EX:
- href: attribute specifies the URL of the page the link goes to
- src: attribute specifies the path to the image to be displayed
3
Q
Give an example of an HTML entity (escape character).
A
EX: Result: < Description: less than Entity name: & l t ; (remove spaces) Entity Number: & # 6 0 ; (remove spaces)