HTML-syntax-Q&A Flashcards

1
Q

Give five examples of HTML element types.

A
  1. <h1></h1>— <h6></h6>
  2. <div></div>
  3. <span></span>
  4. <p></p>
  5. <ol></ol>

Plus many more!

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

Attributes tell us more about the content of that element.

I.E. ‘src’, ‘href’, ‘alt’….

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

Less-than sign
& lt;
& #60;

Greater-than sign
& gt;
& amp;

Ampersand
& amp;
& #38;

Quotation mark
& quot;
& #34;

Cent sign
& cent;
& #162;

Pound sign
& pound;
& #163;

Yen sign
& yen;
& #165;

Euro sign
& euro;
& #8364;

Copyright symbol
& copy;
& #169;

Registered trademark
& reg;
& #174;

Trademark
& trade;
& #8482;

Left single quote
& lsquo;
& #8216;

Right single quote
& rsquo;
& #8217;

Left double quotes
& ldquo;
& #8220;

Right double quotes
& rdquo;
& #8221;

Multiplication sign
& times;
& #215;

Division sign
& divide;
& #247;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly