Chapter1 Flashcards
Html gives you a way to tell the browser about the structure of your page. What is this structure?
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.
what is <h1> and <h2>?</h2></h1>
<h1> start a heading and <h2> start a subheading of <h1> heading.</h1></h2></h1>
<p>?</p>
Goes around a block of text that is a paragraph, That can be one or many sentences.
What is the difference between and ?
the tell the browser information about the page like it’s title. is the part you see in the browser.
What is the difference between tag and element?
tag is <h1> but the element consists of opening and closing tag and the content in between.</h1>
Matching tags?
The opening and closing tags, for example <p> and </p> are matching tags.
attribute?
they give you some additional information about an element.
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?
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.
Why do a single html page without CSS is shown styled in the browser? after all html was supposed to only define structure!
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.
What is the difference between HTML and CSS?
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.