Sonzaschool
Rudi

Sekondari ya Kawaida · Kidato cha Pili · Amali · Electronics and Computer

Computer Programming

Implementing graphics in webpages using CSS

takriban dakika 3 kusoma

Majadiliano
Mada za sehemu hiiFormatting web pages with Cascading Style Sheets (CSS)Mada 5

Adding Graphics to Webpages with CSS

CSS (Cascading Style Sheets) not only styles text and layouts — it also controls how images and graphical elements appear on a webpage. By using CSS properties, you can add background images, resize them, round corners, and add shadows to create attractive web designs.


The background-image property inserts an image behind an element, such as a heading, a paragraph, or the whole page.

body {
    background-image: url("market.jpg");
}

The URL inside url() can point to a local image file in your project folder or an address on the internet.


Jinsi utakavyotathminiwaTathmini ya mchakato · Tathmini ya matokeo · Tathmini ya maarifa

Tathmini ya mchakato

  • Apply background images using backgroundimage.
  • Adjust background size using backgroundsize.
  • Add rounded corners using borderradius.
  • Add shadows using boxshadow.
  • Test graphics implementation

Tathmini ya matokeo

Web pages displaying properly styled and positioned graphics that enhance visual appeal without affecting performance are implemented.

Tathmini ya maarifa

Methods used: The student should explain how to:

  • implement graphics using CSS. Principles: The student should explain the principle of:
  • layering of backgrounds and shadows.

Theories: The student should explain:

  • Concepts of graphics
  • CSS properties for background and borders.

Circumstantial knowledge:

Detailed knowledge about:

  • performance optimization for graphics.

Swali

Which CSS property is used to add a background image behind an element?

Ingia ili kuwasilisha jibu lako na lihesabiwe katika umahiri wako.

Ingia ili kufanya mazoezi

Mwalimu

Umekwama? Niulize chochote kuhusu mada hii.

Ingia ili kumuuliza Mwalimu wa AI wa Sonza kuhusu swali hili.

Ingia ili kuuliza

Majadiliano

Hakuna maswali bado

Ingia ili kuuliza
Inapakia majadiliano…