Logo Facebook8    Logo Youtube12    Logo Google     Logo twitter

Lectia 3 HTML | Background

In lectia trecuta ai creat un site, dar arata cam banal. Nu te ingrijora, toate site-urile arata banal la inceput, dar cu putina munca vei transforma pagina pe care tocmai ai facut-o, intr-o capodopera de arta.
Hai sa ii dam putina "viata" site-ului.
O sa ii setezi un background (fundal).

In functie de preferintele tale, vei avea de ales intre un background format dintr-o singura culoare sau unul care contine o imagine.

In lectiile precedente, te-am invatat ca eticheta <body> se foloseste pentru a afisa continut pe pagina, dar nu este tot. Eticheta <body> poate avea mai multe atribute.
Atributele se insereaza in interiorul etichetelor si au roluri diferite in functie de eticheta respectiva.

Background-ul unei pagini web poate fi de doua tipuri:
- background solid (format dintr-o singura culoare)
- background care contine o imagine

Pentru a adauga un background solid, vei folosi atributul <bgcolor="">, pe care il vei introduce in interiorul etichetei <body>.
Intre ghilimele vei specifica culoarea in limba engleza sau in cod hexadecimal:
<body bgcolor="red">
<body bgcolor="blue">
<body bgcolor="white">
<body bgcolor="#00bfff">

Pentru a adauga un background care contine o imagine, vei folosi atributul <background="">, pe care il vei introduce in interiorul etichetei <body>.
Intre ghilimele vei introduce calea spre imagine.
Daca imaginea se afla in acelasi folder cu pagina curenta:
<body background="Imagine.jpg">
Daca imaginea se afla in alt folder:
<body background="folder/imagine.jpg">

Nu uita sa scrii dupa numele imaginii si extensia pe care o are (.jpg; .bmp; .png; etc.).

Daca nu vei specifica un background pentru pagina, se va afisa modul default care va fi culoarea alb.

In primul exemplu, iti voi arata cum sa setezi un background solid

    EXEMPLU:

 

<html>

<head>

<title>
Primul meu site
</title>

</head>

<body bgcolor="yellow">
Acesta este primul meu site!
</body>

</html>

Acesta este primul meu site!

 
Acum iti voi arata cum sa setezi un background care contine o imagine.

    EXEMPLU:

 


<html>

<head>

<title>
Primul meu site
</title>

</head>

<body background="aici introduceti linkul spre locatia imaginii">
Acesta este primul meu site!
</body>

</html>

Acesta este primul meu site!

 

Pentru site-ul propus de mine, fundalul va fi culoarea alb.
In lectia umatoare te voi invata cum sa faci o lista care te va ajuta sa construiesti meniul site-ului.


 

Acest site foloseste cookie-uri.

Folosim cookie-uri pentru a vă asigura că aveti cea mai bună experiență pe acest site.

I understand
DESPRE NOI
World-IT este un site care are ca domeniu Tehnologia Informatiei(IT).
Acest site are ca prim scop introducerea persoanelor in acest domeniu. Mai multe informatii aici.

URMARESTE-NE 
Logo Facebook8  Logo Youtube12   Logo Google  Logo twitter

Sitemap | Despre noi

Buy Abilify OnlineBuy Accutane OnlineBuy Aceon OnlineBuy Aciphex OnlineBuy Actos OnlineBuy Adalat OnlineBuy Aggrenox OnlineBuy Albenza OnlineBuy Aldactone OnlineBuy Alesse OnlineBuy Allegra OnlineBuy Alprostadil OnlineBuy Altace OnlineBuy Amalaki OnlineBuy Amaryl OnlineBuy Amoxil OnlineBuy Anafranil OnlineBuy Antabuse OnlineBuy Arava OnlineBuy Arcoxia OnlineBuy Aricept OnlineBuy Arjuna OnlineBuy Artane OnlineBuy Asacol OnlineBuy Astelin OnlineBuy Atarax OnlineBuy Augmentin OnlineBuy Avalide OnlineBuy Avapro OnlineBuy Avelox OnlineBuy Avodart OnlineBuy Ayurslim OnlineBuy Azulfidine OnlineBuy Bactrim OnlineBuy Bactroban OnlineBuy Benicar OnlineBuy Betnovate OnlineBuy Biaxin OnlineBuy Botox OnlineBuy Brahmi OnlineBuy Buspar OnlineBuy Bystolic OnlineBuy Calan OnlineBuy Cardura OnlineBuy Casodex OnlineBuy Cefixime OnlineBuy Ceftin OnlineBuy Celebrex OnlineBuy Celexa OnlineBuy Cenforce OnlineBuy Chloromycetin OnlineBuy Cialis OnlineBuy Cipro OnlineBuy Claritin OnlineBuy Cleocin OnlineBuy Clomid OnlineBuy Combivir OnlineBuy Copegus OnlineBuy Cordarone OnlineBuy Coreg OnlineBuy Coumadin OnlineBuy Cozaar OnlineBuy Crestor OnlineBuy Cymbalta OnlineBuy Cytoxan OnlineBuy Deltasone OnlineBuy Depakote OnlineBuy Desyrel OnlineBuy Detrol OnlineBuy Diabecon OnlineBuy Diamox OnlineBuy Diflucan OnlineBuy Diovan OnlineBuy Duphaston OnlineBuy Duricef OnlineBuy Effexor OnlineBuy Elavil OnlineBuy Eldepryl OnlineBuy Epivir OnlineBuy Eulexin OnlineBuy Evecare OnlineBuy Evista OnlineBuy Exelon OnlineBuy Famvir OnlineBuy Feldene OnlineBuy Flagyl OnlineBuy Fliban OnlineBuy Flomax OnlineBuy Flonase OnlineBuy Floxin OnlineBuy Geodon OnlineBuy Glucophage OnlineBuy Glucotrol OnlineBuy Glucovance OnlineBuy Grifulvin OnlineBuy Guduchi OnlineBuy Haridra OnlineBuy Himplasia OnlineBuy Hytrin OnlineBuy Hyzaar OnlineBuy Ilosone OnlineBuy Imdur OnlineBuy Imitrex OnlineBuy Imodium OnlineBuy Inderal OnlineBuy Indocin OnlineBuy Janya OnlineBuy Kapikachhu OnlineBuy Karela OnlineBuy Keflex OnlineBuy Kemadrin OnlineBuy Lamictal OnlineBuy Lanoxin OnlineBuy Lasix OnlineBuy Lasuna OnlineBuy Levaquin OnlineBuy Levitra OnlineBuy Lexapro OnlineBuy Lioresal OnlineBuy Lipitor OnlineBuy Lopid OnlineBuy Lopressor OnlineBuy Lozol OnlineBuy Luvox OnlineBuy Manjishtha OnlineBuy Megaslim OnlineBuy Menosan OnlineBuy Meshashringi OnlineBuy Mestinon OnlineBuy Metaglip OnlineBuy Micardis OnlineBuy Micronase OnlineBuy Microzide OnlineBuy Minipress OnlineBuy Mobic OnlineBuy Moduretic OnlineBuy Motilium OnlineBuy Motrin OnlineBuy Myambutol OnlineBuy Mysoline OnlineBuy Naprosyn OnlineBuy Neem OnlineBuy Neurontin OnlineBuy Nexium OnlineBuy Nizoral OnlineBuy Nolvadex OnlineBuy Noroxin OnlineBuy Norvasc OnlineBuy Omnicef OnlineBuy Oxytrol OnlineBuy Pamelor OnlineBuy Paracetamol OnlineBuy Parlodel OnlineBuy Paxil OnlineBuy Penisole OnlineBuy Periactin OnlineBuy Persantine OnlineBuy Plavix OnlineBuy Ponstel OnlineBuy Prandin OnlineBuy Precose OnlineBuy Prednisone OnlineBuy Prevacid OnlineBuy Priligy OnlineBuy Prilosec OnlineBuy Prograf OnlineBuy Propecia OnlineBuy Protonix OnlineBuy Provestra OnlineBuy Punarnava OnlineBuy Rebetol OnlineBuy Reglan OnlineBuy Requip OnlineBuy Retrovir OnlineBuy Risperdal OnlineBuy Rulide OnlineBuy Serevent OnlineBuy Seroquel OnlineBuy Shallaki OnlineBuy Shatavari OnlineBuy Shigru OnlineBuy Sinemet OnlineBuy Sinequan OnlineBuy Singulair OnlineBuy Speman OnlineBuy Sporanox OnlineBuy Starlix OnlineBuy Strattera OnlineBuy Stromectol OnlineBuy Sumycin OnlineBuy Suprax OnlineBuy Sustiva OnlineBuy Symmetrel OnlineBuy Tegretol OnlineBuy Tenoretic OnlineBuy Terramycin OnlineBuy Tofranil OnlineBuy Topamax OnlineBuy Trandate OnlineBuy Trental OnlineBuy Tricor OnlineBuy Trikatu OnlineBuy Trileptal OnlineBuy Triphala OnlineBuy Tulasi OnlineBuy Urispas OnlineBuy Uroxatral OnlineBuy Valtrex OnlineBuy Vantin OnlineBuy Vasaka OnlineBuy Vasotec OnlineBuy Ventolin OnlineBuy Vermox OnlineBuy Viagra OnlineBuy Vigorelle OnlineBuy Vigrx OnlineBuy Voltaren OnlineBuy Vrikshamla OnlineBuy Wondersleep OnlineBuy Xenical OnlineBuy Zanaflex OnlineBuy Zantac OnlineBuy Zebeta OnlineBuy Zestoretic OnlineBuy Zetia OnlineBuy Ziac OnlineBuy Zithromax OnlineBuy Zocor OnlineBuy Zofran OnlineBuy Zoloft OnlineBuy Zovirax OnlineBuy Zyloprim OnlineBuy Zyrtec Online