25
CSE3026: Software Engineering Lab 2 : Basic HTML Scott Uk-Jin Lee Software Engineering Lab Except where otherwise noted, the contents of this document are Copyright 2016 HyungLak Kim, , Scott Uk-Jin Lee. All rights reserved. Any redistribution, reproduction, transmission, or storage of part or all of the contents in any form is prohibited without the author's expressed written permission. 1

Lab 2 : Basic HTMLselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab2.pdf · 2016. 9. 21. · Lab 2: Basic HTML - create a basic “About Me” HTML page. Because of Privacy, you

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Lab 2 : Basic HTMLselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab2.pdf · 2016. 9. 21. · Lab 2: Basic HTML - create a basic “About Me” HTML page. Because of Privacy, you

CSE3026: Software Engineering

Lab 2 : Basic HTMLScott Uk-Jin Lee

Software Engineering Lab Except where otherwise noted, the contents of this document are Copyright 2016 HyungLak Kim, , Scott Uk-Jin Lee. All rights reserved. Any redistribution, reproduction, transmission, or storage of part or all of the contents in any form is prohibited without the author's expressed written permission.

1

Page 2: Lab 2 : Basic HTMLselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab2.pdf · 2016. 9. 21. · Lab 2: Basic HTML - create a basic “About Me” HTML page. Because of Privacy, you

Basic lab instruction• You are advised to look up syntax and examples from the lecture slides.

• Ask TA or your classmates for help, if needed.

• Talk to your classmates to share ideas; but do not copy or share code.

• Complete all of the exercises in the allotted time.

• Before you leave, check in with a TA to get credit for your work.

2

Page 3: Lab 2 : Basic HTMLselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab2.pdf · 2016. 9. 21. · Lab 2: Basic HTML - create a basic “About Me” HTML page. Because of Privacy, you

Text EditorsThere are text editors to create a web page • Notepad++

• Aptana Studio

• Sublime Text

• Atom (Mac OS Only)

• Intellij

3

Page 4: Lab 2 : Basic HTMLselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab2.pdf · 2016. 9. 21. · Lab 2: Basic HTML - create a basic “About Me” HTML page. Because of Privacy, you

Lab 2 exercisesLab 2: Basic HTML - create a basic “About Me” HTML page. Because of Privacy, you don’t need to use actual information about you. This lab is consist of followings:

1. Basic “About Me” Page 2. Courses @ HYU 3. Favorite Movie, Thing, and Quote 4. Fun Facts About My Neighbours 5. YouTube Video 6. Short Quiz 7. Validation Link 8. Validate Your Page 9. Upload your page

4

Page 5: Lab 2 : Basic HTMLselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab2.pdf · 2016. 9. 21. · Lab 2: Basic HTML - create a basic “About Me” HTML page. Because of Privacy, you

Ex 1: Basic “About ME” PageCreate a page “AboutMe.html” The page should include the followings.

• page title: About your name!

• character encoding: UTF-8

• page heading: your name

• favicon : attach your favorite icon or image

• add a horizontal line

5

Page 6: Lab 2 : Basic HTMLselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab2.pdf · 2016. 9. 21. · Lab 2: Basic HTML - create a basic “About Me” HTML page. Because of Privacy, you

Ex 1: exampleAbout Me

6

Page 7: Lab 2 : Basic HTMLselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab2.pdf · 2016. 9. 21. · Lab 2: Basic HTML - create a basic “About Me” HTML page. Because of Privacy, you

Ex 2: Courses @ HYUCreate a list of course that you are taking right now at HYU. This part of the page should include the followings. • heading: My Course@HYU

indicate that the abbreviation, HYU, stands for “hanyang University”

• unordered list in the form of - Course Code: Course Title

7

Page 8: Lab 2 : Basic HTMLselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab2.pdf · 2016. 9. 21. · Lab 2: Basic HTML - create a basic “About Me” HTML page. Because of Privacy, you

This part of the example page describes courses that Scott teaches.

Ex 2: Courses @ HYU

8

Page 9: Lab 2 : Basic HTMLselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab2.pdf · 2016. 9. 21. · Lab 2: Basic HTML - create a basic “About Me” HTML page. Because of Privacy, you

Ex 3: Favorite MoviesCreate a table of your 3 favorite movies in reverse order. This part of the page should include the followings: • make a link to an interesting site about each movie, such as its IMDB page

• look up the most favourite movie on imdb.com and reproduce director, genre, and stars information about the film in a nested list under that movie’s bullet. • These info is in short topic:-> value paris, such as Genre: Comedy.

• Therefore, represent it as an HTML definition list

9

Page 10: Lab 2 : Basic HTMLselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab2.pdf · 2016. 9. 21. · Lab 2: Basic HTML - create a basic “About Me” HTML page. Because of Privacy, you

Ex 3: Example

10

Page 11: Lab 2 : Basic HTMLselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab2.pdf · 2016. 9. 21. · Lab 2: Basic HTML - create a basic “About Me” HTML page. Because of Privacy, you

Ex 3: Favorite ThingPresent images of your 3 favorite things. This part of the page should include the followings: • choose your thing, such as cars, drinks, places, people, ... • select your 3 favorite things • look up images of the 3 things with Google Images • add breif description about the things and present them in your page

11

Page 12: Lab 2 : Basic HTMLselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab2.pdf · 2016. 9. 21. · Lab 2: Basic HTML - create a basic “About Me” HTML page. Because of Privacy, you

Ex 3: ExampleThis part of the example page describes Hyunglak’s 3 favourite cars.

