# Animal Trading Card Instructions The Lab starts with the following files



Download 13,52 Kb.
Sana22.10.2022
Hajmi13,52 Kb.
#855411
Bog'liq
fulk


# Animal Trading Card Instructions

The Lab starts with the following files:

* `card.html`
* `clownfish.jpg`
* `design-prototype.jpg`
* `styles.css`

Your job is to try and recreate what you see in the `design-prototype.jpg`. You’ll need to modify `card.html` to include `attributes` and use CSS `selectors` to style specific elements.

## ⚠️ Important ⚠️

**Please do not remove or alter any existing `id` attributes in `card.html`!**

The `card.html` file comes with some initial HTML. A few HTML elements already have `id` attributes. The validation code _requires_ these exact `id`s on these exact elements, so do not remove them or the validation will fail.

## 🛠 Required Changes ⚙️

Make the following changes to `card.html`

1. Change the heading to the name of your favorite animal


2. Replace the placeholder image with your favorite animal's image.

Also, change the image's `alt` attribute to the name of your animal.


So, `alt="name-of-your-animal"` should be replaced with the actual name of your animal.

Note: You will want to use an image with a `width` of 300 pixels. If your image is larger, you can set the image's width to 300 pixels in your CSS, but be aware that your image might end up squished or distorted. Later, we’ll talk about how you can fix this problem using responsive images.

3. Edit the interesting fact paragraph
4. Edit the key characteristics
5. Edit the informational paragraph

## 💃 Style the Page

The CSS must apply these styles to match the design prototype:

1. link your stylesheet `styles.css` to the HTML or else your CSS will not be applied.


2. give the interesting facts `
` a CSS class of `animal-info`
3. italicize the text for the animal's interesting fact
4. bold the labels for the animal's list items (e.g. 'Habitat')
5. remove dots from the animal's list items
6. add a border around the animal's name, image, and information
7. add a border around the animal's information
8. add spacing between the animal's name, image, and information (you will need to use the property [padding](https://developer.mozilla.org/en-US/docs/Web/CSS/padding))

## ✅ Test Your Code ❌

To pass the Lab, follow the instructions above to get `card.html` to render similarly to what's seen in `design-prototype.jpg`.

To test how close you are, click the "RUN CODE" button located in the bottom right of the Workspace. This will run the validator against your code. A popup window will appear and run through all of the tests. If something still needs to be done, it will appear in this popup window in red. Also, there's no limit on the number of times you can use the "RUN CODE" feature, so keep checking it until you pass!

Good luck!

text = "this is not a reversed text"

def reverse(x):
temp=''
l=len(x)
for i in range(l):
temp+=x[l-i-1]
return temp

print("the reversed text is: "+reverse(text))

no_list = [22,68,90,78,90,88]

def average(x):


av=0
for a in x:
av+=a
av=av/len(x)
return av

print(average(no_list))

no_list = [1,2,3,4]

def maximum(x):


mx=0
for a in x:
if mxmx=a
return a

print(maximum(no_list))

no_list = [22,22,2,1,11,11,2,2,3,3,3,4,5,5,5,55,55,66]

def unique_list(l):


unil=[]
for a in no_list:
if a not in unil:
unil.append(a)
return unil

print(unique_list(no_list))

Download 13,52 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish