Lesson 4 Exercise:

Define inline  method of adding style. 

Inline CSS is used inside the html of each page at the point where a particular look is required.  The .css script defines the look of the fonts or text at the spot for the sentence or the paragraph.

 

Lesson 4 requirements listed above each paragraph ...

First paragraph = title H2, color green, Arial font, paragraph 10 px, sienna

1.Rationale and original idea

1- The main purpose of Daylight Saving Time (called "Summer Time" in many places in the world) is to make better use of daylight. We change our clocks during the summer months to move an hour of daylight from the morning to the evening. Countries have different change dates. Glide your cursor over the map to see how changing the clocks affects different latitudes.

Second paragraph = title H2, red, Verdana font, paragraph 12 px, black

2.Opposition to Daylight Saving

2- People occasionally complain about Daylight Saving Time. Frequent complaints are the inconvenience of changing many clocks and adjusting to a new sleep schedule. For most people, this is a mere nuisance, but some people with sleep disorders find this transition very difficult.

Third paragraph = no style

3- Another complaint is sometimes put forth by people who wake at dawn, or whose schedules are otherwise tied to sunrise, such as farmers. Farmers often dislike the clocks changing mid-year. Canadian poultry producer Marty Notenbomer notes, "The chickens do not adapt to the changed clock until several weeks have gone by, so the first week of April and the last week of October are very frustrating for us."

Forth paragraph = title H2, blue, Garamond font, paragraph 10 px, bolder

3.Idea of Daylight Saving Time

4- The idea of daylight saving was first conceived by Benjamin Franklin (portrait at right) during his sojourn as an American delegate in Paris in 1784, in an essay, "An Economical Project." Read more about Franklin's essay. Some of Franklin's friends, inventors of a new kind of oil lamp, were so taken by the scheme that they continued corresponding with Franklin even after he returned to America.

Fifth paragraph = Garamond font, paragraph 20 px, underlined

5- The idea was first advocated seriously by London builder William Willett (1857-1915) in the pamphlet, "Waste of Daylight" (1907), that proposed advancing clocks 20 minutes on each of four Sundays in April, and retarding them by the same amount on four Sundays in September. As he was taking an early morning a ride through Petts Wood, near Croydon, Willett was struck by the fact that the blinds of nearby houses were closed, even though the sun was fully risen. When questioned as to why he didn't simply get up an hour earlier, Willett replied with typical British humor, "What?" In his pamphlet "The Waste of Daylight" he wrote:

Sixth (last) paragraph  - The last paragraph (what he wrote) leave as is.

"Everyone appreciates the long, light evenings. Everyone laments their shortage as Autumn approaches; and everyone has given utterance to regret that the clear, bright light of an early morning during Spring and Summer months is so seldom seen or used."



BONUS POINT EXERCISES


This is the original box we used to apply the shadow filter. Notice how adding the padding adds space and changes the positioning of the box on the page. This box is 350px wide.
This is not the original box but a modified version with a shadow filter. Notice how adding the padding adds space and changes the positioning of the box on the page. This box is 600 px wide.