HTML-SYNTAX Flashcards

1
Q

Give five examples of HTML element types.

A
  1. < h1 > < / h1 > : header
  2. < ol > < / ol >: ordered list
  3. < ul > < / ul >: unordered list
  4. < p > < / p >: paragraph
  5. < 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])

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly