Introducere XHTML

Introducere XHTML

XHTML sau Limbajul de marcare hipertext extensibil este un amestec de HTML și XML, foarte asemănător cu HTML dar mai stricte. Este ca un cadru de reguli pentru a crea pagini web pe care browserele le înțeleg cu ușurință. Spre deosebire de HTML, trebuie să fii atent și să urmezi întocmai regulile. Majoritatea browserelor îl acceptă. Gândiți-vă la asta ca la o modalitate mai precisă de a scrie cod web.

Cuprins

Istorie

A fost dezvoltat de World Wide Web Consortium (W3C) și îi ajută pe dezvoltatorii web să treacă de la HTML la XML. Cu XHTML, dezvoltatorii pot intra în lumea XML cu toate caracteristicile sale, asigurând în același timp compatibilitatea anterioară și viitoare a conținutului. Familia XHTML include trei tipuri de documente; primul este XHTML 1.0, care a fost recomandat de W3C pe 26 ianuarie 2000. Al doilea este XHTML 1.1, care a fost recomandat de W3C pe 31 mai 2001.

Al treilea este XHTML5, un standard folosit pentru dezvoltarea unei adaptări XML a specificației HTML5. Un document XHTML trebuie să aibă o declarație XHTML.

Elemente ale XHTML:

Element XHTML Descriere
> Folosit pentru a declara definiția tipului de document (DTD), specificând regulile pentru limbajul de marcare, asigurând randarea corectă în browsere.
> Include întregul document HTML sau XHTML, servind ca element rădăcină.
> Conține metainformații despre document, cum ar fi titlul, setul de caractere, foile de stil legate și alte elemente esențiale.
> Imbricat în secțiunea de cap, specifică titlul documentului, afișat în bara de titlu sau fila browserului.
> Include conținutul paginii web, inclusiv text, imagini, link-uri și alte elemente HTML. Reprezintă partea vizibilă a documentului afișată în browser.

La crearea unei pagini web XHTML, este necesar să includeți o declarație DTD (Document Type Definition). Există trei tipuri de DTD care sunt discutate mai jos:

DTD de tranziție:

Este acceptat de browserele mai vechi care nu au suport pentru foi de stil în cascadă încorporate. În eticheta body sunt incluse mai multe atribute care nu sunt permise în DTD strict.

Sintaxă:

 PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'DTD/xhtml1-transitional.dtd'>>>>   

Exemplu: În acest exemplu vom vedea codul pentru scrierea unui document XHTML cu un exemplu.

html




