Webtek Lectures
Tags:IT2805 - 
    2-TheoryClient-Server Architecture, client -> server -> client repeat - How the internet works: TCP/IP protocol, domain, ip address and DNS
- WWW
- HTML - markup language - tags/elements
 
- 
    3-HTMLHTML basics: - strong for bold text
- q/blockquote for quotes
- abbr for acronyms
- address for physical/digital addresses
- dl, dt, dd - defintition list, gives definition of items
- Tips for images:
        - right format
- right size
- pixels
 
- Caption image with figure and figcaption
- Tips for tables:
        - attribute colspan and rowspan
 
- Site map - a website guide/map
 
- 
    3-URLs- Protocol: http://
- Domain name: www.example.com
- path to file: /path/to/myfile.html
- parameters: ..to/myfile.html?key1=value1&key2=value2...
- Form GET gives us parameters on our URL starting with ‘?’
- Anchor: #targetId
- Storyboarding
 
- Protocol: 
- 
    4-CSS-Intro- XHTML - lowercase elements, closed with /, quotes""for attributes and need to havehtml, head, body
- Box model
- Selector - declaration - property - value
- External < internal/embeded < inline
- !important ;to override
- The more specific rules applies, meaning tag < class < id
- Inherit from parents
 
- XHTML - lowercase elements, closed with 
- 
    4-CSS-Selector/Properties- CSS sees HTML as box model
- learn selectors using CSSDiner
- p a vs p>a, is that p atakes any child element, whilep>atakes only the immediate child element inside it’s nest.
- +for adjacent sibling elements, while- ~selects all sibling elements
- Pseudo-class: :selects an element based on state
- Pseudo-element: ::selector
- inline > id > class,pseudo > element/tag
 Position: - static: default, each block element on top of next one
- relative: in relation to where it would be in normal flow
- absolute: taken out of it’s normal flow, no longer affects other elements positions, still in relation to the document, meaning scrolling will affect
- fixed: absolute, but in relation to the broswers window
 
- 
    5-Multimedia- Balance between size and quality
- gif, jpeg, png, svg
- Non-interlaced graphic: loads from none slides down to whole image.
- Interlaced graphic: starts blurry, gradually comes into focus.
- Good practice: Background image < 20kb
- Think hotspot, where will the users viewpoint be at?
- imagemaps: <area shape=“shape” coords=“coordinates” href=“url” alt=“text”/>
 <img src=“supersite.gif” usemap=“#map1”> <map name=“map1”> <area coords=“0,0,50,50” href=“topleft.html”> <area coords=“50,50,80,80” href=“bottomright.html”> </map>- wav, mp3, wma, ogg, midi
- mp4, webm, ogg
 
- 
    6-Forms- input types: text:password:numberand so on,checkboxandradio
- textarea tag
- fieldset and legend tag
- option tag with select: dropdown
- Form methods: POSTandGET,POSThigher character limit, URL doesn’t get changed.
- Form validation, attribute required
 
- input types: 
- 
    6-InspectorSchneiderman’s eight golden rules of usability:- Strive for constistency - design/layour
- Cater to Universal Usability - easily for all ability levels to use
- Offer informative feedback - what wrong, what’s right? click, select, events and so on.
- Design dialogs to yield closure - talk to the user as feedback
- Prevent Errors
- Permit easy reversal of actions - good navigation flow back and forth
- Support internal locus of control - know where we are in the navigation/current page. home, about …
- Reduce short term memory (load)
 More: - No broken links
- Make important information easiest to find
- Provide hierarchy of information
- Use white space, have space for your website
- F-shape / E-shape - visuals matter (banner-blindness)
- Being different might cost you - links(blue) for instance. devtools
 
- 
    n-JavascriptSchneiderman’s eight golden rules of usability:JSONP Python as server using -m ** port