Exam Flashcards
What is the web’s architecture?
client-server
List and define the Web Protocols.
- IP - Protocol that allows data to be chuncked into packets and sent to an IP address
- TCP - Underlying protocol ensureing data is reliably delivered
- HTTP - is used as the network protocol to define how messaged are formatted and transmitted
What language is HTML?
HTML is a semantic language
Write an HTML comment.
<!-- HTML Comment -->
What makes up the project plan?
- Identify goals and scope of the project
- Identify the target audience
- Identify the type of web site
What is “creating a storyboard” about?
A storyboard is a sketch that outlines Web page components and links between web pages
Main steps:
* Identify compnents to include
* Sketch possible layouts and select one
* Map the relationships between web pages
What is “creating a Hierarchy chat” about?
Map relationship between Web pages (aka Hierarchy Chart)
* Crucial when creating navigation system for the web site
* Include links between pages in the web site as well as external links
Why is Accessibility important?
Including accessibility into web pages widens potential auidence
List and define the Link Types.
- Relative Link: path/filename information needed to locate target document. The path is relative to the directory of the current web page
- Absolute link: complete address of target document (URI)
- Anchor link: is a link to a location in the current web page
- Created using id attribute
- id prceded by # in href value - Skip link: A link that targets an anchor at the start of the main page content and allows users to bypass navigation
What is a block level element?
A block level element will take up the full width of its parent element. It will start at the line of flow and then the line of flow will be moved to a position directly below the element and as far as the the left of screen as it can go.
What is an inline element?
An inline element starts at the line of flow. The line of flow is moved to the end of the element.
Name the parts of the Uniform Resource Identifier(URI)
Can’t’ upload images here so check desktop for answer
What are the two image types?
- Vector
- Bitmap
List and define the Image Formats
-
JPG: optimized for many colors
- Photographs
- Variable Compression rates -
GIF: optimized for areas with defined borders, few colors
- Line drawings
- Supports transparent pixels (of a single color) - PNG: Includes a full alpha channel for full transparency with gradients. PNG is a non patented replacement for GIF.
- SVG: no decrease in quality when scaled
What are the three image attributes?
- src
- alt
- title
What is the difference between HTML and CSS?
- HTML is used to indicate the meaning of things (headings, paragraphs, etc.) but not to specify how they should appear.
- Cascading Style Sheets (CSS) is a presentational language is used to specify how things appear.
What is a CSS syntax?
A CSS syntax contains two main parts
1. Selector - points to the HTML elements/s you want to style
2. Declaration block - the declaration block contains one or more declaration separated by semicolons. Each declaration includes a CSS property name and a value, separated by a colon.
Example of a declaration is saved on my desktop
Write an CSS comment.
/* your comment */
External vs Embedded vs Inline style sheets
- Inline – CSS is the default style rules (closest to the element)
- Embedded – CSS is defined within a <style> tag in the head section of a document (further from the element)</style>
- External – CSS is defined with an separate file and linked, using a <link></link> tag, in the head section of a HTML document (futherest from the element)
Explain the Box Model
The box model treats each HTML element as a box with some global properties to create space around the contents of a HTML element
* Margin
* Border
* Padding
Explain div and span
Div and span is a generic block level element with no presentational or semantic value. Its purpose is to allow us to group together a number of elements so as to treat them as a single entity.
List and define the type of selectors.
- Element/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
Relative v Absolute measurement systems
- Absolute length units are fixed and will always appear at that size.
- Relative length units specify a length relative to another property.
Ordered list vs Unordered list
- An ordered list is a list in which items are numbered or lettered.
- An unordered list is a list in which items have no specific order
Name the list styles for ordered list
- Decimal
- Lower-roman
- Upper-roman
- lower-alpha
- upper-alpha
- None
Name the list styles for unordered list
- disc
- circle
- square
- none
Explain a description list
The default appearance is that each pair takes 2 lines:
*Term (name) on first line
*Description (value) indented on second line
Explain Pseudo classes
- A pseudo class is a keyword added to a selector the specifies a special state of the selected element. A pseudo class starts with a colon. Eg: visited.
- The main example of this is for representing the states a button has when a mouse moves over a link, selects a link, comes back from the link and denotes a visited link. These are called anchor pseudo-classes.
What is Relative Positioning?
An element with position : relative; is positioned relative to its normal position in the line of flow.
What is Absolute Positioning?
- An element with position : absolute; is positioned relative to its nearest positioned ancestor. If the element has no positioned ancestors then it uses the document body.
- When positioned absolute, an item is no longer in the line of flow. And is positioned using the X, Y, Z coordinates assigned to it.
What is Fixed Positioning?
- An element with position : fixed; is positioned relative to the viewport, which mean it always stays in the same location, even if the page is scrolled.
- When positioned fixed, an item is no longer in the line of flow. And is positioned using the X, Y, Z coordinates assigned to it.
What is Float?
Floats can be useful to allow content to flow around a smaller floating element (like an image for an article), but if we want more precise control over the location of elements, we need to use positioning.
What is Clear?
The clear property specifies on which sides of an element floating elements are not allowed to float. Clear is a companion property to float. Wherever you use floats you will probably also be using a clear.
What is z-order?
- When using positioning it is possible to stack overlapping items into the same space.
- This is possible with the use of the z-index property
- The plane in which the normal line of flow operates is at z-index : 0; A positive integer number represents a higher level coming out if the screen. A negative number represents a layer below the plane that contains the line of flow.