COMP 101 Spring 2017 EXAM 2 2 March 2017

Similar documents
GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar

GIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST

Create a Web Page with Spry Navigation Bar. March 30, 2010

COMP 524 Spring 2018 Midterm Thursday, March 1

Wanted! Introduction. Step 1: Styling your poster. Activity Checklist. In this project, you ll learn how to make your own poster.

Block & Inline Elements

What is the Box Model?

CSS Design and Layout Basic Exercise instructions. Today's exercises. Part 1: Arrange Page into Sections. Part 1, details (screenshot below)

Styles, Style Sheets, the Box Model and Liquid Layout

Introduction to WEB PROGRAMMING

COMP 101 Spring 2017 Final Exam Section 1 Friday, May 5

Guidelines for doing the short exercises

<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***

Proper_Name Final Exam December 21, 2005 CS-081/Vickery Page 1 of 4

ICT IGCSE Practical Revision Presentation Web Authoring

CSS Exercises. Create a basic CSS layout Use BlueFish to open layout.html Create a layout using <div> tags Use a browser (Firefox) to view your page

Web Design and Development ACS Chapter 12. Using Tables 11/23/2017 1

CSS: Lists, Tables and the Box Model

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar with Dynamic Background Image

Adding CSS to your HTML

AGENDA :: MULTIMEDIA TOOLS :: (1382) :: CLASS NOTES

CSS Box Model. Cascading Style Sheets

WEBSITE PROJECT 2 PURPOSE: INSTRUCTIONS: REQUIREMENTS:

Create a three column layout using CSS, divs and floating

Final Exam Study Guide

CSS worksheet. JMC 105 Drake University

NAVIGATION INSTRUCTIONS

Positioning in CSS: There are 5 different ways we can set our position:

Using CSS for page layout

CS7026 CSS3. CSS3 Graphics Effects

GIMP WEB 2.0 BUTTONS

CSS Selectors. element selectors. .class selectors. #id selectors

Session 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style

The default style for an unordered (bulleted) list is the bullet, or dot. You can change the style to either a square or a circle as follows:

FLOATING AND POSITIONING

ORB Education Quality Teaching Resources

COMM 2555: Interactive Digital Communication / Spring 2018 Lab 9: Basic layout techniques with CSS

Perfect Student Midterm Exam March 20, 2007 Student ID: 9999 Exam: 7434 CS-081/Vickery Page 1 of 5

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

3. Each of these mark examples contains an error. a. <input name= country value= Your country here. /> b. <checkbox name= color value= teal />

Exam II CIS 228: The Internet Prof. St. John Lehman College City University of New York 5 November 2009

Fundamentals of Web Technologies. Agenda: CSS Layout (Box Model) CSS Layout: Box Model. All HTML elements can be considered as a box or a container

Welcome Please sit on alternating rows. powered by lucid & no.dots.nl/student

Web Site Design and Development Lecture 7. CS 0134 Fall 2018 Tues and Thurs 1:00 2:15PM

CSS: Layout Part 2. clear. CSS for layout and formatting: clear

ITNP43: HTML Lecture 5

Introduction to Web Design CSS Reference

Zen Garden. CSS Zen Garden

Introduction to Web Design CSS Reference

When you complete this chapter, you will be able to:

ICT IGCSE Practical Revision Presentation Web Authoring

TUTORIAL MADCAP FLARE Tripane and PDF

CSCU9B2: Web Tech Lecture 3

Introduction to Computer Science Web Development

Responsive web design (RWD) CSS3 Media queries. Mobile vs desktop web sites. Web Development 1 CS1115/CS5002

CSS.

CSS: The Basics CISC 282 September 20, 2014

ADDING CSS TO YOUR HTML DOCUMENT. A FEW CSS VALUES (colour, size and the box model)

Produced by. Web Development. Eamonn de Leastar Department of Computing, Maths & Physics Waterford Institute of Technology

HTML and CSS a further introduction

<body bgcolor=" " fgcolor=" " link=" " vlink=" " alink=" "> These body attributes have now been deprecated, and should not be used in XHTML.

Lab 1: Introducing HTML5 and CSS3

Building Page Layouts

ADOBE 9A Adobe Dreamweaver CS4 ACE.

CSS Cascading Style Sheets

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

Introduction to Multimedia. MMP100 Spring 2016 thiserichagan.com/mmp100

Responsive Web Design (RWD)

