Search Header Logo
Html and Css

Html and Css

Assessment

Presentation

Computers

12th Grade

Easy

Created by

Ben Dobson

Used 38+ times

FREE Resource

87 Slides • 19 Questions

1

media

2

​Have you installed notepad ++?

3

media

4

media

5

media

6

media

7

media

8

Why are we learning this?

A) Its on the syllabus and there are question asking you to write html in the exam

B) You might want to use HTML as part of your project.
C) Many programming jobs involve at least some web programming.

9

media

10

media

11

media

12

media

13

​What is HTML..

Ask a student...

14

What is a mark-up language?

Ask a student...

15

media

​A system of formatting text and images.
It comes from "marking up" a manuscript prior
to being laid out by typesetters
(with physical metal-type blocks)

media

16

media

17

media

18

media

19

media

20

media

21

media

22

Open Ended

Most html tags come pairs. What would be the closing tag for opening tag <html> ?

23

​</html>

​Most html tags come pairs. What would be the closing tag for opening tag ?

24

media

25

media

26

media

27

​What does the title element do?

28

Open Ended

What does the title element do?

29

Changes the word/name that appears on a tab in a browser

30

​According to HTML 5 (current) stand all valid html pages must have a title tag inside of a head tag.

But browsers will still generally render non-standard html.
But you really should use as it's unprofessional to show file name in the tab

31

media

32

Open Ended

What problems would occur for the web page creator if they didn't use meta tags?

33

​Search engines would not be able to identify what the web site is about, so they could not index it properly. So it would be difficult to find using a search engine

34

media

35

media

36

Open Ended

What happens when you go from h1..to h7?

37

media

38

​​White board up.
describe
1) How are html elements normally defined?
2) Describe what the following elements
HTML,head,body,title,meta,h1....h6  do and how you might use them .

39

​White board up.
describe
1) How are html elements normally defined?
In pair of tags.
2) Describe what the following elements
HTML (defines a file as being html),head (defines the non-visual head of an html file) ,title (sets title hint of html tab),meta (a variety of information about an html file for example title, description,author),body(defines the main visible part of an html file) h1....h6 (header text of decreasing size) do and how you might use them.

40

media

41

media

42

Open Ended

Describe what the <p> element does and contrast that to the <br> element. Why is <br> element slightly unusual?

43

media

44

media

45

Open Ended

This line of html can display an image.

<img src="Dog.jpg" alt="Picture of Dog" height="200px" width="200px">

What do src, alt, height, and width attributes do? What must be present to make the image appear on the web page?

46

- src identifies the path/file name to the image
​The image file must be on the computer.
-
alt display alternative text if image does not load, will be spoken if accessibility settings are set
-height/width are height and width of the image

47

What is the difference between an Html element and an html attribute?

48

Open Ended

What is the difference between a html element and an html attribute?

49

​Html elements define components of a web page encoded by an html tag; attributes specify additional information about a component.
Attributes belong to an element.

50

media

51

Open Ended

What is an anchor <a> tag? what attribute must it have to work properly and what does this attribute specify?

52

A link, or a piece of hypertext.
The href (hypertext reference) is the required attribute of the html tag. It points to place the link should go to.
The browser will do an HTTP get request for the href page.
It will then display that page when it receives the html for that page from the web server pointed to by the href

53

media

54

media

55

media

56

Open Ended

What do <ul> and <ol> tags represent? What is the difference between them?

What is a <li> tag?

57

What do <ul> and <ol> tags represent? Lists
What is the difference between them?
<ol> are numbered (or have some other ordering system, a,b,c or i, ii. via the type attribute)
<ul> bullets points (or some other similar device via list-style-type attribute ).

What is a <li> tag? a list element enclosed by either <ul></ul? or <ol></ol> tags

58

White board up the following HTML elements:

Describe what

p , br, img, a, ol, ul

do and  how you would use them

​Also explain the difference between an element and a tag and an attribute with an example

59

p. Paragraph; line space after.
br line break
img, image, needs image file source (src) as attribute
a anchor/hypertext element, must have a src attribute which is the target
ol, ordered list (numbers/letters) ul unordered list (bullet points etc.) Li list element, contained within of ol or ul element

Element : item of html made with 2 enclosing tags. Attribute extra data/information for/about an element

60

media

61

media

62

media

63

media

64

media

65

media

66

media

67

media

68

media

69

CSS is called Cascading Style Sheets….as

You can specify the style for an element in multiple ways and there are rules governing which rule is then used…the term cascading refers to rules governing which style property will apply…….

70

media

71

media

​Alter your h1,h2,h3 elements so they read like this

​The save and refesh your browser to check that the style has been altered in the way you would expect

72

Open Ended

Write the html style attribute code to set an

h1 tag with heading "Big Heading" with purple text

73

​<h1 style="color:purple;">Big heading</h1>

74

Open Ended

Write html for a paragraph tag with the text "paragraph" to be outlined with a dashed box with color green

75

​<p style="border-style:dashed;border-color:green;">Paragraph</p>

76

Open Ended

Write html with a style attribute for an ordered list that uses Arial font family and has 3 items in the list of your choice

77

​<ol style="font-family:Arial;" >

<li>Dog</li>

<li>Cat</li>

<li>Mouse</li>

</ol>

78

media

​Why is it useful to have a separate file (from your html file) that specifies style?

media

79

​So you can write the content of the web page once...but
1) be able to alter the look of it without changing the content
2) Have multiple styles for example for a mobile app or for visually impaired people
3) Although an additional http request is needed to get the css file, most browsers will use browser caching to store css, so only on 1st visit is this needed

80

media
media

These are called css style elements (either when directly as attribute of element or in external file)

81

Open Ended

Why is useful to have a separate file (from your html file)  that specifies style?

82

​So you can write the content of the web page once...but
1) be able to alter the look of it without changing the content
2) Have multiple styles for example for a mobile app or for visually impaired people
3) Although an additional http request is needed to get the css file, most browsers will use browser caching to store css, so only on 1st visit is this needed

83

Open Ended

What html do you need to link and use an external css file? (And between what tags does it need to be?)

84

<head>

<link rel="stylesheet" type="text/css" href="myCssfileElementTagsWithClassesAndIDs.css">
</head>

85

Open Ended

What css code would you write in an external css file to make all h3 tags have blue text using the hexidecimal colour coding

86

​h3 {

color:#0000ff;

}

87

media

​Then save the file and refresh you html page in your browser.
Can you see the changes in colour of the text?

88

Open Ended

Write the code you in an external css file to create a css "class" to make an "intro" section of an html page have purple text. Include the html tag you would need as well

89

.intro {

color:purple;

}

<div class="intro">
</div>

90

Open Ended

Describe the difference between element based style code and css "classes" (and div elements/tags) .

91

media

92

media

​After you altered the css file and html file save both and refresh your browser.
Do you see the text in the lists change colour as expected?

93

Open Ended

Write the html you need to write and the css code in an external file to use an id attribute to change the text of a paragraph with id "paragraph1" to be blue.

94

#paragraph1 {

color:blue;

}
html...
<p id="paragraph1">Id test</p>

95

Open Ended

Describe what advantage using id attributes and css #idname code gives you.

96

media

97

media

​but not on the syllabus...

98

media

99

media

100

media

101

media

102

media

103

media
media

104

media

105

media

106

media
media

Show answer

Auto Play

Slide 1 / 106

SLIDE