Understanding Head Tags: title, meta, link

 

Tags-ka Madaxda: <title>, <meta>, <link>
Head Tags: <title>, <meta>, <link>
 Head Tags: <title>, <meta>, <link>

HTML (Hypertext Markup Language) waa luqadda loo isticmaalo in lagu abuuro loona qaabeeyo bogagga internetka. Marka aan ka hadlayno HTML, tags-ka madaxda waa qayb muhiim ah oo loo isticmaalo in lagu siiyo macluumaad muhiim ah bogga internetka. Tags-ka madaxda waxaa lagu qoraa gudaha qaybta <head> ee HTML-ka, waxaana kamid ah <title>, <meta>, iyo <link>. Maqaalkan, waxaan si faahfaahsan uga hadli doonaa tags-kan iyo sida ay muhiim ugu yihiin horumarinta iyo qaabeynta bogagga internetka.

Tags-ka <title>

Tag-ga <title> waa mid ka mid ah tags-ka ugu muhiimsan ee gudaha <head>. Waxaa loo isticmaalaa in lagu qeexo cinwaanka bogga internetka, kaasoo ka muuqda tab-ka browser-ka iyo marka bogga lagu daro bookmarks. Tag-ga <title> wuxuu ka caawiyaa dadka isticmaala iyo matoorada raadiyaha (search engines) inay si sax ah u fahmaan waxa bogga ku saabsan yahay. Tusaale ahaan:

html

<!DOCTYPE html> <html lang="en"> <head> <title>Barashada HTML - Maqaalka Tags-ka Madaxda</title> </head> <body> <h1>Kusoo Dhawaaw Barashada HTML</h1> </body> </html>

Tags-ka <meta>

Tags-ka <meta> waxaa loo isticmaalaa in lagu bixiyo macluumaad dheeraad ah oo ku saabsan bogga internetka. Macluumaadkan waxaa ka mid ah encoding-ka xarafyada, meta description, keywords, iyo xogta la xiriirta author-ka. Waxaa jira dhowr nooc oo tags-ka <meta> ah oo loo isticmaali karo ujeeddooyin kala duwan:

  1. Meta Charset: Waxaa loo isticmaalaa in lagu qeexo encoding-ka xarafyada ee bogga. Tusaale ahaan:

    html

    <meta charset="UTF-8">
  2. Meta Description: Waxaa loo isticmaalaa in lagu bixiyo sharaxaad kooban oo ku saabsan bogga, taasoo ka muuqata natiijooyinka raadinta (search results). Tusaale ahaan:

    html

    <meta name="description" content="Maqaal faahfaahsan oo ku saabsan tags-ka madaxda ee HTML, sida <title>, <meta>, iyo <link>.">
  3. Meta Keywords: Waxaa loo isticmaalaa in lagu bixiyo keywords-ka la xiriira bogga, inkastoo matoorada raadiyaha qaarkood aysan sidaa u adeegsan hadda. Tusaale ahaan:

    html

    <meta name="keywords" content="HTML, tags-ka madaxda, title, meta, link">
  4. Meta Author: Waxaa loo isticmaalaa in lagu bixiyo magaca qoraaga bogga. Tusaale ahaan:

    html

    <meta name="author" content="Mowlid Cali Siidow">

Tags-ka <link>

Tag-ga <link> waxaa loo isticmaalaa in lagu xiro faylasha dibadda ee loo baahan yahay bogga, sida CSS stylesheets, icons, ama prefetching links. Tag-ga <link> waa empty tag, taasoo macnaheedu yahay inuusan lahayn closing tag. Waxaa jira dhowr nooc oo tags-ka <link> ah oo loo isticmaali karo ujeeddooyin kala duwan:

  1. Link Stylesheet: Waxaa loo isticmaalaa in lagu xiro stylesheet dibadda ah oo loogu talagalay in lagu qaabeeyo bogga. Tusaale ahaan:

    html

    <link rel="stylesheet" href="styles.css">
  2. Link Icon: Waxaa loo isticmaalaa in lagu xiro icon-ka browser tab-ka ama bookmarks-ka, oo loo yaqaan favicon. Tusaale ahaan:

    html

    <link rel="icon" href="favicon.ico" type="image/x-icon">
  3. Link Preload: Waxaa loo isticmaalaa in lagu xiro faylasha muhiimka ah ee la doonayo in lagu shubo si degdeg ah markii bogga la furayo. Tusaale ahaan:

    html

    <link rel="preload" href="main.js" as="script">

Gunaanad

Tags-ka madaxda ee HTML-ka sida <title>, <meta>, iyo <link> waa qayb muhiim ah oo ka mid ah bogagga internetka. Tag-ga <title> wuxuu qeexaa cinwaanka bogga, tag-ga <meta> wuxuu bixiya macluumaad dheeraad ah oo ku saabsan bogga, halka tag-ga <link> uu xiro faylasha dibadda ee loo baahan yahay. Isticmaalka saxda ah ee tags-kan wuxuu ka caawiyaa horumarinta SEO, hagaajinta isticmaalkooda, iyo bixinta waayo-aragnimo wanaagsan oo isticmaale. Haddii aad dooneyso in boggaaga uu noqdo mid fiican oo xirfad leh, waa muhiim inaad si sax ah u isticmaasho tags-ka madaxda ee HTML.

Previous Post Next Post