.hedgehog { background-image: url(backyard.jpg); color: #ffff99; height: 6in; width: 12in; } .tube {

Cascading Style Sheets (CSS)

Web Programming and Design. MPT Senior Cycle Tutor: Tamara Week 2

The Importance of the CSS Box Model

Cascading Style Sheets for layout II CS7026

CIS 228 (Spring, 2012) Final, 5/17/12

Getting Started with Eric Meyer's CSS Sculptor 1.0

Downloads: Google Chrome Browser (Free) - Adobe Brackets (Free) -

Multimedia Systems and Technologies Lab class 6 HTML 5 + CSS 3

Cascading Style Sheets CSCI 311

COSC 2206 Internet Tools. CSS Cascading Style Sheets

Designing the Home Page and Creating Additional Pages

Page Layout Using Tables

CE419 Web Programming. Session 3: HTML (contd.), CSS

Problem Description Earned Max 1 HTML/CSS Interpretation 30 2 HTML/CSS Programming 30 3 JavaScript Programming 40 X Extra Credit +1 TOTAL 100

Reading 2.2 Cascading Style Sheets

UNIVERSITI TEKNOLOGI MALAYSIA TEST 1 SEMESTER II 2012/2013

CSS Cheat Sheet Version: 10 Last revision date:

Teach Yourself HTML5 & CSS 3: Week 5 Task 13 - Anchors Part 3

Cascading Style Sheets Level 2

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar. Hover Effect:

HTML Organizing Page Content

COMP519 Web Programming Lecture 8: Cascading Style Sheets: Part 4 Handouts

CIS 228 (Fall, 2012) Exam 2, 11/20/12

Student, Perfect CS-081 Final Exam May 21, 2010 Student ID: 9999 Exam ID: 3122 Page 1 of 6 Instructions:

What do we mean by layouts?

CSc 337 LECTURE 15: REVIEW

Stickers! Introduction. Step 1: Colourful coding sticker

Chapter 3 Style Sheets: CSS

Layout with Layers and CSS

Outline. Link HTML With Style Sheets &6&7XWRULDO &66 ;+70/ (GZDUG;LD

KillTest *KIJGT 3WCNKV[ $GVVGT 5GTXKEG Q&A NZZV ]]] QORRZKYZ IUS =K ULLKX LXKK [VJGZK YKX\OIK LUX UTK _KGX

Transcription:

Name PID COMP 101 Spring 2017 EXAM 2 2 March 2017 This exam is open note, open book and open computer. It is not open people. You are welcome and encouraged to use all of the resources that you have been using all semester. You are to submit this exam through gradescope. Resubmissions have been enabled. It is an honor code violation to submit an update past the time allocated for the exam. Remember to save your work often. If you are having difficulty saving as a pdf, print the file but save it as a pdf. Each question is worth 10 points. You only need to answer 10 of the 12 questions. If you answer more than 10 questions, the highest 10 will be used. By submitting this exam, you are pledging that you have neither given nor received unauthorized help.

1. Write the HTML to create a link to the UNC website that uses an image, called leftarrow.svg, as the element to click on.

2. Write the CSS needed to position this div such that it is all the way to the left of the window and its top is 25% of the way from the bottom of the window. <div class=warning> <p>warning: laughing can cause uncontrollable mirth.</p> </div>

3. The provided CSS creates a blue gradient circle. Given the following HTML and CSS, you are to add classes to the HTML (nothing else) and write additional CSS (do not change the given CSS), to create two stacks of circles at the sides of the window. HTML: <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> CSS: div { background: radial-gradient(circle, #000080, #3333ff, #e6e6ff); height: 100px; width: 100px; border-radius: 50px; margin: 5px 0px; } That is, the result will look like

4. You have an image that is 700px x 800px and it is to be displayed inside of a figure. The relevant HTML snippet is <figure> <img src="washington.jpg" alt="george"> </figure> You are to write the CSS to display the image with a width of 350px and a solid orange border of 5px (no padding). The figure is to have a 5px solid green border and there is to be no space between the two borders. Hint: use pixel sizes, not percentages. The output will look like

5. You have 3 pages for your website all of which are styled the same except that they have different background images. The pages and their background images are: water.html uses waves.jpg earth.html uses forest.png fire.html uses flame.gif All of the images are stored in a subfolder called backgrounds. You want to use the same CSS for all of them and you want the images stretched to cover the full window. Write the body tag (just the one tag) for each of the pages and the css needed for those body tags. water.html earth.html fire.html css

6. Convert the following CSS to use only the hexadecimal format. Remember that the w3schools CSS color page provides hexadecimal equivalences for color names. W3schools also has a color converter page. body { background: azure; color: darkblue; ) div.content { border: 2px double rgb(47, 79, 79); border-radius: 25px; } div#banana { background: yellow; }

7. Write the HTML for displaying a video file called AnimalSounds.mp4 that is stored in a subfolder called Sounds. It should controls displayed and should be formatted with the following CSS:.highlighted { width: 500px; float: left; padding-right: 10px; }

8. Write the HTML for a button that when clicked generates an alert that prints You pressed the button!

9. Create the HTML for a figure that contains an image (Addition.JPG in the same folder as the page) with the figure caption Addition above the image. When the caption is clicked on, it generates an alert that prints The answer is: and the sum of 652 and 471. The sum is to be left as an expression to be computed. The result (with some formatting) could look like this:

10. You have an image with a caption centered below it that you want to float left. The image is in manatee.jpeg in the same folder as the page and the caption is Sea Cows. Write the HTML and CSS needed to make this happen.

11. You have an image called green_button.png that is 126px wide and 26px tall. Write the CSS that will use the image as the background for the button displayed with this HTML: <button class=green type=button>click</button>

12. Create a horizontal navigation bar from the following snippet be writing the correct CSS. You should assume that there are other lists and links on the page that you do not want to change and you may not change the HTML. <nav> <ul> <li><a href="who.html">who</a></li> <li><a href="where.html">where</a></li> <li><a href="when.html">when</a></li> </ul> </nav> The navigation bar should be all the way to the left edge and the list items should be next to each other. Do not worry if the there is a line between them. The text should be in white with a black background. There should be no underlining of the links. The text should be white and the background black. Colors should not change after the link is. The formatted navigation bar should look like