Selectoare CSS

Selectoare CSS

Selectoarele CSS sunt coloana vertebrală a oricărei pagini web elegante. Acestea vizează elemente HTML din paginile dvs., permițându-vă să adăugați stiluri pe baza id-ului, clasei, tipului, atributului și multe altele. Acest ghid va aprofunda în complexitatea selectoarelor CSS și în rolul lor esențial în îmbunătățirea esteticii și experienței utilizatorului paginilor dvs. web.

Tipuri de selectoare CSS

Selectoarele CSS sunt disponibile în diferite tipuri, fiecare cu modul său unic de a selecta elementele HTML. Să le explorăm:

Selectoare CSS Descriere

Selectoare simple

Este folosit pentru a selecta elementele HTML pe baza numelui, id-ului, atributelor, etc

Selector universal Selectează toate elementele din pagină.
Selector de atribute Vizează elementele pe baza valorilor atributelor lor.
Selector de pseudo-clasă Selectează elemente în funcție de starea sau poziția lor, cum ar fi :hover> pentru efecte de hover.
Selectoare combinatoare Combinați selectoare pentru a specifica relațiile dintre elemente, cum ar fi descendenții ( > ) sau copil ( >>>> ).
Selector de pseudo-element Selectează anumite părți ale unui element, cum ar fi Tipuri de selectoare CSS
  • Selectoare simple
  • Selector de elemente
  • Selector de id
  • Selector de clasă
  • Selector universal
  • Selector de grup
  • Selector de atribute
  • Selector de pseudo-clasă
  • Selector de pseudo-element
  • Selectoare simple

    Selectorii simpli conțin clasele de mai jos.

    Selector simplu Descriere
    Selector de elemente Selectează elementele HTML pe baza numelor lor de etichetă.
    Selector de id Vizează un element HTML cu un anumit atribut ID.
    Selector de clasă Selectează elemente cu un anumit atribut de clasă.

    Exemplu: În acest exemplu, vom scrie codul pentru a înțelege mai bine selectorii și utilizările lor.

    HTML
          Selector CSS titlu> <link rel='stylesheet' href='style.css' />cap> <body>  <h1>Titlul eșantionh1> <p>Acesta este conținutul din primul paragrafp> <div id='div-container'>Acesta este un div cu id div-container div> <p>Acesta este un paragraf cu clasa paragraf-clasa p> body> html> </pre>  </code>  <p dir='ltr'>  <b>  <strong>Notă: </strong>  </b>  <span>Vom aplica regulile CSS la exemplul de mai sus. </span> </p>  <h2 id='element-selector'>  <b>  <strong>Selector de elemente </strong>  </b>  </h2> <p dir='ltr'> <span>The </span>  <span>selector de elemente </span>  <span>selectează elemente HTML pe baza numelui (sau etichetei) elementului, de exemplu p, h1, div, span etc. </span> </p>  <p dir='ltr'>  <b>  <strong>NOTĂ : </strong>  </b>  <span>Următorul cod este utilizat în exemplul de mai sus. Puteți vedea regulile CSS aplicate tuturor </span>  <span> </span> </p> <p>  <span>etichete și </span> </p> <h1>Etichete. <p> </p>  </h1> <h3>  <b>  <strong>CSS: </strong>  </b>  </h3> <pre>h1 {  color: red;  font-size: 3rem; } p {  color: white;  background-color: gray; } </pre> <p dir='ltr'>  <b>  <strong>Ieșire: </strong>  </b>  </p>  <img src='//techcodeview.com/img/css-questions/50/css-selectors.webp' alt='CSS-Selector-Element-Exemplu-ieșire'> <p>Ieșire CSS Element Selector </p>  <h2 id='id-selector'>  <b>  <strong>Selector de id </strong>  </b>  </h2> <p dir='ltr'> <span>The </span>   <b>  <strong>selector de id </strong>  </b>   <span>folosește </span>   <i>  <em>atributul id </em>  </i>   <span>a unui element HTML pentru a selecta un anumit element. </span>  <b>  <strong>  </strong>  </b>  <span>Un </span>  <b>  <strong>id </strong>  </b>  <span>elementul este unic pe o pagină de utilizat </span>  <b>  <strong>id-ul </strong>  </b>  <span>selector. </span> </p>  <p dir='ltr'>  <b>  <strong>Notă: </strong>  </b>  <span>Următorul cod este folosit în exemplul de mai sus folosind selectorul de id. </span> </p>  <h3>  <b>  <strong>CSS: </strong>  </b>  </h3> <pre>#div-container{  color: blue;  background-color: gray; } </pre> <p dir='ltr'>  <b>  <strong>Ieșire: </strong>  </b>  </p>  <img src='//techcodeview.com/img/css-questions/50/css-selectors-2.webp' alt='CSS-Id-selectori-exemplu-ieșire'> <p>Exemplu de ieșire CSS ID Selectori </p>  <h2 id='class-selector'>  <b>  <strong>Selector de clasă </strong>  </b>  </h2> <p dir='ltr'> <span>The </span>   <b>  <strong>selector de clasă </strong>  </b>   <span>selectează elemente HTML cu un anumit atribut de clasă. </span> </p>  <p dir='ltr'>  <b>  <strong>Notă: </strong>  </b>  <span>Următorul cod este folosit în exemplul de mai sus folosind selectorul de clasă. Pentru a utiliza un selector de clasă, trebuie să utilizați ( . ) urmat de numele clasei în CSS. Această regulă va fi aplicată elementului HTML cu atributul class </span>  <i>  <em>paragraf-clasa </em>  </i>  <span> </span> </p>  <h3>  <b>  <strong>CSS: </strong>  </b>  </h3> <pre>.paragraph-class {  color:white;  font-family: monospace;  background-color: purple; } </pre> <p dir='ltr'>  <b>  <strong>Ieșire: </strong>  </b>  </p>  <img src='//techcodeview.com/img/css-questions/50/css-selectors-3.webp' alt='CSS-Class-Selectors-Exemple-Output'> <p>Selector de clasă CSS Exemplu de ieșire </p>  <h2 id='universal-selector'>  <b>  <strong>Selector universal </strong>  </b>  </h2> <p dir='ltr'> <span>The </span>  <span>Selector universal </span>  <span>(*) în CSS este folosit pentru a selecta toate elementele dintr-un document HTML. Include și alte elemente care se află în interior sub alt element. </span> </p>  <p dir='ltr'>  <b>  <strong>Notă: </strong>  </b>  <span>Următorul cod este utilizat în exemplul de mai sus folosind selectorul universal. Această regulă CSS va fi aplicată fiecărui element HTML de pe pagină: </span> </p>  <h3>  <b>  <strong>CSS: </strong>  </b>  </h3> <pre>* {  color: white;  background-color: black; } </pre> <p dir='ltr'>  <b>  <strong>Ieșire: </strong>  </b>  </p>  <img src='//techcodeview.com/img/css-questions/50/css-selectors-4.webp' alt='CSS-Selector-Universal-Exemplu-Ieșire'> <p>CSS Universal Selector Exemplu de ieșire </p>  <h2 id='group-selector'>  <b>  <strong>Selector de grup </strong>  </b>  </h2> <p dir='ltr'> <span>The </span>  <b>  <strong>Selector de grup </strong>  </b>  <span>este folosit pentru a stila toate elementele separate prin virgulă cu același stil. </span> </p>  <p dir='ltr'>  <b>  <strong>Notă: </strong>  </b>  <span>Să presupunem că doriți să aplicați stiluri comune diferitelor selectoare, în loc să scrieți regulile separat, le puteți scrie în grupuri, așa cum se arată mai jos. </span> </p>  <h3>  <b>  <strong>CSS: </strong>  </b>  </h3> <pre>#div-container, .paragraph-class, h1{  color: white;  background-color: purple;  font-family: monospace;  } </pre> <p dir='ltr'>  <b>  <strong>Ieșire: </strong>  </b>  </p>  <img src='//techcodeview.com/img/css-questions/50/css-selectors-5.webp' alt='CSS-Selector-Grup-Exemplu-Ieșire'> <p>Selector de grup CSS Exemplu de ieșire </p>  <h2 id='attribute-selector'>  <b>  <strong>Selector de atribute </strong>  </b>  </h2> <p dir='ltr'> <span>The </span>   <b>  <strong>selector de atribute </strong>  </b>   <span>[atribut] este folosit pentru a selecta elementele cu un atribut sau o valoare de atribut specificată. </span> </p>  <p dir='ltr'>  <b>  <strong>Notă: </strong>  </b>  <span>Următorul cod este folosit în exemplul de mai sus folosind selectorul de atribute. Această regulă CSS va fi aplicată fiecărui element HTML de pe pagină: </span> </p>  <h3>  <b>  <strong>CSS: </strong>  </b>  </h3> <pre>[href] {  background-color: lightgreen;  color: black;  font-family: monospace;  font-size: 1rem; } </pre> <p dir='ltr'>  <b>  <strong>Ieșire: </strong>  </b>  </p>  <img src='//techcodeview.com/img/css-questions/50/css-selectors-6.webp' alt='CSS-Atribut-Selectros-Exemplu-Ieșire'> <p>Atribut CSS Selectros Exemplu de ieșire </p>  <h2 id='pseudoclass-selector'>  <b>  <strong>Selector de pseudo-clasă </strong>  </b>  </h2> <p dir='ltr'> <span>Este folosit pentru a stila un tip special de stare al oricărui element. De exemplu, este folosit pentru a stila un element atunci când cursorul mouse-ului trece peste el. </span> </p>  <p dir='ltr'>  <b>  <strong>Notă: </strong>  </b>  <span>Folosim un singur două puncte(:) în cazul unui </span>  <span>Selector de pseudo-clasă </span>  <span>. </span> </p>  <p dir='ltr'>  <b>  <strong>Sintaxă: </strong>  </b>  </p>  <pre>Selector:Pseudo-Class {  Property: Value; } </pre> <h3>  <b>  <strong>CSS: </strong>  </b>  </h3> <pre>h1:hover{  background-color: aqua; } </pre> <p dir='ltr'>  <b>  <strong>Ieșire: </strong>  </b>  </p>  <img src='//techcodeview.com/img/css-questions/50/css-selectors.webp' alt='CSS-Pseudo-Selector-Exemplu-Ieșire'> <p>Ieșire exemplu de pseudoselector CSS </p>  <h2 id='pseudoelement-selector'>  <b>  <strong>Selector de pseudo-element </strong>  </b>  </h2> <p dir='ltr'> <span>Este folosit pentru a stila orice parte specifică a elementului. De exemplu - este folosit pentru a stila prima literă sau prima linie a oricărui element. </span> </p>  <p dir='ltr'>  <b>  <strong>Notă: </strong>  </b>  <span>Folosim două puncte duble(::) în cazul a </span>  <span>Selector de pseudo-element </span>  <span>. </span> </p>  <p dir='ltr'>  <b>  <strong>Sintaxă: </strong>  </b>  </p>  <pre>Selector:Pseudo-Element{  Property:Value;  } </pre> <h3>  <b>  <strong>CSS: </strong>  </b>  </h3> <pre>p::first-line{  background-color: goldenrod; } </pre> <p dir='ltr'>  <b>  <strong>Ieșire: </strong>  </b>  </p>  <img src='//techcodeview.com/img/css-questions/50/css-selectors-7.webp' alt='CSS-Pseudo-Element-Selector-Exemplu-Ieșire'> <p>Exemplu de ieșire a selectorului de pseudo-element CSS </p>  <p dir='ltr'>  <br> </p>  <br>  <br>
                         </div>
    
                         <!-- Article Footer with Prominent Share Buttons -->
                         <div class="px-6 md:px-8 py-8 bg-slate-50 dark:bg-slate-900/50 border-t border-slate-200 dark:border-slate-700/50">
                              <div class="flex flex-col sm:flex-row items-center justify-between gap-6">
                                  <h4 class="text-base font-bold text-slate-700 dark:text-slate-300 uppercase tracking-wide flex items-center gap-2">
                                     <i class="fa fa-share-alt text-tech-500"> </i>
                                    Distribuie                              </h4>
                                 
                                  <div class="flex flex-wrap justify-center gap-3">
                                     <!-- Twitter -->
                                     <a href="https://twitter.com/intent/tweet?text=Selectoare CSS&url=https://www.techcodeview.com/ro/css-selectors" 
                                       target="_blank" rel="noopener noreferrer" 
                                       class="flex items-center gap-2 px-6 py-3 rounded-xl bg-[#1DA1F2]/10 text-[#1DA1F2] hover:bg-[#1DA1F2] hover:text-white transition-all duration-300 font-bold text-sm">
                                         <i class="fa fa-twitter text-lg"> </i>
                                         <span class="hidden sm:inline">Twitter </span>
                                     </a>
    
                                     <!-- Facebook -->
                                     <a href="https://www.facebook.com/sharer/sharer.php?u=https://www.techcodeview.com/ro/css-selectors" 
                                       target="_blank" rel="noopener noreferrer"
                                       class="flex items-center gap-2 px-6 py-3 rounded-xl bg-[#4267B2]/10 text-[#4267B2] hover:bg-[#4267B2] hover:text-white transition-all duration-300 font-bold text-sm">
                                         <i class="fa fa-facebook text-lg"> </i>
                                         <span class="hidden sm:inline">Facebook </span>
                                     </a>
                                    
                                     <!-- LinkedIn -->
                                     <a href="https://www.linkedin.com/shareArticle?mini=true&url=https://www.techcodeview.com/ro/css-selectors&title=Selectoare CSS" 
                                       target="_blank" rel="noopener noreferrer"
                                       class="flex items-center gap-2 px-6 py-3 rounded-xl bg-[#0077b5]/10 text-[#0077b5] hover:bg-[#0077b5] hover:text-white transition-all duration-300 font-bold text-sm">
                                         <i class="fa fa-linkedin text-lg"> </i>
                                         <span class="hidden sm:inline">LinkedIn </span>
                                     </a>
                                  </div>
                              </div>
                         </div>
                    </article>
    
                    <!-- Comments Placeholder / Random Articles -->
                    <div class="mt-8 bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 rounded-xl p-6 md:p-8 shadow-sm">
                         <h3 class="text-xl font-bold text-slate-900 dark:text-white mb-6 uppercase tracking-wide border-b border-slate-200 dark:border-slate-700 pb-2">
                            S-Ar Putea Să Vă Placă                     </h3>
                         <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                             <div class="group">
                                  <a href="/ro/random-forest-algorithm" class="block aspect-video rounded-lg overflow-hidden bg-slate-200 dark:bg-slate-700 mb-3">
                                     <img loading="lazy" src="https://techcodeview.com/img/machine-learning/32/random-forest-algorithm.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Algoritmul pădurii aleatoriu" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500">
                                  </a>
                                  <h4 class="font-bold text-slate-900 dark:text-white leading-tight group-hover:text-tech-500 transition-colors">
                                     <a href="/ro/random-forest-algorithm">Algoritmul pădurii aleatoriu </a>
                                  </h4>
                             </div> <div class="group">
                                  <a href="/ro/authentication-vs-authorization-difference-between-authentication" class="block aspect-video rounded-lg overflow-hidden bg-slate-200 dark:bg-slate-700 mb-3">
                                     <img loading="lazy" src="https://techcodeview.com/img/differences/77/authentication-vs-authorization-difference-between-authentication.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Autentificare vs. Autorizare | Diferența dintre autentificare și autorizare" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500">
                                  </a>
                                  <h4 class="font-bold text-slate-900 dark:text-white leading-tight group-hover:text-tech-500 transition-colors">
                                     <a href="/ro/authentication-vs-authorization-difference-between-authentication">Autentificare vs. Autorizare | Diferența dintre autentificare și autorizare </a>
                                  </h4>
                             </div>
                         </div>
                    </div>
                 </div>
    
                 <!-- SECONDARY COLUMN (SIDEBAR) -->
                 <!-- Aside Column -->
     <div class="lg:col-span-4 space-y-8">
    	
    	 <!-- Best Articles Widget -->
    	 <div class="rounded-xl bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 p-6 shadow-sm">
    		 <div class="mb-4 border-b border-slate-100 dark:border-slate-700 pb-2">
    			 <h2 class="text-lg font-bold text-slate-900 dark:text-white uppercase tracking-wide flex items-center">
                     <span class="mr-2 h-2 w-2 rounded-full bg-tech-500"> </span>
                    Top Articole             </h2>
    		 </div>
    		
    		 <!-- Owl Carousel Preserved Container -->
    		 <div id="owl-carousel-3" class="owl-carousel owl-theme center-owl-nav">
    			 <!-- ARTICLE -->
    			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
    				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
    					 <a href="/ro/composition-relations">
    						 <img src="https://techcodeview.com/img/discrete-mathematics/40/composition-relations.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Compoziția relațiilor" class="w-full h-full object-cover">
    					 </a>
    				 </div>
    				 <div class="flex-1 min-w-0">
    					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                             <a href="/ro/composition-relations" class="hover:text-tech-500 transition-colors line-clamp-3">Compoziția relațiilor </a>
                         </h4>
    				 </div>
    			 </article>
    			 <!-- /ARTICLE --> <!-- ARTICLE -->
    			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
    				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
    					 <a href="/ro/first-java-program-hello-world-example">
    						 <img src="https://techcodeview.com/img/java-tutorial/54/first-java-program-hello-world-example.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Primul program Java | Hello World Exemplu" class="w-full h-full object-cover">
    					 </a>
    				 </div>
    				 <div class="flex-1 min-w-0">
    					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                             <a href="/ro/first-java-program-hello-world-example" class="hover:text-tech-500 transition-colors line-clamp-3">Primul program Java | Hello World Exemplu </a>
                         </h4>
    				 </div>
    			 </article>
    			 <!-- /ARTICLE --> <!-- ARTICLE -->
    			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
    				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
    					 <a href="/ro/usc-vs-ucla-which-is-right-131716">
    						 <img src="https://techcodeview.com/img/blog/35/usc-vs-ucla-which-is-right.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="USC vs UCLA: care este potrivit pentru tine?" class="w-full h-full object-cover">
    					 </a>
    				 </div>
    				 <div class="flex-1 min-w-0">
    					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                             <a href="/ro/usc-vs-ucla-which-is-right-131716" class="hover:text-tech-500 transition-colors line-clamp-3">USC vs UCLA: care este potrivit pentru tine? </a>
                         </h4>
    				 </div>
    			 </article>
    			 <!-- /ARTICLE --> <!-- ARTICLE -->
    			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
    				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
    					 <a href="/ro/fahrenheit-celsius-formula">
    						 <img src="https://techcodeview.com/img/converter-tools/66/fahrenheit-celsius-formula.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Formula Fahrenheit la Celsius (°F la °C)" class="w-full h-full object-cover">
    					 </a>
    				 </div>
    				 <div class="flex-1 min-w-0">
    					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                             <a href="/ro/fahrenheit-celsius-formula" class="hover:text-tech-500 transition-colors line-clamp-3">Formula Fahrenheit la Celsius (°F la °C) </a>
                         </h4>
    				 </div>
    			 </article>
    			 <!-- /ARTICLE --> <!-- ARTICLE -->
    			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
    				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
    					 <a href="/ro/is-gatsby-great-analyzing-title-great-gatsby-1311246">
    						 <img src="https://techcodeview.com/img/blog/17/is-gatsby-great-analyzing-title-great-gatsby.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Este Gatsby grozav? Analizând titlul Marele Gatsby" class="w-full h-full object-cover">
    					 </a>
    				 </div>
    				 <div class="flex-1 min-w-0">
    					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                             <a href="/ro/is-gatsby-great-analyzing-title-great-gatsby-1311246" class="hover:text-tech-500 transition-colors line-clamp-3">Este Gatsby grozav? Analizând titlul Marele Gatsby </a>
                         </h4>
    				 </div>
    			 </article>
    			 <!-- /ARTICLE --> <!-- ARTICLE -->
    			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
    				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
    					 <a href="/ro/print-all-longest-common-sub-sequences-in-lexicographical-order">
    						 <img src="https://techcodeview.com/img/dynamic-programming/39/print-all-longest-common-sub-sequences-in-lexicographical-order.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Tipăriți toate cele mai lungi subsecvențe comune în ordine lexicografică" class="w-full h-full object-cover">
    					 </a>
    				 </div>
    				 <div class="flex-1 min-w-0">
    					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                             <a href="/ro/print-all-longest-common-sub-sequences-in-lexicographical-order" class="hover:text-tech-500 transition-colors line-clamp-3">Tipăriți toate cele mai lungi subsecvențe comune în ordine lexicografică </a>
                         </h4>
    				 </div>
    			 </article>
    			 <!-- /ARTICLE --> <!-- ARTICLE -->
    			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
    				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
    					 <a href="/ro/encoding-decoding-base64-strings-python">
    						 <img src="https://techcodeview.com/img/picked/79/encoding-decoding-base64-strings-python.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Codificarea și decodarea șirurilor Base64 în Python" class="w-full h-full object-cover">
    					 </a>
    				 </div>
    				 <div class="flex-1 min-w-0">
    					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                             <a href="/ro/encoding-decoding-base64-strings-python" class="hover:text-tech-500 transition-colors line-clamp-3">Codificarea și decodarea șirurilor Base64 în Python </a>
                         </h4>
    				 </div>
    			 </article>
    			 <!-- /ARTICLE --> <!-- ARTICLE -->
    			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
    				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
    					 <a href="/ro/roman-numbers-1-100">
    						 <img src="https://techcodeview.com/img/math-concepts/32/roman-numbers-1-100.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Numerele romane de la 1 la 100" class="w-full h-full object-cover">
    					 </a>
    				 </div>
    				 <div class="flex-1 min-w-0">
    					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                             <a href="/ro/roman-numbers-1-100" class="hover:text-tech-500 transition-colors line-clamp-3">Numerele romane de la 1 la 100 </a>
                         </h4>
    				 </div>
    			 </article>
    			 <!-- /ARTICLE --> <!-- ARTICLE -->
    			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
    				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
    					 <a href="/ro/python-exercise-with-practice-questions">
    						 <img src="https://techcodeview.com/img/it-problems-solutions/71/python-exercise-with-practice-questions.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Exercițiu Python cu întrebări și soluții practice" class="w-full h-full object-cover">
    					 </a>
    				 </div>
    				 <div class="flex-1 min-w-0">
    					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                             <a href="/ro/python-exercise-with-practice-questions" class="hover:text-tech-500 transition-colors line-clamp-3">Exercițiu Python cu întrebări și soluții practice </a>
                         </h4>
    				 </div>
    			 </article>
    			 <!-- /ARTICLE --> <!-- ARTICLE -->
    			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
    				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
    					 <a href="/ro/touch-command-linux-unix-with-examples">
    						 <img src="https://techcodeview.com/img/linux-files/32/touch-command-linux-unix-with-examples.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Atingeți Comandă în Linux/Unix cu exemple" class="w-full h-full object-cover">
    					 </a>
    				 </div>
    				 <div class="flex-1 min-w-0">
    					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                             <a href="/ro/touch-command-linux-unix-with-examples" class="hover:text-tech-500 transition-colors line-clamp-3">Atingeți Comandă în Linux/Unix cu exemple </a>
                         </h4>
    				 </div>
    			 </article>
    			 <!-- /ARTICLE -->
    		 </div>
    		
    
             <!-- Categories -->
    		 <div class="mt-8 mb-4 border-b border-slate-100 dark:border-slate-700 pb-2">
    			 <h2 class="text-lg font-bold text-slate-900 dark:text-white uppercase tracking-wide">Categorie </h2>
    		 </div>
    		 <div class="flex flex-wrap gap-2">
                 <a href="/ro/blog/" class="inline-block px-3 py-1 bg-slate-100 dark:bg-slate-700 text-xs font-medium text-slate-600 dark:text-slate-300 rounded-full hover:bg-tech-500 hover:text-white transition-colors">
                    Blog
                 </a> <a href="/ro/java-conversion/" class="inline-block px-3 py-1 bg-slate-100 dark:bg-slate-700 text-xs font-medium text-slate-600 dark:text-slate-300 rounded-full hover:bg-tech-500 hover:text-white transition-colors">
                    Conversie Java
                 </a> <a href="/ro/maths/" class="inline-block px-3 py-1 bg-slate-100 dark:bg-slate-700 text-xs font-medium text-slate-600 dark:text-slate-300 rounded-full hover:bg-tech-500 hover:text-white transition-colors">
                    Matematica
                 </a> <a href="/ro/java-collections/" class="inline-block px-3 py-1 bg-slate-100 dark:bg-slate-700 text-xs font-medium text-slate-600 dark:text-slate-300 rounded-full hover:bg-tech-500 hover:text-white transition-colors">
                    Colecții Java
                 </a> <a href="/ro/differences/" class="inline-block px-3 py-1 bg-slate-100 dark:bg-slate-700 text-xs font-medium text-slate-600 dark:text-slate-300 rounded-full hover:bg-tech-500 hover:text-white transition-colors">
                    Diferențele
                 </a> <a href="/ro/java-string/" class="inline-block px-3 py-1 bg-slate-100 dark:bg-slate-700 text-xs font-medium text-slate-600 dark:text-slate-300 rounded-full hover:bg-tech-500 hover:text-white transition-colors">
                    Șir Java
                 </a>
             </div>
    
             <!-- Interesting Articles Widget -->
    		 <div class="mt-8">
    			 <div class="mb-4 border-b border-slate-100 dark:border-slate-700 pb-2">
    				 <h2 class="text-lg font-bold text-slate-900 dark:text-white uppercase tracking-wide">Articole Interesante </h2>
    			 </div>
    			
    			 <div id="owl-carousel-4" class="owl-carousel owl-theme">
    				 <!-- ARTICLE -->
    				 <article class="relative aspect-video rounded-lg overflow-hidden group mb-2">
    					 <div class="absolute inset-0">
    						 <img src="https://techcodeview.com/img/blog/67/every-ap-environmental-science-practice-test-available.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Fiecare test de practică AP în știința mediului disponibil" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500">
                             <div class="absolute inset-0 bg-gradient-to-t from-black/80 to-transparent"> </div>
    					 </div>
    					 <div class="absolute bottom-0 left-0 p-4">
    						 <div class="text-xs text-tech-400 font-bold mb-1"> <a href="/ro/blog/">Blog </a> </div>
    						 <h4 class="text-sm font-bold text-white leading-tight"> <a href="/ro/every-ap-environmental-science-practice-test-available-131280">Fiecare test de practică AP în știința mediului disponibil </a> </h4>
    					 </div>
    				 </article>
    				 <!-- /ARTICLE --> <!-- ARTICLE -->
    				 <article class="relative aspect-video rounded-lg overflow-hidden group mb-2">
    					 <div class="absolute inset-0">
    						 <img src="https://techcodeview.com/img/python-basics/03/pass-reference-vs-value-python.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Treci prin referință vs valoare în Python" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500">
                             <div class="absolute inset-0 bg-gradient-to-t from-black/80 to-transparent"> </div>
    					 </div>
    					 <div class="absolute bottom-0 left-0 p-4">
    						 <div class="text-xs text-tech-400 font-bold mb-1"> <a href="/ro/python-basics/">Python-Bazele </a> </div>
    						 <h4 class="text-sm font-bold text-white leading-tight"> <a href="/ro/pass-reference-vs-value-python">Treci prin referință vs valoare în Python </a> </h4>
    					 </div>
    				 </article>
    				 <!-- /ARTICLE --> <!-- ARTICLE -->
    				 <article class="relative aspect-video rounded-lg overflow-hidden group mb-2">
    					 <div class="absolute inset-0">
    						 <img src="https://techcodeview.com/img/chemistry-class-10/17/rusting-iron-explanation.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Ruginirea fierului – explicație, reacție chimică, prevenire" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500">
                             <div class="absolute inset-0 bg-gradient-to-t from-black/80 to-transparent"> </div>
    					 </div>
    					 <div class="absolute bottom-0 left-0 p-4">
    						 <div class="text-xs text-tech-400 font-bold mb-1"> <a href="/ro/chemistry-class-10-cat/">Chimie-Clasa-10 </a> </div>
    						 <h4 class="text-sm font-bold text-white leading-tight"> <a href="/ro/rusting-iron-explanation">Ruginirea fierului – explicație, reacție chimică, prevenire </a> </h4>
    					 </div>
    				 </article>
    				 <!-- /ARTICLE --> <!-- ARTICLE -->
    				 <article class="relative aspect-video rounded-lg overflow-hidden group mb-2">
    					 <div class="absolute inset-0">
    						 <img src="https://techcodeview.com/img/kafka-tutorial/08/apache-kafka-tutorial.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Tutorial Apache Kafka" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500">
                             <div class="absolute inset-0 bg-gradient-to-t from-black/80 to-transparent"> </div>
    					 </div>
    					 <div class="absolute bottom-0 left-0 p-4">
    						 <div class="text-xs text-tech-400 font-bold mb-1"> <a href="/ro/kafka-tutorial/">Tutorial Kafka </a> </div>
    						 <h4 class="text-sm font-bold text-white leading-tight"> <a href="/ro/apache-kafka-tutorial">Tutorial Apache Kafka </a> </h4>
    					 </div>
    				 </article>
    				 <!-- /ARTICLE --> <!-- ARTICLE -->
    				 <article class="relative aspect-video rounded-lg overflow-hidden group mb-2">
    					 <div class="absolute inset-0">
    						 <img src="https://techcodeview.com/img/best/04/best-cars-world.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Cele mai bune mașini din lume" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500">
                             <div class="absolute inset-0 bg-gradient-to-t from-black/80 to-transparent"> </div>
    					 </div>
    					 <div class="absolute bottom-0 left-0 p-4">
    						 <div class="text-xs text-tech-400 font-bold mb-1"> <a href="/ro/best/">Cel Mai Bun </a> </div>
    						 <h4 class="text-sm font-bold text-white leading-tight"> <a href="/ro/best-cars-world">Cele mai bune mașini din lume </a> </h4>
    					 </div>
    				 </article>
    				 <!-- /ARTICLE --> <!-- ARTICLE -->
    				 <article class="relative aspect-video rounded-lg overflow-hidden group mb-2">
    					 <div class="absolute inset-0">
    						 <img src="https://techcodeview.com/img/git-tutorial/22/git-head.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Git Head" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500">
                             <div class="absolute inset-0 bg-gradient-to-t from-black/80 to-transparent"> </div>
    					 </div>
    					 <div class="absolute bottom-0 left-0 p-4">
    						 <div class="text-xs text-tech-400 font-bold mb-1"> <a href="/ro/git-tutorial/">Tutorial Git </a> </div>
    						 <h4 class="text-sm font-bold text-white leading-tight"> <a href="/ro/git-head">Git Head </a> </h4>
    					 </div>
    				 </article>
    				 <!-- /ARTICLE -->
    			 </div>
    		 </div>
    	 </div>
     </div>
     <!-- /Aside Column -->         </div>
            </div>
         </div>
    
     <footer class="site-footer">
             <div class="container">
                 <span class="footer-links">
                    Copyright ©2026 Toate Drepturile Rezervate | 
                     <a href="//www.techcodeview.com/sv/">techcodeview.com </a> | 
                     <a href="/disclaimer" rel="nofollow noopener noreferrer" target="_blank">Declinare A Răspunderii </a> | 
                     <a href="/about-us" rel="nofollow noopener noreferrer" target="_blank">Despre Noi </a> | 
                     <a href="/privacy-policy" rel="nofollow noopener noreferrer" target="_blank">Politica De Confidențialitate </a> 
                 </span>
             </div>
         </footer>
     
         <script type="text/javascript" src="https://techcodeview.com/template/assets/plugins/jquery-1.11.3.min.js"> </script>
         <script type="text/javascript" src="https://techcodeview.com/template/assets/plugins/bootstrap/js/bootstrap.min.js"> </script>    
         <script type="text/javascript" src="https://techcodeview.com/template/assets/js/main.js"> </script>     
    	 <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/highlight.min.js"> </script>
    	 <script>
        !function(){"use strict";let t=document.createElement("button");t.id="toTopBtn",t.innerHTML="↑";let e=`
            #toTopBtn {
                position: fixed; bottom: 25px; right: 25px; z-index: 9999; opacity: 0; visibility: hidden; background-color: #0ea5e9; color: white; border: none; border-radius: 8px; width: 50px; height: 50px; font-size: 24px; cursor: pointer; transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
            }
            #toTopBtn:hover { background-color: #0284c7; }
        `,i=document.createElement("style");i.type="text/css",i.innerText=e,document.head.appendChild(i),document.body.appendChild(t),window.addEventListener("scroll",()=>{let e=window.scrollY||document.documentElement.scrollTop;e>300?(t.style.opacity="1",t.style.visibility="visible"):(t.style.opacity="0",t.style.visibility="hidden")}),t.addEventListener("click",()=>{window.scrollTo({top:0,behavior:"smooth"})})}();
         </script>
     </body>
     </html>