12

Page 13: Lab 2 : Basic HTMLselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab2.pdf · 2016. 9. 21. · Lab 2: Basic HTML - create a basic “About Me” HTML page. Because of Privacy, you

Ex 3: Favorite QuotePresent your favorite quote. This part of the page should include the followings: • choose your favorite quote and present it in your page A. represent your quote using blockquote

B. wrap the text with double quotation marks

C. emphasize the person from whom this quote comes and add a horizontal line in front using character entity

13

Page 14: Lab 2 : Basic HTMLselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab2.pdf · 2016. 9. 21. · Lab 2: Basic HTML - create a basic “About Me” HTML page. Because of Privacy, you

Ex 3: ExampleThis part of the example page describes Hyunglak’s favourite quote.

14

Page 15: Lab 2 : Basic HTMLselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab2.pdf · 2016. 9. 21. · Lab 2: Basic HTML - create a basic “About Me” HTML page. Because of Privacy, you

Ex 4: Fun Facts About NeighboursCreate a table that presents fun facts about your neighbours. This part of the page should include the followings: • the table with : A. caption describing the table

B. First Name and Facts as headings

C. use deleted and inserted texts

15

Page 16: Lab 2 : Basic HTMLselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab2.pdf · 2016. 9. 21. · Lab 2: Basic HTML - create a basic “About Me” HTML page. Because of Privacy, you

Ex 4: ExampleThis part of the example page describes fun facts about Hyunglak's SE Lab intern members.

16

Page 17: Lab 2 : Basic HTMLselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab2.pdf · 2016. 9. 21. · Lab 2: Basic HTML - create a basic “About Me” HTML page. Because of Privacy, you

Ex 5: YouTube VideoEmbed a YouTube video that you like: • select any YouTube video that you like and embed it in your page A. use iframe element of HTML5

B. chosen video must be playable when embedded

C. present a short description about the chosen video

17

Page 18: Lab 2 : Basic HTMLselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab2.pdf · 2016. 9. 21. · Lab 2: Basic HTML - create a basic “About Me” HTML page. Because of Privacy, you

Ex 5: ExampleThis part of the example page shows a short Youtube video embed in Hyunglak's "About Me" page.

18

Page 19: Lab 2 : Basic HTMLselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab2.pdf · 2016. 9. 21. · Lab 2: Basic HTML - create a basic “About Me” HTML page. Because of Privacy, you

Ex 6: Additional ContentPresent an additional content to your page. This part of the page should include the followings: • use one of new features in HTML5

19

Page 20: Lab 2 : Basic HTMLselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab2.pdf · 2016. 9. 21. · Lab 2: Basic HTML - create a basic “About Me” HTML page. Because of Privacy, you

Ex 6: ExampleThis part of the example page shows Hyunglak's favorite jazz song embedded in his "About Me" page.

20

Page 21: Lab 2 : Basic HTMLselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab2.pdf · 2016. 9. 21. · Lab 2: Basic HTML - create a basic “About Me” HTML page. Because of Privacy, you

Ex 7: Validation LinksAdd links on your page to the HTML using the URLs below. • image: http://selab.hanyang.ac.kr/courses/cse326/2016/problems/images/w3c-html.png

• link URL: https://validator.w3.org

• image : http://selab.hanyang.ac.kr/courses/cse326/2016/problems/images/w3c-css.png

• link URL: https://jigsaw.w3.org/css-validator

(These links work only if you view your page on server, not on your computer's hard drive.)

21

Page 22: Lab 2 : Basic HTMLselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab2.pdf · 2016. 9. 21. · Lab 2: Basic HTML - create a basic “About Me” HTML page. Because of Privacy, you

Ex 7: example

22

Page 23: Lab 2 : Basic HTMLselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab2.pdf · 2016. 9. 21. · Lab 2: Basic HTML - create a basic “About Me” HTML page. Because of Privacy, you

Ex 8: Validate your pageValidate the syntax of your HTML code

1. open http://validator.w3.org

2. validate your page by either • “Validate by File Upload” and then browse to your AboutMe.html file

• “Validate by Direct Input” and then copy.paste your code into the text box

3. If there are any errors, fix them all • try to get the green bar for 0 errors. “Warnings” are ok

• if you do not understand the error messages, ask TA for help

23

Page 24: Lab 2 : Basic HTMLselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab2.pdf · 2016. 9. 21. · Lab 2: Basic HTML - create a basic “About Me” HTML page. Because of Privacy, you

Ex 9: Upload your page• Use git and upload your page to your program file • Put your files in a folder named lab2 within git hub folder

• Check the page by viewing it in the git.

24

Page 25: Lab 2 : Basic HTMLselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab2.pdf · 2016. 9. 21. · Lab 2: Basic HTML - create a basic “About Me” HTML page. Because of Privacy, you

If you finish them all…If you finish all the exercises:

1. you can add any other content you like to your page

2. check in with a TA to get credit for your work

3. submit your file to TA’s email(Hyunglak Kim: [email protected] or Gichan Lee: [email protected])(email title - [CSE3026]Lab02-2016xxxxYOURNAME_Finish)

4. you may be able to be dismissed

If you don’t finish all the exercises on time: 1. go home and finish all the exercises

2. submit your result to TA’s email (Hyunglak Kim: [email protected] or Gichan Lee: [email protected]) until midnight and you can get some marks but not full marks (email title - [CSE3026]Lab02-2016xxxxYOURNAME_Late)

3. you can’t get any marks if you submit result after midnight.

Great Work!25