Interactive Design - Lectures and Exercises
Tan Zhao Yi / 0363285
Interactive Design / Bachelor of Design (Honours) in Creative Media
Lectures and Exercises
- The effectivity, efficient, and successfulness a particular user can utilise a product or design in a certain situation
- User are able to achieve objective easily without relying expert knowledge
- Key principle of Usability: Consistency, Simplicity, Visibility, Feedback and Error Prevention
Users should know, just by looking at an interface, what their options are and how to access them.
D. FeedbackHeader
- Top section of webpage
- Contains logo, navigation menu and contact information
- Main content area
- Contains multimedia elements like links, text, images, videos, C2A buttons etc.
- Proper organisation is important for readability
- Bottom of a webpage
- Contains copyright information, links to important page and contact details
- Webpage closure / additional navigation options
Navigation Menu - Clear and concise labels for menu items, considering dropdown menus for complex sites
- Up to six levels
- Ordered List
- Unordered List
- Nested List
- Needs attribute: href
- Attribute
- ONLY added in open tags
- property + "value"
- Link to a new tab: <a href="link" target="_blank">text</a>
ID and Class attribute
- ID attribute (=student id)
- Unique - no two element have same ID value
- Class
- All elements can have class attribute
- Lowercase text only, no numbers
Block element (block level element)
- Always appear in a new line
- Each new element will take up the whole space in the webpage
- Exp: <h1> <p>
Inline element - opposite of block element
- Appears continue on the same line
- Exp: <img> <a> <em>
CSS
- Allows to create sets of rule to your html
- Change background colour, typeface, font size etc.
- A CSS rule contains 2 parts: selector + declaration
- Type out: Use { } to type your style declaration - specify it’s CSS
Selector: Which element that rule applies to. (All the html element that u want to change )
Declaration: How the elements referred to in the selector should be styled.
Property: value;
Exp: font-family: Arial;
Color: yellow;
Lecture 6: CSS Selector
- Target & style HTML elements
- Define which elements should receive specific styles (colours, fonts, spacing etc.)
- Enable to control the presentation and layout of a web page
- Universal Selector
- Select all elements on the page
- Presented by an asterisk (*)
- Element Selector
- Simplest type of selector
- Targets elements by their tag name
- ID Selector
- Targets with a specific id attribute
- IDs must be unique within an HTML doc
- Use # symbol followed by ID name
- Class Selector
- Targets with a specific class attribute
- Use . Symbol followed by class name
- Descendant Selector
- Selects an element that is a descendant of another element
- Specify a hierarchy of elements targeted
- Child Selector
- Selects element that are direct children of another element
- Use >
- Pseudo-class Selector
- Selects elements based on their state / position in relation to other elements
- Common pseudo-class: :hover, :active, :link, :focus, :nth-child(n)
- Pseudo-element Selector
- Selects parts of an element rather than the element itself
- Common pseudo-element: ::before, ::after (used to add content before / after an element)
Reason of having selectors:
A. Structure
B. Attribute-based selection
C. Pseudo-classes and Pseudo-elements
D. Responsive Design
E. Stateful Interactions
F. Cross-browser compatibility
G. Ease of maintenance
H. Accessibility (readability & usability)
Lecture 7: Box Model
As the cover page is a short video, so I decided to download a tennis picture from Pexels to correspond the topic.
![]() |
Fig 2.1.3. Original Website Cover Page |
![]() |
Fig 2.1.4. Replacing Image |
There're few different typeface used in this website. In the navigation bar, I am using Mukta Mahee, and drew the search button with a pen tool.
![]() |
Fig 2.1.5. Navigation Bar Typeface Comparison |
![]() |
Fig 2.1.6. Cover Button Typeface Comparison |
1. Create an HTML file named "index.html."
2. Create a section that displays the following information:
- Recipe title
- Include necessary images for the page
- List of ingredients
- Step-by-step cooking instructions
4. Apply CSS rules to style your recipe card.
5. Use CSS selectors such as element selectors (e.g., body, h1, ul), class selectors (e.g., .recipe-title, .ingredient-list), and ID selectors (e.g., #instructions) to style different parts of the card.
![]() |
Fig 3.1.1. allrecipes website |
![]() |
Fig 3.1.2. Simply Recipes website |
![]() |
Fig 3.2.2. Main heading HTML |
![]() |
Fig 3.2.3. Recipe Introduction HTML |
![]() |
Fig 3.2.4. Ingredient List HTML |
![]() |
Fig 3.2.5. Step-by-step Instruction and Image HTML |
![]() |
Fig 3.2.6. QNA Session HTML |
![]() |
Fig 3.2.7. Nutrition List HTML |
![]() |
Fig 3.3.4. Step-by-step Instructions and Images |
![]() |
Fig 3.3.6. Nutritions Bar |
CSS File View
![]() |
Fig 3.3.7. CSS used in header |
![]() |
Fig 3.3.11. Final Recipe Card |
Comments
Post a Comment