1621ICT Web Design and Development: Units A-L and N: Review
1621ICT Web Design and Development: Units A-L and N: Review
Development
3
Final exam details
• The final exam will be worth 100 marks (40% of the total
marks available for the course)
• To gain an overall grade higher than a PASS, you must
achieve at least 40% on the final exam.
• There will be three sections in the final exam
• Section 1:
• Multiple choice (50 marks)
• Section 2:
• Short answer (25 marks)
• Section 3:
• Write HTML and CSS code (25 marks) 4
Final exam details
• Multiple choice questions (50 marks total)
• Answer these questions on the mark
sense sheet provided
• Use the appropriate pencil (bring your
own)
• Choose the most correct answer
5
Final exam details
• Example multiple choice question (1 mark)
Q: A search engine can find all the files
in your Web site via a _______ file
a) robots.txt
b) robots.html
c) sitemap.txt
d) sitemap.html
6
Final exam details
• Example multiple choice question (1 mark)
Q: A search engine can find all the files
in your Web site via a _______ file
a) robots.txt
b) robots.html
c) sitemap.txt
d) sitemap.html
7
Final exam details
• Short answer questions (25 marks total)
• Answer these on the examination paper
in the space provided
• Make sure that you address all parts of
each question
• Learn definitions for common terms
• Learn how HTML tags are used
• Learn how css properties and styles are
used 8
Final exam details
• Example short answer question (2 marks)
Q: a) What does CSS stand for
b) What is CSS used for?
Answer
a) _____________________________
b) _____________________________
9
Final exam details
• Example short answer question (2 marks)
Q: a) What does CSS stand for
b) What is CSS used for?
Answer:
a) Cascading Style Sheets
b) CSS handles the look of the web page
10
Final exam details
• Write HTML and CSS code section (25 marks total)
• Write HTML and/or CSS code
• Practice for this by writing code out by hand
• Don't forget details like:
• !doctype
• html and /html tags
• meta tag
• title tag
• head and /head tags, body and /body tags
• closing tags (HTML) and opening and closing braces
(CSS)
• Appropriate attributes for HTML tags (eg.
alt="description of image" for img tag
• Including a reference to the CSS file in the HTML head 11
Section 2
12
1621ICT Web Design and
Development
Unit A:
Preparing to Create a Web Site
Objectives
• Discuss the world wide web, Uniform
Resource Identifiers, the internet, web
pages, web sites, and Web browsers
• Discuss the required preparation for
creating a website
• Assemble a project plan
• Create a storyboard
• Implement Web accessibility
standards 14
Objectives
15
Summary
20
Summary
21
Summary
24
Objectives
• Create an external style sheet
• Link to an external style sheet
• Validate your CSS code
25
Summary
• CSS is a coding language that adds
style information to HTML elements
• A style is defined by style rules
• A style rule contains:
• Selectors for the elements that are to
have a style applied
• Name-Value pairs that specify how that
elements should be styled
• The HTML div element can be used to
group elements 26
Summary
• Different types of selectors affect
different groups of elements
• Type selector:
• applies to all HTML elements of a
specific type, such as h1 elements
• id selector:
• applies to a single element having a
specific unique id
• class selector:
• applies to all elements having a
specific class attribute
27
Summary
• Embedded style sheets are included in
the HTML code
• Suitable for single page Web sites
• External style sheets can be linked to
multiple Web pages
• All the Web pages can be changed by
changing a single style sheet
• CSS code can be validated against
CSS rules
28
1621ICT Web Design and
Development
Unit D:
Formatting Text with CSS
Objectives
• Assess Web fonts
• Declare a font family
• Declare font sizes
• Implement bold and italics
• Change font colors
• Change background colors
• Use special characters
• Provide alternative style sheets 30
Summary
• It is important to implement fonts so
that they will be displayed consistently
on different user agents
• Font stacks are declared using the
font-family property
• span element: generic element used
to isolate a portion of another element
• Used to format the font of only a specific
portion of the whole element
31
Summary
• Different aspects of font can be set
using CSS properties:
• font-size property: set the font size
• font-weight property: make font bold
• font-style property: make font italic
• In CSS colors can be specified using
names, rgb, hexadecimal, or hsl
• color property: sets font color
• background property: sets background
color
32
Summary
• Character references are used to
identify characters that may be
misinterpreted as computer instructions
• They have the format &code;
• You can specify different style sheets for
different user agents
• Using the media attribute of the link
element to the stylesheet
33
1621ICT Web Design and
Development
Unit E:
Inserting and Working with Links
Objectives
• Understand links
• Create relative links
• Create absolute links
• Style links with CSS pseudo-classes
• Open links in new windows or tabs
• Link to anchors
• Create a link to a document
• Increase navigational accessibility 35
Summary
• Hypertext provides links in and
between documents
• Links are defined using the a element
• href attribute specifies location of target
document
• A navigation bar is a set of links for
moving between Web pages
• Absolute link: complete address of
target document (URI)
36
Summary
• Relative link: path/filename information
needed to locate target document. The path
is relative to the directory of the current
Web page
• Pseudo-class: categorization of web page
elements based on temporary condition
• Used to format links with CSS
37
Summary
• Anchors are links to locations in the
current Web page
• Created using id attribute
• id preceded by # in href value
• You can create a link to any computer
readable document
• To increase accessibility, provide
users a way to skip or ignore the
navigation bar
38
1621ICT Web Design and
Development
Unit F:
Inserting and Working with Images
Objectives
• Evaluate image file types
• Insert images
• Align images
• Control page flow
• Insert a background image
• Associate images with related text
• Use images as links
• Insert a favicon (address bar picture) 40
Summary
• Bitmap images are represented as a
grid of dots of specified colors
• Vector graphics are encoded as
geometric shapes
• Bitmaps should be created and
formatted specifically for use on the
Web
• The quality of an image is determined
by its resolution and size
41
Summary
• To insert an image into a Web page, use
the one sided HTML img element
• You must include src and alt attributes
• To mark images use the HTML figure
element
• You can control the page flow by using
the CSS float and clear properties
on HTML figure elements
42
Summary
• Images can be used as backgrounds for
Web pages
• User agents may tile the image if necessary
• You can add captions to images using the
HTML figcaption element
• Images can be used as links when
enclosed in an HTML a element
• You can add an icon to the browser's
address bar using a favicon
43
1621ICT Web Design and
Development
Unit G:
Organizing Content with Lists and Tables
Objectives
• Create an ordered list
• Create an unordered list
• Create a description list
• Create a navigation bar using a list
• Insert a table
• Span columns and rows
• Format a table with CSS
• Apply a table-like structure to other elements
45
Summary
46
Summary
• HTML information can be organized as
a table, in rows, columns, and cells
• Use table, th, tr, and td HTML
elements to create a table
• Semantic HTML elements can be used
to add structural information to a table
(colgroup)
• The rowspan and colspan attributes
allow a single cell to span multiple
rows or columns 47
Summary
Unit H:
Implementing Page Layout with
HTML and CSS
Objectives
• Assess the CSS box model
• Construct a multicolumn layout with float
• Implement relative positioning
• Implement absolute positioning
• Stack elements
• Create a multicolumn layout using positioning
• Create a fluid layout
• Control the visibility of elements
50
Summary
• The CSS Box model is used to represent
the shape characteristics of HTML
elements
• The Box model
• treats HTML elements as rectangular boxes
• defines the border, margin and padding
• Margins of directly adjacent elements can
combine into one margin (in this case the
larger margin is applied to both HTML
elements)
51
Summary
• Use CSS float, clear and width
properties to create multicolumn layouts
• Relative positioning allows you to adjust
the location of an HTML element relative
to its page flow location using the CSS
position property
• The space that the HTML element takes up
in the page flow is preserved
52
Summary
53
Summary
• A fixed layout allows you to specify a fixed
width for Web page content
• A fluid layout allows you the flexibility to
adjust a Web page width while maintaining
your intended layout
• You can use CSS to style whether an
HTML element is displayed by either:
• Setting the visibility property to hidden
• or by setting the display property to none
54
1621ICT Web Design and
Development
Unit I:
Applying Advanced CSS Styling
Objectives
• Assess advanced CSS styles
• Implement pseudo-elements
• Add generated content
• Integrate opacity
• Create rounded corners
• Create text shadows
• Add box shadows
• Test browser capabilities with Modernizr 56
Summary
• CSS3 added many new properties
which are not supported by all
browsers
• Use progressive enhancement,
graceful degradation, patches and
shims to ensure usability across the
various different browsers
• CSS Pseudo-elements allow you to
select a portion of an element for
styling 57
Summary
• :before and :after CSS pseudo-
elements allow you to repeatedly
generate content from style rules, without
changing the HTML code
• The rgba and hsla colour systems
include a fourth value which represents
the level of opacity (transparency) of an
element
• Rounded corners can be created using
the CSS border-radius property 58
Summary
• Text shadows and box shadows can be
created using the CSS text-shadow
and box-shadow properties,
respectively
• Free tools, such as Modernizr, enable
the creation of alternative code in order
to provide graceful degradation for older
browsers
59
1621ICT Web Design and
Development
Unit J:
Creating and Processing Web Forms
Objectives
• Understand the 2 stages of Web Form processing
• Design a form
• Create a form
• Create text fields
• Customize text fields
• Create check boxes
• Create option buttons
• Create a drop-down menu
• Enable form submission 61
Summary
• Web forms need to be planned and
designed before coding
• Identify the types of information to collect
• Create a logical flow for the user to follow
• Use labels and legends to clearly identify the
meaning of each Web form element
• A Web form is created using the HTML
<form> </form> element
• The HTML <fieldset> element groups
fields in sections of the form
62
Summary
• Text boxes are created using the HTML
input type with value text
• Text areas are created using HTML
textarea elements
• The layout of text fields can be
customized using CSS and attributes
• Checkboxes allow a user to select
multiple options
• Checkboxes are created using the HTML
input type with value checkbox 63
Summary
• Option buttons and drop-down menus allow a
user to select one of several options
• Option buttons are created using the HTML
input type with value radio
• Drop down menus are created using the HTML
select element and nesting the required option
elements
• A submit button is clicked when a user wants to
submit data in a form
• A submit button is created using the HTML
input type with value submit 64
1621ICT Web Design and
Development
68
Summary
• Fallback images can be provided
• For the video tag, use the poster
attribute
• For the object tag, nest an img tag before
closing the object tag
• Audio is added using the HTML audio
element
• The audio element has similar attributes to
the video element
• Use HTML object and param elements
to provide audio support for old browsers
69
1621ICT Web Design and
Development