AgerNic.com/ro
WEB DEVELOPER SITE, HTML, CSS, PHP, SQL
Tutorial

HTML <div> Tag
Descriere Eticheta HTML
<div> este utilizat? pentru definirea unei sec?iuni a documentului dvs. Cu eticheta div, pute?i grupa sec?iuni mari de elemente HTML împreun? ?i s? le formata?i cu CSS.
Diferen?a dintre eticheta div ?i eticheta span este c? tag-ul div este utilizat cu elemente de bloc, în timp ce eticheta span este folosit? cu elemente inline.

Sfat: elementul <div> este foarte des utilizat împreun? cu CSS, pentru a configura o pagin? web.

Not?: În mod implicit, browserele plaseaz? întotdeauna o pauz? de linie înainte ?i dup? elementul <div>.
Cu toate acestea, acest lucru poate fi modificat cu CSS.

Sintax?:
Eticheta <div> vine în perechi. Con?inutul trebuie s? fie scris între etichetele de deschidere ( <div>) ?i închidere (</div>).

Exemplu:

<!DOCTYPE html>
<html> 
  <head> 
     <title>Cum se creeaz? un buton HTML</title>
<style> 
   .flex-container {
display: flex;
align-items: center;
width: 100%;
height: auto;
background-color: #1faadb;
padding: 12px;
}
.flex-container > div {
width: 25%;
height: auto;
margin: 5px;
border-radius: 3px;
background-color: #8ebf42;
padding: 12px;
}
</style>
</head>
<body>
<div class="flex-container">
<div>Proprietate CSS Float<br />
Proprietatea float CSS sau „float”<br />
permite ca elementele s? apar? al?turi<br />
sau în afar? de altele, ceea ce ne permite<br />
s? cre?m diferite tipuri de machete,<br />
inclusiv pagini cu mai multe coloane,<br />
bare laterale, grile etc.<br />
</div>
<div>Programare Web.<br />
Curs programare webdesign online gratuite<br />
- designer pagini web.</div>
<div>Invata de la zero fundamentele<br />
programarii web PHP+MySQL si dezvoltarea<br />
temelor WordPress pentru cariera ta de web</div>
</div>
</body>
</html>
Tags: html div Tag, exemple, tutorial, curs online

Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


analytics piwika