Mod 7 - HTML Flashcards

1
Q

What is HTML?

A

HyperText Markup Language (HTML) is what web pages are written in. The web browser will read the language and display (render) the content specified by the language.

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

What is a WYSIWYG text editor?

A
A WYSIWYS (What You See Is What You Get) text editor hides/obscures the formatting language used. So when you bold text, it just appears bold but plain text editors show the formatting. 
ex. Word
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How are tags enclosed in HTML?

A

Always enclosed in angle brackets & are case insensitive.

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

What are paired tags?

A

They act like quotation marks & surround the content they affect. Nesting is allowed if closed properly.

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

What is an example of an unpaired tag?

A

“<hr>” or horizontal rule/line

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

What is DOCTYPE! html?

A

It appears at the top of a file and tells the web browser that it is an HTML document. it is not an html tag but it specifies the language version so the information is displayed correctly. This is always followed by which the document will be closed with as well.

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

What are the two main components in a document?

A
  1. Header : specifies additional info about a document

2. Body : specifies the document content

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

How does white space work in HTML?

A

HTML ignores white space in the document, so there is no difference between 1 space and 100 spaces because it is all displayed the same. You must add white space for it to show up.

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

How do you add white space in HTML?

A
  1. You can group text into paragraphs with the <p> tag which adds whitespace between paragraphs.
  2. You can start a new line mid-paragraph with the <br></br> tag (line break).
  3. You can add extra space between two words with (non-breaking space) </p>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How do you reference special characters?

A

It will always start with & and end with ;

ex. for ampersand, use & as well as for emojis

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

What are the heading tags?

A
<h1> main heading
<h2> sub-heading
<h3> sub-sub-heading
etc.
(all have closing tags)</h3></h2></h1>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are tag attributes?

A

They are when tags include additional info on the tag behaviour. General syntax is:

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

How does the image tag work?

A

it inserts an image & its format is.

URL can be used to input image as well.

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

What tag is used to hyperlink?

A

<a> with href which specifies the link address </a>

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

How do you internally & externally hyperlink?

A

Internal: ‘<a>local file</a>
External: ‘<a>favourite video</a>

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

How do you link to an item in the same page?

A

An ID attribute is required.
ex. <h2>background info</h2>
<a> go to background</a>

Also works for a specific element, like history, and email addresses.

17
Q

What are the two types of lists?

A
  1. Ordered: uses <ol> tags with <li> tags nested.
    ex: <ol>
    <li> meow 1. meow
    </li><li> woof 2. woof
    <ol>
    </ol>
  2. Unordered: uses </ol><ul> tags with <li> tags nested.
    ex: <ul>
    <li> meow - meow
    </li><li> woof - woof
    <ul></ul></li></ul></li></ul></li></ol></li></ol>
18
Q

How do you make a table in HTML?

A

Use the element which will have several table rows and each row has data elements .
Can use attributes like border for () or colspan for td ().

19
Q

How do you bold or italicize text?

A

<b> … </b> will bold text.

<i> … </i> will italicize text.