Chapter3 Flashcards

1
Q

How to put a quote in HTML?

A

the bra q ket element is what you need, and a closing bra /q ket. Notice that we don’t put our own double quote characters around the quotes.
bra q ket to be or not to be bra /q ket reads “to be or not to be”

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

how do browsers show bra q ket differently?

A

Not all the browsers will display quotes around the content in the q element.

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

Why is it important to use bra q ket instead of “”?

A

There are a lot of reasons people use double quotes in text, but when you use bra q ket, that means something specific- it means the text of an actual quote. In other words what we have done is to add more meaning by marking up that quote. Before we added the q element the browser know it had a paragraph with a bunch of “” characters in it. Now the browser knows some of the text is some real quote. Structure and meaning in your page are good things.

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

what benefits can separating bra q ket from “” have?

A

The browser knows how to show it. It’s important in mobile or page readers for the visually impaired, and in CSS you can style the quotes separately.

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

What is the differnece between bra q ket and bra blockquote ket?

A

In general you use blockquote when you want to quote some thing that is a paragraph or more, while you can use q any time you just want to throw in a quote as part of your running text.

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

How do I know what my quotes or bockquotes look in different browsers?

A

You don’t really know, you have to style them yourself.

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

what is the difference between block and inline elements?

A

each block element is displayed on its own as if it had a line break before and after it.The inline element is displayed in the flow of the paragraph it’s in. Remember: Block elements stand on their own, inline elements go with the flow. h1 h2…h6 p and blockqoute are block elements while q a and em are inline elements. Block elements are often used as the major building blocks of your webpage, while inline elements usually mark up small pieces of content. When you are designing a page you typically start with the bigger chunks (the block elements) and then add in the inline elements as you refine the page.

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

What is a line break?

A

A line break is literally a “break in the line”, like
this, and happens when you hit the enter key . The line breaks in html files do not show up visually when the browser displays a page. But any time you use a block element, the browser uses line breaks to separate each “block”.

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

what is br element used for?

A

Add a br element to any line when you want to break the line flow and insert a line break.

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

what is a void element?

A

An element that doesn’t have any content by design like br or img

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

Can I make any void element? If I have a link and don’t want to give it any content for example?

A

No, There are two types of elements in the world: Normal elements like p, a, etc. and void elements linke br and img. You don’t switch back and forth between the two.

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

What is the difference between bra br ket and bra br / ket?

A

It means exactly the same thing. The syntax used in br / is more strict that works with xhtml, but unless you are planning on writing pages complaint with xhtml just think br

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

Why we don’t make a list with p?

A

You always want to choose the html element that is closest in meaning to the structure of your content. If this is a list let’s use a list element. Doing so gives the browser and you the most power and flexibility to display the content in a useful manner. Remember it’s always important to use the right tool for the right job.

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

is ol block or inline? what about li? why?

A

Because there is a line break after either of them they are both block elements.

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

What is character entity?

A

for any character that is considered “special”, or that you’d like to use in your webpage, but that may not be a typeable character in your editor (like a copyright symbol), you just look up the abbreviation and then type it into your html. For example the > character’s abbreviation is & g t ; and the < is & l t ;

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

How to type & in html?

A

using & a m p ;

17
Q

is >a< element block or inline?

A

It looks like an inline, but >a< can wrap block elements, not just text. So depending on the context >a< can be either inline or block;