HTML and Web Design Flashcards

1
Q

When ever you use Html.BeginForm(….. what must you alway remember to add?

A

@Html.AntiForgeryToken()

An AntiForgery validation attribute should also then be added to the post method

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

In CSS, how would you change the colour of the text below to blue using just the id from within the style sheet:

A

mySection {color: blue;}

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

In CSS, what would the following do:

.center { color: red;}

A

It would find any instance of class=”center” within the HTML and color it red

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

In CSS, if you have a class “table”, how could you specify in style sheet that all text is blue?

A

.table {text-color: blue;}

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

What does the following CSS do:

p.panel {background: yellow;}

A

It would look wihin any “panel” class, and then for every

it would colour the text blue:

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

What should you NOT start a class or id name with?

A

A number

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