tm 2nd quarter - 1st meeting(html backgrounds)

17
HTML Backgrounds Learning by examples: by: Engr. Esmeraldo T. Guimbarda Jr.

Upload: esmeraldo-jr-guimbarda

Post on 04-Jul-2015

79 views

Category:

Education


0 download

DESCRIPTION

HTML Backgrounds

TRANSCRIPT

Page 1: TM 2nd Quarter - 1st meeting(html backgrounds)

HTML BackgroundsLearning by examples:

by: Engr. Esmeraldo T. Guimbarda Jr.

Page 2: TM 2nd Quarter - 1st meeting(html backgrounds)

Activity:1. Open Notepad++. Click on Start > All Programs > Notepad++ folder > Notepad++.

Page 3: TM 2nd Quarter - 1st meeting(html backgrounds)

2. Create a new HTML file by clicking File > New, or pressing Ctrl+N on your keyboard.

Page 4: TM 2nd Quarter - 1st meeting(html backgrounds)

3. Save the file as “background.html”.

To save the file, go to File > Save As. Type “background.html” in the File name box. Select Hypertext Markup Language file in the Save as type selection menu. Save the file in your desktop.

Page 5: TM 2nd Quarter - 1st meeting(html backgrounds)

4. Type the basic skeleton code of an HTML document.

Page 6: TM 2nd Quarter - 1st meeting(html backgrounds)

5. Define the title as “SJS Philosophy Of Education”.

Page 7: TM 2nd Quarter - 1st meeting(html backgrounds)

6. inside the body tag, create a heading <h1> and type “SJS Philosophy Of Education”.

Page 8: TM 2nd Quarter - 1st meeting(html backgrounds)

7. under the heading <h1>, create a paragraph <p> then type in the philosophy of education of St. Joseph School.

Page 9: TM 2nd Quarter - 1st meeting(html backgrounds)

8. Add the style tag <style> at the head <head> section, and create the ID’s.

Page 10: TM 2nd Quarter - 1st meeting(html backgrounds)

9. Inside #PhilosophyID set width to 50%, margin-right to auto, margin-left to auto, text-align to center & color to yellow;

Page 11: TM 2nd Quarter - 1st meeting(html backgrounds)

10. Create a division <div> to your paragraph <p>. Set division ID to PhilosophyID

Page 12: TM 2nd Quarter - 1st meeting(html backgrounds)

11. Start adding the background to the body <body>. Change the background color to gray.

Page 13: TM 2nd Quarter - 1st meeting(html backgrounds)

12. Add the provided background image, sjslogo.png

Page 14: TM 2nd Quarter - 1st meeting(html backgrounds)

13. Set the background-repeat property to no-repeat. Set the image’s position to center & Set the background-attachment property to fixed

Page 15: TM 2nd Quarter - 1st meeting(html backgrounds)

14. Save the file by clicking File > Save or pressing Ctrl + S on your keyboard.

Page 16: TM 2nd Quarter - 1st meeting(html backgrounds)

15. Open the HTML file to your browser by clicking Run > Lunch in Chrome or Lunch in Firefox on your Notepad++

Page 17: TM 2nd Quarter - 1st meeting(html backgrounds)

OUTPUT: