Background

postat acum 4 ani de Stefanescu Mihai in categorie HTML

In mod standard background-ul paginii web este alb. S-ar putea sa nu-ti placa, dar nu-ti face probleme. HTML iti ofera posibilitate de a schimba acest fundal si iti da doua optiuni, ori pui o culoare ca fundal ori pui o imagine.

Background culoare

Atributul bgcolor este folosit pentru a controla culoarea unui anumit element HTML.Acest atribut are urmatoarea sintaxa:

<tag bgcolor=‘culoare’>

Culoarea poate fi data in urmatoarele formate:

<!-- Numele culoarii -->
<table bgcolor="green" >
 
<!-- Valoare HEX -->
<table bgcolor="#00ff00" >
 
<!-- Valoare RGB -->
<table bgcolor="rgb(0,255,0)" >

Iata un exemplu concret:

<!DOCTYPE html>
<html>
<head>
<title>Background HTML</title>
</head>
<body>

<!-- Numele Culorii -->
<table bgcolor="yellow" width="100%">
<tr><td>
Fundal galben
</td></tr>
</table>
 
<!-- Cod HEX -->
<table bgcolor="#6666FF" width="100%">
<tr><td>
Fundal Albastru
</td></tr>
</table>
 
<!-- Cod RGB -->
<table bgcolor="rgb(255,0,255)"  width="100%">
<tr><td>
Asta e verde
</td></tr>
</table>

</body>
</html>

Rezultatul:

 

Fundal galben

 

Fundal Albastru

 

Asta e verde

Background Imagine

Atributul background poate fi folosit pentru a controla background-ul unui element HTML, se foloseste mai ales pentru tag-ul <body> si pentru tag-ul <table>.

Atentie: Acest tag a fost deprecated si este recomandata folosirea CSS-ului pentru setarea unei imagini de fundal.

<tag bgcolor=‘culoare’>

Cele mai folosite formate de imagini pentru background sunt JPEG, GIF si PNG.Iata un exemplu:

<table background="/images/pattern.png" width="100%" height="100">
<tr><td>
Avem o imagine setata ca si fundal.
</td></tr>
</table>

 

Sunt un tanar programator din Bucuresti ce lucreaza in PHP/Mysql (MySqli/PDO), Laravel, CodeIgniter, MySQL, PostgreSQL, Wordpress, HTML5/CSS3, Sass, Photoshop si multe altele.
Google+ Community Facebook Group
Acest articol a fost mutat de pe vechea platforma.
Pentru orice eroare aparuta la mutare va rog sa ma contactati!

Comentariu postate de mlb jerseys la data de 14.05.2019
My husband and i felt quite cheerful that Jordan managed to round up his inquiry because of the precious recommendations he made from your own weblog. It's not at all simplistic to just possibly be giving for free key points that men and women could have been trying to sell. And we also grasp we now have the writer to appreciate because of that. The explanations you made, the easy website navigation, the friendships you will help to instill - it is everything exceptional, and it is aiding our son and our family feel that this subject is interesting, which is wonderfully vital. Thanks for the whole lot!
Comentariu postate de minecraft download free pc la data de 15.05.2019
Fantastic items from you, man. I've take into account your stuff prior to and you're just extremely wonderful. I really like what you have received here, really like what you are stating and the way during which you assert it. You're making it enjoyable and you still take care of to stay it sensible. I can not wait to learn much more from you. This is actually a tremendous web site.
Comentariu postate de minecraft download free pc la data de 17.05.2019
Good way of describing, and good article to get information concerning my presentation subject, which i am going to present in institution of higher education.
Comentariu postate de how to download minecraft la data de 17.05.2019
I like it when folks get together and share thoughts. Great site, stick with it!
Comentariu postate de minecraft download pc la data de 17.05.2019
I was curious if you ever thought of changing the structure of your website? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having one or two images. Maybe you could space it out better?