Anatomy of HTML Flashcards

1
Q

What does HTML stand for?

A

Hyper Text Markup Language

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

What does HTML stand for?

A

Hyper Text Markup Language

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

What’s a good way to think about HTML?

A

You take content and wrap it in the appropriate tags.

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

What is an Element?

A

An HTML element usually consists of some content (could be plain text or additional HTML elements) wrapped by opening and closing tags.
Ex: <div></div>

<a></a>

there are more.

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

What is a tag?

A

A tag encapsulates an element.
Ex :< (opening tag)
Ex: > (closing tag)

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

What is an opening tag?

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

What is a closing tag?

A

>

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

What’s a good way to think about HTML?

A

You take content and wrap it in the appropriate tags.

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

What is an Element?

A

An HTML element usually consists of some content (could be plain text or additional HTML elements) wrapped by opening and closing tags.
Ex: <div></div>

<a></a>

there are more.

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

What is a tag?

A

A tag encapsulates an element.
Ex :< (opening tag)
Ex: > (closing tag)

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

What is an opening tag?

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

What is a closing tag?

A

>

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

What are self-closing element?

A

While most elements need op/cl tags, self-closing elements do not.
Ex: <img></img>
Coded out ex: p>This paragraph has an image: <img></img>

or

Ex: <br></br>
This element just inserts a line in the code document

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

What are attributes?

A

Attributes are for setting properties on an HTML element.

ex:

<h2>Favorite Songs</h2>

Playlist 1 is the attribute I’ve given to this level 2 headig

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

What do HTML attributes look like?

A

HTML attributes consist of a name (e.g., href) and a value enclosed in quotes (e.g., “https://www.somewhere.com”).

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

What are examples of attributes:

A

These are a few:

href, id, class

17
Q

Can attributes be used on all elements?

A

No -BUT they can be used on most of them.
Especially attributes Class and ID, they are very user friendly, However there are some elements that will not take attributes of any kind.

18
Q

What Elements will not accept Attributes?

A

,

).

19
Q

What does an HTML document do? (1/2)

A

An HTML document specifies each and every one of its elements. These can be visible elements (paragraphs and images) or ones that human users never see (for instance, elements appearing in the head of the document).

20
Q

What is commenting out code?

A

Developers commonly need to add what are called comments to code. A code comment is a line of text that is used to document some feature or oddity of a given piece of code for fellow project collaborators.

21
Q

What does the HTML Elemental Hierarchy usually look like?

A

SEE Tlesson 2.1 for hierarchal diagram.

22
Q

What are Heading Elements>

A

They are used to establish information hierarchy.

ex: <h1>, <h2>, <h3>,<h4>,<h5>
</h5></h4></h3></h2></h1>

23
Q

Can i use H1 more than once?

A

Can you, technically yes but should you? NOOOOO.

Each HTML document should have only one <h1>header element just like there should on be one element.</h1>

24
Q

Is it okay to skip around with heading levels in the HTML document?

A

No. You should go in progressive order, <h1> to <h5>
You can use heading levels <h2> to <h5> repeatedly however.
Remember, <h1> should on be used one per HTML document. </h1></h5></h2></h5></h1>

25
Q

What is default styling when talking about HTML?

A

Each browser will have its own internal styling code, or default styling.

If the HTML document does not include specific CSS code of how you want the webpage to appear, the webpage will default to the default styling,.

26
Q

Is commented code rendered on the webpage?

A

NO. Commenting out code is a common way of temporarily disabling code, often times for the purpose of debugging or leaving someother necessary info a team member may need

27
Q

Should I comment code a lot?

A

Not a lot. Your code should be as clear and concise as possible so that anybody coming after you could understand your work. If there really is something that cannot be communicated via the code, then comment

Debugging is a different matter though. .

28
Q

What’s the Windows and Mac Shortcuts for Commenting code?

A

The Sublime Text keyboard shortcut for commenting is Mac:
⌘ + /
and
Win: Ctrl + /.

If you type this shortcut while the cursor is on an existing line of code, or if you’ve highlighted one or more lines of code and type the shortcut, that code will be commented out