1methodological_instructions_ 1 variant
Оценка 5

1methodological_instructions_ 1 variant

Оценка 5
1methodological_instructions_ 1 variant
1methodological_instructions_ 1 variant.doc

Methodological Instructions

Theme: CSS

Aim: use CSS in web-development

Assessment criteria

- Demonstrates the skill of creating, saving and opening your own webpage.

- Demonstrates knowledge of web document structure

- Uses CSS for the webpage

Basic Level:

Tags, document structure

Key words and phrases:

      Website, webpage, HTML, CSS, tag, cascading style sheet

      HTML is used for ,,,,

      We use tags for ....

      Tags are ...

      I used (a) title tag ... to ...

      Cascading style sheet is designed to


I.                   Theory

CSS Rules

CSS rules are made up of a selector and at least one declaration. A selector is the code that selects the HTML to which you want to apply the style rule. We'll be focusing on common selectors in this tutorial, but you can use more than a dozen selector types as you become more proficient at CSS. A declaration is made up of at least one CSS property and related property value. CSS properties define the style:

h1 {color: red;}

The H1 is the selector for your h1 headers, and the declaration is made up of the color property with a value of red. Simply said, this rule turns all H1 elements red. You'll note that the syntax of the style rule looks different from what you've seen in HTML. The curly braces contain the declarations, each property is followed by a colon, and a semicolon is used after each property. You can have as many properties as you want in a rule.

Applying CSS

Six types of style sheets exist:

Browser style This is the default style sheet within a browser. If you declare no style rules, these defaults are applied.

User style A user can write a style sheet and make it override any styles you create by changing a setting in the browser. These are used infrequently but can be helpful for individuals with special needs, such as low vision. In such a case, the user will create high-contrast, large-font styles that override your own.

Inline style This is style that is used right in the individual element and applied via the style attribute. It can be very useful for one-time styles by element, but it isn't considered ideal.

Embedded style This is style that controls one document and is placed inside the style element within the HTML document.

Linked style This is a style sheet that is linked to an HTML document using the link element in the head of the document. Any document linked to this style sheet gets the styles, and here's where the management power of CSS is found.

Imported style This is similar to linked styles, but it enables you to import styles into a linked style sheet as well as directly into a document. This is useful in workarounds and when managing many documents.

You'll see examples of these style sheets as we progress throughout the tutorial.

The Cascade

People often wonder where the term cascading comes from. The cascade is an application hierarchy, which is a fancy term for a system of how rules are applied. If you examine the five types of style sheets just introduced, you'll notice that there are numerous means of applying style to the same document.

What if I've got an inline style, an embedded style sheet, and a linked style sheet? The cascade determines how the rules are applied. In the case of style sheet types, user style overrides all other styles; inline style trumps embedded, linked, and imported styles; embedded style takes precedence over inline style; and linked and imported styles are treated equally, applying everywhere any of these other style sheet types are not applied. Browser style comes into play only if no style for a given element is provided; in that case, the browser style is applied.

The cascade also refers to the manner in which multiple style sheets are applied. If you have three linked style sheets, the one on the bottom is the one that is interpreted if any conflicts exist among those styles.


Inheritance means that styles are inherited from their parent elements. Consider the following:


<h1>My header</h1>

<p>Subsequent Text</p>


Both the h1 and p elements are considered children of the body element. The styles you give to the body will be inherited by the children until you make another rule that overrides the inherited style. Not all properties, such as margins and padding, are inherited in CSS but almost all others are.


Finally, if there are conflicts within any of your style sheets that aren't resolved by the cascade, CSS has an algorithm that resolves the conflict. This algorithm is based on how specific a rule is. It's a bit heavy for this discussion but worthy of mention.

Obviously, two pages can't really do justice to any of these topics, so if you're interested in learning more, be sure to look at the Additional Resources section.

Visual Aids and Materials.

1.      Slides

2.      https://www.shodor.org/succeed/curriculum/apprenticeship/Graphics/CSS/LessonPlan/

3.      https://www.brainbell.com/tutorials/HTML_and_CSS/CSS_Theory_Simplified.htm

4.      https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS

5.      http://underpop.online.fr/w/webdesign/css-theory.php

6.      http://code.mu/books/css/

7.      https://www.w3schools.com/css/css_intro.asp

8.      https://www.tutorialspoint.com/css/


Скачано с www.znanio.ru

Methodological Instructions

Methodological Instructions

Inline style This is style that is used right in the individual element and applied via the style attribute

Inline style This is style that is used right in the individual element and applied via the style attribute

Not all properties, such as margins and padding, are inherited in

Not all properties, such as margins and padding, are inherited in
Скачать файл