Information and Communication Technology (9-1) - 0983 CIE

Use Stylesheets

Bayani Gaba-gaba

If HTML decides what is on a page, CSS decides how it looks. Cascading Style Sheets let you set the fonts, colours, spacing and alignment of your elements, and the clever part is the word cascading: when several styles could apply to the same element, clear rules decide which one wins. Write your styles once in an external file and you can give a whole website a consistent, professional look from a single place.

In this lesson you will learn the three ways to apply CSS (inline, internal and external) and the order of precedence between them, the syntax of a CSS rule with its selector and declarations, how to target elements, classes and ids, and the properties for fonts, colour, alignment and backgrounds. You will also see why external stylesheets must be linked with relative file paths.

Manufura

  1. Use CSS in the presentation layer.
  2. Create the presentation layer of a web page Create generic external styles and inline style attributes including: • background properties including colour, images • font properties • table, table row, table header and table data properties including size, background colour, horizontal and vertical alignment, spacing, padding, borders: including collapsed, colour, thickness, visible/invisible Create classes including: • background properties including colour, images • font properties • table, table row and table data properties including size, background colour, horizontal and vertical alignment, spacing, padding, borders: including collapsed, colour, thickness, visible/invisible Create external styles to be tagged in a web page including h1, h2, h3, p, li Specify the font properties including font family, size, colour, alignment, bold, italic Attach comments to an external stylesheet Save styles in cascading stylesheet format.
  3. The use of CSS in the presentation layer.
  4. Characteristics of cascading stylesheets including the difference between attached stylesheets and inline style attributes, the hierarchy of multiple attached stylesheets and inline styles within a web page Characteristics of a style and a class including the difference between them Reason relative file paths must be used for attached stylesheets.

Takardar Darasi

Styling kept in its own stylesheet is what makes a website easy to maintain and consistent across every page. Change one rule and every page that links the stylesheet updates at once. In the practical papers you create external stylesheets to a precise specification and attach them correctly, so understanding CSS syntax, the cascade and the difference between styles and classes is exactly what is being tested.

Akwai a cikin manhajar Green Bridge

Zazzage manhajar Green Bridge CBT a wayar ka ko kwamfyuta ka don samun cikakkiyar bayanan darasi, tambayoyin aiki, da ƙari.

Cikakkiyar bayanan darasi tare da zane-zane
Mataimakiyar koyo da AI
Yi karatu ba tare da intanet ba, a kowane lokaci, a ko'ina
Akwai a Android, Windows, macOS, da Linux

Nazarin Darasi

Barka da kammala darasi akan Use Stylesheets. Yanzu da kuka bincika mahimman raayoyi da raayoyi, lokaci yayi da zaku gwada ilimin ku. Wannan sashe yana ba da ayyuka iri-iri Tambayoyin da aka tsara don ƙarfafa fahimtar ku da kuma taimaka muku auna fahimtar ku game da kayan.

Za ka gamu da haɗe-haɗen nau'ikan tambayoyi, ciki har da tambayoyin zaɓi da yawa, tambayoyin gajeren amsa, da tambayoyin rubutu. Kowace tambaya an ƙirƙira ta da kyau don auna fannoni daban-daban na iliminka da ƙwarewar tunani mai zurfi.

Yi wannan ɓangaren na kimantawa a matsayin wata dama don ƙarfafa fahimtarka kan batun kuma don gano duk wani yanki da kake buƙatar ƙarin karatu. Kada ka yanke ƙauna da duk wani ƙalubale da ka fuskanta; maimakon haka, ka kallesu a matsayin damar haɓaka da ingantawa.

  1. Which way of applying CSS lets one file style many web pages at once? A. Inline style B. Internal style C. External stylesheet D. A comment Answer: C
  2. If an inline style and an attached stylesheet set the same property, which is used? A. The attached stylesheet B. The inline style C. Neither D. A random one Answer: B
  3. In the CSS rule p {color:#0000ff;}, the part 'p' is the: A. Property B. Value C. Selector D. Declaration Answer: C
  4. How is a class called right applied to a paragraph in the HTML? A.

    B.

    C.

    D.

    Answer: B

  5. In a font-family list, the generic font family (such as sans-serif) should be placed: A. First B. Last C. In the middle D. In a separate rule Answer: B

Akwai a cikin manhajar Green Bridge

Zazzage manhajar Green Bridge CBT a wayar ka ko kwamfyuta ka don samun cikakkiyar bayanan darasi, tambayoyin aiki, da ƙari.

Cikakkiyar bayanan darasi tare da zane-zane
Mataimakiyar koyo da AI
Yi karatu ba tare da intanet ba, a kowane lokaci, a ko'ina
Akwai a Android, Windows, macOS, da Linux

Akwai a cikin manhajar Green Bridge

Zazzage manhajar Green Bridge CBT a wayar ka ko kwamfyuta ka don samun cikakkiyar bayanan darasi, tambayoyin aiki, da ƙari.

Cikakkiyar bayanan darasi tare da zane-zane
Mataimakiyar koyo da AI
Yi karatu ba tare da intanet ba, a kowane lokaci, a ko'ina
Akwai a Android, Windows, macOS, da Linux

Yi Aikin Tambayoyin Gwaji

Kana son yin aikin tambayoyin gwaji kan Use Stylesheets? Sauke manhajar Green Bridge CBT don samun tambayoyin gwaji da cikakkun jarrabawa akan wannan batu.

Sauke Manhajar Daga Google Playstore

Duk abin da kake buƙata don yin fice a JAMB, WAEC & NECO.

Green Bridge CBT Mobile App
Keɓantaccen Mataimaki na Tattaunawa na Koyo na AI
Dubban Tambayoyi na JAMB, WAEC & NECO na Baya.
Fiye da Lura-Luran Darussa 1200
Tallafin Wajen Layi - Koyo Kowane Lokaci, Ko'ina
Jadawalin Gadar Kore.
Takaitaccen Bayanin Adabi & Tambayoyin Da Za Su Iya Tashi
Bibiye Ayyukanka da Ci Gaban Ka
Cikakken Bayani don Koyon Fahimta.