100 likes | 199 Vues
Learn the fundamental building blocks of HTML, including opening and closing tags, the head element, title element, and body element. Understand how to structure your HTML document correctly by following the standard format. Start creating your web pages with confidence using these essential elements.
E N D
Un element are trei parti: un tag de deschidere, continutul elementului si tag-ul de inchidere. • - <p> - tag-ulpentrudeschidereaunuiparagraf. • - Continutulelementului - paragrafulpropriu-zis. • - </p> - tag-ul de inchidere.
Toatepaginile web voraveacelputinelementele de baza: html, head, title si body.<html>element...</html>
Un document HTML intotdeaunavaincepesivatermina cu un tag <html> sirespectiv </html>. Aceastaestestructura standard a unui HTML.
Deschide-ti programul Notepad si copiatiurmatorul cod: <html></html>
Elementul <head> Elementul <head> estecel care urmeaza. Atatatimpcandeste pus intre html si body totulartrebuiisa fie OK. "Head" nu are nici o functievizibila.<Head> poateoferi browser-uluiinformatiifoarte utile. <html> <head> </head> </html>
Elementul <title> Pentru ca totulsaiasabinetrebuiesapune-ti tag-ul title inauntrulcelui de head. Ceeaceve-tiscrieintreceledoua tag-uri title (<title> si </title>) vaputeafivizualizat ca sinumele browser-ului, de obicei in partea din stangasus. Alaturatavemsicodulsursa: <html> <head> <title> Prima mea pagina web!</title> </head> </html>
Elementul <body> Elementul body estecel care definesteincepereacontinutuluipaginiipropriu-zise (titluriparagrafurifotografiimuzicasioricealtceva).
<html><head> <title> Prima mea pagina web!</title></head><body> SalutGasca! Aicivoipunemaitarziucontinutul! </body></html>