Chapter1 Flashcards Preview

head first html and css > Chapter1 > Flashcards

Flashcards in Chapter1 Deck (10)
Loading flashcards...
1
Q

Html gives you a way to tell the browser about the structure of your page. What is this structure?

A

it is a way of marking up your text so that the browser knows what’s a heading, what text is in a paragraph, what text is in a subheading and so on.

2
Q

what is <h1> and <h2>?</h2></h1>

A

<h1> start a heading and <h2> start a subheading of <h1> heading.</h1></h2></h1>

3
Q

<p>?</p>

A

Goes around a block of text that is a paragraph, That can be one or many sentences.

4
Q

What is the difference between and ?

A

the tell the browser information about the page like it’s title. is the part you see in the browser.

5
Q

What is the difference between tag and element?

A

tag is <h1> but the element consists of opening and closing tag and the content in between.</h1>

6
Q

Matching tags?

A

The opening and closing tags, for example <p> and </p> are matching tags.

7
Q

attribute?

A

they give you some additional information about an element.

8
Q

Why do I have to specify the type of style (“text/css”) as an attribute of the style ? Are there any other kinds of style?

A

At one time the designers of HTML thought there would be other styles, but as it turns out we’ve all come to our senses since then and you can just use without an attribute -all the browsers will know you mean CSS.

9
Q

Why do a single html page without CSS is shown styled in the browser? after all html was supposed to only define structure!

A

Yes! HTML only defines structure of the page, not the way it looks like. You see a HTML page without CSS styled because the browser has some default style that is used to show the HTML structure. What you see is the default CSS of the browser.

10
Q

What is the difference between HTML and CSS?

A

HTML is responsible for the structure of the page which means which part is heading, which part is a subheading, which part is a paragraph while CSS is responsible for style which is the way the page is displayed.