xml version='1.0' encoding='UTF-8'?> DTD de tranziție XHTMLtitle> head> <body bgcolor='#dae1ed'> <div>font-weight:bold;text-align:center; margin-bottom:-25px;'>techcodeview.comdiv> <p style='text-align:center;font-size:20px;'>Un portal de informaticăp> <p style='text-align:center;font-size:20px;'>Opțiunea de a alege luna: <select name='month'> <option selected='selected'>Opțiunea ianuarie> <option>Opțiunea februarie> <option>Marchoption> <option>Aprilopțiune> <option>Mayoption> <option>Juneoption> <option>Opțiune iulie> <option>Augusyoption> <option>opțiunea septembrie> <option>Opțiune octombrie> <option>Opțiune noiembrie> <option>Decembrieoption> select> p> body> html>>> </code> </td> </tr> </tbody> </table> <p> </p> <i id='output-icon' title='Output'> </i> <p> </p> <tag data-text-3=' </pre> <p> </p> <i id='copy-url-button' title='Copy Generated Ide URL'> </i> <p> </p> <p> </p> <p dir='ltr'> <b> <strong>Ieșire: </strong> </b> </p> <p> <img src='//techcodeview.com/img/html-xml/79/xhtml-introduction.webp' alt='tranzițional dtd xhtml'> <span> </span> </p> <h2 id='strict-dtd'> <b> <strong>DTD strict: </strong> </b> <span> </span> </h2> <p dir='ltr'> <span>DTD strict este utilizat atunci când pagina XHTML conține doar limbaj de marcare. DTD strict este folosit împreună cu foile de stil în cascadă, deoarece acest atribut nu permite proprietatea CSS în eticheta body. </span> </p> <h3> <b> <strong>Sintaxă: </strong> </b> </h3> <pre> PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'DTD/xhtml1-strict.dtd'>>>> </tag> <p dir='ltr'> <b> <strong>Exemplul 2: </strong> </b> <span>În acest exemplu vom vedea codul pentru scrierea unui document XHTML cu un exemplu pentru DTD strict. </span> </p> <h2>html </h2> <i id='copy-code-button' title='Copy Code'> </i> <p> </p> <p> <i id='run-and-edit-button' title='Edit Code' lang='xml'> </i> <br> </p> <p> <i id='run-code-button' lang='xml' title='Run Code and See Output'> </i> </p> <p> <i id='generate-url-and-run-button' title='Run Code and Generate IDE URL' lang='xml'> </i> <br> <i title='Dark Mode'> </i> <br> <i id='edit-on-ide-button' title='Edit on IDE' lang='xml'> </i> </p> <p> </p> <table class="table"> <tbody> <tr> <td> <code>xml version='1.0' encoding='UTF-8'?> <html xmlns=' http://www.w3.org/1999/xhtml ' xml:lang='en' lang='en'> <head> <title>Strict DTD XHTMLtitle> head> <body> <div>font-weight:bold;text-align:center; margin-bottom:-25px;'>techcodeview.comdiv> <p style='text-align:center;font-size:20px;'>Un portal de informaticăp> <p style='text-align:center;font-size:20px;'>Opțiunea de a alege luna: <select name='month'> <option selected='selected'>Opțiunea ianuarie> <option>Opțiunea februarie> <option>Marchoption> <option>Opțiune aprilie> <option>Mayoption> <option>Juneoption> <option>Opțiune iulie> <option>Augusyoption> <option>opțiunea septembrie> <option>Opțiune octombrie> <option>Opțiune noiembrie> <option>Decemberoption> select> p> body> html>>> </code> </td> </tr> </tbody> </table> <p> </p> <i id='output-icon' title='Output'> </i> <p> </p> <tag data-text-3=' </pre> <p> </p> <i id='copy-url-button' title='Copy Generated Ide URL'> </i> <p> </p> <p> </p> <p dir='ltr'> <b> <strong>Ieșire: </strong> </b> </p> <p> <span> </span> <img src='//techcodeview.com/img/html-xml/79/xhtml-introduction-2.webp' alt='strict dtd xhtml'> <span> </span> </p> <h2 id='frameset-dtd'> <b> <strong>DTD cadru: </strong> </b> <span> </span> </h2> <p dir='ltr'> <span>Setul de cadre DTD este utilizat atunci când pagina XHTML conține cadre. Acest DTD este identic cu DTD de tranziție HTML 4.01, cu excepția modelului de conținut al elementului HTML. </span> </p> <h3> <b> <strong>Sintaxă: </strong> </b> </h3> <pre> PUBLIC '-//W3C//DTD XHTML 1.0 Frameset//EN' 'DTD/xhtml1-frameset.dtd'>>>> </tag> <p dir='ltr'> <b> <strong>Exemplul 2: </strong> </b> <span>În acest exemplu vom vedea codul pentru scrierea unui document XHTML cu un exemplu pentru DTD frameset. </span> </p> <h2>html </h2> <i id='copy-code-button' title='Copy Code'> </i> <p> </p> <p> <i id='run-and-edit-button' title='Edit Code' lang='xml'> </i> <br> </p> <p> <i id='run-code-button' lang='xml' title='Run Code and See Output'> </i> </p> <p> <i id='generate-url-and-run-button' title='Run Code and Generate IDE URL' lang='xml'> </i> <br> <i title='Dark Mode'> </i> <br> <i id='edit-on-ide-button' title='Edit on IDE' lang='xml'> </i> </p> <p> </p> <table class="table"> <tbody> <tr> <td> <code>xml version='1.0' encoding='UTF-8'?>http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd '> <html xmlns=' http://www.w3.org/1999/xhtml ' xml:lang='en' lang='en'> <head> <title>Frameset DTD XHTMLtitle> head> <frameset cols='30%, 20%, *'> <frameset rows='40%, 30%, *'> <frame src='gfg.html' /> <frame src='gfg1.html' /> <frame src='geeks.html' />set de cadre> <frameset rows='40%, 60%'> <frame src='g4g.html' /> <frame src='g4g1.html' />set de cadre> <frameset rows='20%, 20%, 30%, *'> <frame src='geeksforgeeks.html' /> <frame src='geeksforgeeks1.html' /> <frame src='geeksforgeeks2.html' /> <frame src='geeksforgeeks3.html' />set de cadre> set de cadre> html>>> </code> </td> </tr> </tbody> </table> <p> </p> <i id='output-icon' title='Output'> </i> <p> </p> <tag data-text-3=' </pre> <p> </p> <i id='copy-url-button' title='Copy Generated Ide URL'> </i> <p> </p> <p> </p> <p dir='ltr'> <b> <strong>Ieșire: </strong> </b> </p> <h2 id='why-use-xhtml'> <img src='//techcodeview.com/img/html-xml/79/xhtml-introduction-3.webp' alt='set de cadre dtd xhtml'> <b> <strong>De ce să folosiți XHTML? </strong> </b> </h2> <ul> <li value='1'> <span>Documentele XHTML sunt validate cu instrumente XML standard. </span> </li> <li value='2'> <span>Este ușor de întreținut, convertit, editat documentul pe termen lung. </span> </li> <li value='3'> <span>Este folosit pentru a defini standardul de calitate al paginilor web. </span> </li> <li value='4'> <span>XHTML este un standard oficial al W3C, site-ul dvs. devine mai compatibil și mai precis cu multe browsere. </span> </li> </ul> <h2 id='benefits-of-xhtml'> <b> <strong>Avantajele XHTML: </strong> </b> </h2> <ul> <li value='1'> <span>Toate etichetele XHTML trebuie să aibă etichete de închidere și să fie imbricate corect. Acest lucru generează un cod mai curat. </span> </li> <li value='2'> <span>Documentele XHTML sunt slabe, ceea ce înseamnă că folosesc mai puțină lățime de bandă. Acest lucru reduce costurile mai ales dacă site-ul dvs. web are 1000 de pagini. </span> </li> <li value='3'> <span>Documentele XHTML sunt bine formatate, bine formate și pot fi transportate cu ușurință pe dispozitive fără fir, cititoare Braille și alte medii web specializate. </span> </li> <li value='4'> <span>Toate noile dezvoltări vor fi în XML (din care XHTML este o aplicație). </span> </li> <li value='5'> <span>XHTML funcționează în asociere cu CSS pentru a crea pagini web care pot fi actualizate cu ușurință. </span> </li> </ul> <h2 id='difference-between-html-and-xhtml'> <b> <strong>Diferența dintre HTML și XHTML: </strong> </b> </h2> <table class="table"> <tbody> <tr> <th> <span>HTML </span> </th> <th> <span>XHTML </span> </th> </tr> </tbody> <tbody> <tr> <td> <span>HTML sau HyperText Markup Language este principalul limbaj de marcare pentru crearea paginilor web </span> </td> <td> <span>XHTML (Extensible HyperText Markup Language) este o familie de limbaje de marcare XML care oglindesc sau extind versiuni ale limbajului HTML (Hypertext Markup Language) utilizat pe scară largă. </span> </td> </tr> <tr> <td> <span>Cadru flexibil care necesită un parser specific HTML indulgent </span> </td> <td> <span>Subset restrictiv de XML care trebuie analizat cu parsere XML standard </span> </td> </tr> <tr> <td> <span>Propus de Tim Berners-Lee în 1987 </span> </td> <td> <span>Recomandarea World Wide Web Consortium din 2000. </span> </td> </tr> <tr> <td> <span>Aplicarea limbajului de marcare generalizat standard (SGML). </span> </td> <td> <span>Aplicarea XML </span> </td> </tr> <tr> <td> <span>Extins din SGML. </span> </td> <td> <span>Extins din XML, HTML </span> </td> </tr> </tbody> </table> <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=Introducere XHTML&url=https://www.techcodeview.com/ro/xhtml-introduction" 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/xhtml-introduction" 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/xhtml-introduction&title=Introducere XHTML" 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/binary-number-system" 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/math-concepts/97/binary-number-system.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Sistemul de numere binare" 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/binary-number-system">Sistemul de numere binare </a> </h4> </div> <div class="group"> <a href="/ro/how-italicize-text-css" 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/css-properties/17/how-italicize-text-css.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Cum se scriu cu italice text în CSS?" 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/how-italicize-text-css">Cum se scriu cu italice text în CSS? </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/serialization-annotations-jackson"> <img src="https://techcodeview.com/img/jackson-tutorial/82/serialization-annotations-jackson.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Adnotări de serializare în Jackson" 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/serialization-annotations-jackson" class="hover:text-tech-500 transition-colors line-clamp-3">Adnotări de serializare în Jackson </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/ubuntu-build-essential"> <img src="https://techcodeview.com/img/linux-tutorial/58/ubuntu-build-essential.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Ubuntu Build Essential" 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/ubuntu-build-essential" class="hover:text-tech-500 transition-colors line-clamp-3">Ubuntu Build Essential </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/evaporation"> <img src="https://techcodeview.com/img/chemistry-class-9/28/evaporation.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Evaporare" 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/evaporation" class="hover:text-tech-500 transition-colors line-clamp-3">Evaporare </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/printing-output-an-r-program"> <img src="https://techcodeview.com/img/picked/08/printing-output-an-r-program.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Tipărirea rezultatelor unui program R" 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/printing-output-an-r-program" class="hover:text-tech-500 transition-colors line-clamp-3">Tipărirea rezultatelor unui program R </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/identifier-expected-error-java"> <img src="https://techcodeview.com/img/java-tutorial/74/identifier-expected-error-java.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Eroare așteptată de identificare în Java" 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/identifier-expected-error-java" class="hover:text-tech-500 transition-colors line-clamp-3">Eroare așteptată de identificare în Java </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/java-convert-string-char"> <img src="https://techcodeview.com/img/java-conversion/87/java-convert-string-char.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Java Convert String în char" 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/java-convert-string-char" class="hover:text-tech-500 transition-colors line-clamp-3">Java Convert String în char </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/numpy-linspace-method-create-evenly-spaced-array"> <img src="https://techcodeview.com/img/python-numpy-arraycreation/95/numpy-linspace-method-create-evenly-spaced-array.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="NumPy linspace() Metoda | Creați o matrice uniform distanțată" 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/numpy-linspace-method-create-evenly-spaced-array" class="hover:text-tech-500 transition-colors line-clamp-3">NumPy linspace() Metoda | Creați o matrice uniform distanțată </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/data-flow-diagrams"> <img src="https://techcodeview.com/img/software-engineering/64/data-flow-diagrams.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Diagrame de flux de date" 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/data-flow-diagrams" class="hover:text-tech-500 transition-colors line-clamp-3">Diagrame de flux de date </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/where-is-gulf-mexico-131772"> <img src="https://techcodeview.com/img/blog/57/where-is-gulf-mexico.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Unde este Golful Mexic? 11 fapte pe care ar trebui să le știți" 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/where-is-gulf-mexico-131772" class="hover:text-tech-500 transition-colors line-clamp-3">Unde este Golful Mexic? 11 fapte pe care ar trebui să le știți </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/balanced-binary-search-tree"> <img src="https://techcodeview.com/img/ds-tutorial/79/balanced-binary-search-tree.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Arborele de căutare binar echilibrat" 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/balanced-binary-search-tree" class="hover:text-tech-500 transition-colors line-clamp-3">Arborele de căutare binar echilibrat </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/java-tutorial/64/java-cron-expression.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Expresia Java Cron" 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/java-tutorial/">Tutorial Java </a> </div> <h4 class="text-sm font-bold text-white leading-tight"> <a href="/ro/java-cron-expression">Expresia Java Cron </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/23/logging-python.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Conectarea la 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/">Piton </a> </div> <h4 class="text-sm font-bold text-white leading-tight"> <a href="/ro/logging-python">Conectarea la 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/parts-speech/85/parts-speech-definitions.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Părți de vorbire: definiții, exemple și 8 tipuri" 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/parts-speech/">Fragmente Din Discurs </a> </div> <h4 class="text-sm font-bold text-white leading-tight"> <a href="/ro/parts-speech-definitions">Părți de vorbire: definiții, exemple și 8 tipuri </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/dbms-sql/27/sql-with-clause.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="SQL | CU clauza" 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/dbms-sql/">Dbms-Sql </a> </div> <h4 class="text-sm font-bold text-white leading-tight"> <a href="/ro/sql-with-clause">SQL | CU clauza </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/c-tutorial/97/how-split-strings-c.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Cum se împarte șiruri în C++?" 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/c-tutorial/">Tutorial C++ </a> </div> <h4 class="text-sm font-bold text-white leading-tight"> <a href="/ro/how-split-strings-c">Cum se împarte șiruri în C++? </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/dynamic-programming/73/largest-plus-or-formed-by-all-ones-in-a-binary-square-matrix.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Cel mai mare Plus sau „+” format din toate cele dintr-o matrice pătrată binară" 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/dynamic-programming/">Programare dinamică </a> </div> <h4 class="text-sm font-bold text-white leading-tight"> <a href="/ro/largest-plus-or-formed-by-all-ones-in-a-binary-square-matrix">Cel mai mare Plus sau „+” format din toate cele dintr-o matrice pătrată binară </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/pl/">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>