COMP101 – Exploring Multimedia and Internet Computing LA2 (Thur 14:00 – 16:50) TA: Jackie Lo
Lecture Review HTML attributes Keyword placed inside angular brackets of the opening tag E.g. align, size
Lecture Review Color attribute 6 hexadecimal numbers E.g. #FFFF00, #FFFFFF, #FF “ Web-safe ” colors
Lecture Review Image attributes src for file name of image width for width of image height for height of image alt for text description when mouse pointing align for fitting text around image
Lecture Review body attribute background for file name of background image
Lecture Review Style sheets In-line style: the style attribute in tags Internal style sheet: in the “ head ” section applying to the HTML page ONLY External style sheet: in a separate file with.css extension applying to pages that link to it
Lecture Review css In-line > Internal > External i.e. in-line styles will override all other styles selector attributes class for a number of elements that belong to the same class Use “. ” in external style sheets id for a particular element Use “ # ” in external style sheets
Lecture Review Page layout to define a sector on the webpage Use CSS to define the size, location, and background color of the box
Lecture Review XHTML Invalid HTML pages is harmful to web development XHTML define strict rules to solve the problem
Lecture Review All tags and attributes should be in lower case All open tags must be closed exceptions: ,,, All attribute values must be quoted Use id instead of name