Aflați programarea HTML: ar trebui să știți asta
Astăzi miliarde de site-uri web pot fi găsite pe Internet. Puteți începe programarea HTML în acest sfat practic. Vă explicăm și termenii cei mai importanți.
WWW, URL, HTML și Co. - Ce înseamnă aceste abrevieri?
Când vine vorba de programarea site-urilor web, diferiți termeni apar rapid. Dar ce înseamnă exact acești termeni?
- „WWW” este abrevierea pentru „World Wide Web”. Acesta este un sistem de site-uri web în rețea care sunt oferite pe Internet. WWW este doar o parte a întregului Internet.
- „Hyperlinks” sunt trimiteri la alte site-uri web.
- Un „sistem hipertext” sau „sistem hipermedia” este o structură în rețea. Hiperlink-urile sunt utilizate pentru a lega texte și alte unități de afișare pentru informații. WWW este, de asemenea, un sistem hypermedia, deoarece informațiile sunt transmise sub formă de site-uri web și unități multimedia.
- „Browserul” este folosit pentru navigarea într-un sistem hipermedia. Acest lucru solicită site-ul web de la un „server web”.
- Un „server web” este un computer la care (aproape) toți oamenii au acces prin internet.
- Prescurtarea „URL” înseamnă „Localizator unic de resurse” și servește la identificarea și localizarea unică a documentelor web. Structura de bază a URL-ului arată astfel: Protocol: // adresa computerului / adresa documentului
- „HTML” înseamnă „Limba de marcare a hipertextului”, deoarece este un limbaj pentru descrierea hipertextelor.
Programare HTML - ar trebui să știți asta
Programarea unei pagini HTML nu este chiar atât de dificilă în zilele noastre. Pentru programare, puteți utiliza editorul Windows normal sau Notepad ++.
- La început există întotdeauna declarația de tip de document, care va fi importantă ulterior în validare. Așa că adăugați comanda "" la începutul fișierului.
- În HTML, se utilizează etichete de deschidere și închidere. Începe întotdeauna cu ziua de deschidere "". La sfârșit, ar trebui să adăugați eticheta de închidere "". Puteți adăuga, de asemenea, atribute la aceste etichete. Pur și simplu înlocuiți „„ cu un „„. În acest caz, browserul știe și ce limbă este folosită. Cu toate acestea, nu trebuie să adăugați acest atribut la ziua de închidere.
- Puteți începe antetul site-ului web cu "". Totuși, nu uitați ziua de încheiere la sfârșit. În antet, puteți, de exemplu, să definiți un titlu cu "". De asemenea, ar trebui să folosiți comanda "" pentru a specifica setul de caractere pe care îl utilizați.
- Pe lângă antet există și "", în care puteți ancora conținutul paginii reale. Cu "
"Puteți adăuga un nou paragraf de text. În acest fel, întregul text poate fi structurat mai clar. Dar nu uitați să închideți din nou eticheta. Comanda" este, de asemenea, foarte practică.
", cu care textul este aranjat în centru. Puteți utiliza"
Adăugați“. - Adăugați rubrici cu "
""
", și așa mai departe.
- Puteți obține o listă cu "
- "(" listă comandată ") sau"
- Creați“.
- Se poate deschide cu ușurință o masă cu o comandă precum "
"crea cu"
"adăugați un nou rând de tabelă. Puteți utiliza" „(Bold) sau„ "(Font normal). - Adăugați un hyperlink cu "". Puteți utiliza „
"În cazul în care imaginea nu poate fi încărcată, în schimb, se emite valoarea care este stocată la„ vechi ". - Pentru a vă face textele mai frumoase, puteți să le formatați și în HTML. Cu " " puteți afișa un text cu caractere italice. La rândul său, comanda " " este îndrăzneață și puteți utiliza comanda "" pentru a adăuga o ofertă.
- Cu toate acestea, adăugarea unei coloane sonore este puțin mai complicată. Mai întâi scrieți comanda "". În acest caz, coloana sonoră este redată automat. Apoi scrieți comanda "
- Un videoclip funcționează similar. Pentru aceasta, utilizați comanda "" pentru a seta dimensiunea videoclipului dvs. Apoi folosiți comanda "
HTML: validarea site-urilor web
Pentru a vă asigura că nu există erori de afișare, ar trebui să faceți site-ul dvs. valid.
- Un validator este un „expert HTML” care recunoaște erorile din textul sursă.
- De obicei, browserele încearcă să ignore incoerențele și generează în continuare o pagină semnificativă, datorită procesării algoritmice a browserelor. Totuși, acest lucru nu reușește întotdeauna.
- Deoarece există multe versiuni HTML diferite, declarația de tip document este foarte importantă. Un document HTML este valid dacă respectă toate regulile limbajului HTML, versiunea HTML descrisă în declarația de tip document.
- De exemplu, puteți testa un validator pentru HTML5 aici.
Vom explica în următorul sfat practic cum puteți decodifica codurile QR de mână fără un scaner.
Ați Putea Dori, De Asemenea...
- Adăugați un hyperlink cu "". Puteți utiliza „
- "(" lista neordonată "). Aici puteți utiliza"