chapter 21-website authoring Flashcards

1
Q

whats a website

A

a collection of individual but related web pages,stored on a web serverdisplayed in a browser

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

whatre the 3 layers of a webpage

A

content layer (structure of webpage and its content) created using html
-presentation layer- contains styles ,created by css
-behaviour layer-contains actions within webpage in script language

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

how do you add comments in html

A

<!-- comment -->

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

what does html always have to start with

A

<!DOCTYPE HTML>

<html> </html>

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

whats the head section

A

above body and contains elements used in the page that rent displayed, ex attached css and titlesn

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

whats the body section

A

contains stucture of page ,content and hyperlinks.

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

what are the different predefined styles in html

A

p
li (list)
h1(biggest) to h6 (smallest)

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

whatre the table tags

A

<table><thead><th><tfoot><tbody><td><tr>
</tr></td></tbody></tfoot></th></thead></table>

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

how are table border set

A

<table> for borders and "" for no borer
</table>

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

how do you collapse borders

A

<table>
</table>

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

how do you make data appear ove rmore than 1 row or table

A

<td> or <td>
</td></td>

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

whatre the 2 attributes needed for <img></img> tags

A

src =”x,jpg” (STORE IN SAME FOLDER) defines name of file and alt text alt=”image of x” used incase image cant be displayed
you can also have style=”width:90px”

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

whatre the attributes used woth <video></video> and source tags

A

<video>
your browder doesnt support this type of video
<source></source>
</video>

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

whatre the appributes used woth audio and source

A

<audio> your browser doesnt support this type
<source></source>
</audio>

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

whatre the tags for ordered and unordered lists

A

<li> title </li>

<ol> <li> info </li></ol>

or
with ul instead of ol

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

whats a bookmark

A

named refrence in document using an id attribute, ex <p id="x">

17
Q

what are hyperlinks

A

method of accessing other resources or links from current application,they can move positions,open other pages or email editor

18
Q

how are hyperlinks created

A

using anchor <a> tag and href attribute ,surrounding text thatll be used for hyperlink, ex <a> to see x </a></a>

19
Q

what does target attribute do

A

determine if web page is opened in same browser or new window < href=”x” target=”_blank” opens in new page and _self opens in same page
if all links have defult window u can use <base></base> in head section

20
Q

whatre the diff metatags

A

placed in head section

<meta></meta>

</meta>

21
Q

what are the 3 metatag attributes

A

charset(defines character set),name(specify author and viewport),content(used w name and contains values)

22
Q

whatre the different content u can use within name attribute

A

<head>
<meta></meta>
<meta></meta>
<meta></meta>
<meta></meta>
<meta></meta>
</head>

23
Q

why do we use stylesheets

A

be consistent (corporate house styles)with styles,quicker and easier,apply attached styles

24
Q

how do you add comments in css

A

/* comment */

25
Q

whats the tag for attaching external stylesheets

A

in head section, <link></link>

26
Q

whatre the css selector and declaration blocks

A

each selector can have multiple declarations and are seperated by semicolon and is surrounded by curly brackets

27
Q

how do we add font families in css

A

h1 {font-familly:”times new roman”,”times”,serif} so when one doesnt work the browser finds the other ones

28
Q

how do you add font size in css

A

absoloute value(2pt) or relative (x-large)
h1 {font-size: 60px;}

29
Q

what property is used to make text bold in css

A

{font-weight:bold;}

30
Q

what property is used to make text italic in css

A

{font-style:italic;}

31
Q

what property is used to make text underlined in css

A

{ text-decoration:underline}

32
Q

whatre hexadecimal codes listen in

A

RGB red green blue with two values for each
ex fully red would be h6{color: #ff0000;}

33
Q

how do we insert bg color in css

A

you need to add hexadecimal code
so body {background-color: #ff0000;}

34
Q

how can u add background images in css

A

include url attribute and repeat attribute
body {background-color:#0047fc;
background-image: url(“image3.png”);
background-repeat: no-repeat;}, repeat set for tiled image

35
Q

how can you apply classes in html and css

A

.red {color:#000000;} then add it to html <p class="red">

36
Q

how do you set internal gridline borders and external gridline

A

when internal,adjust border width of td,external you adjust the whole table

37
Q

how can you add table margins

A

table {margin-left:auto; margin-right:auto;}