An Warware: Buɗe hanyar haɗi a cikin sabon shafin

Babban matsala tare da Buɗe Markdown links a cikin sababbin shafuka shine suna buɗewa a cikin sabuwar taga maimakon a cikin shafin na yanzu. Wannan na iya zama mai ɗaukar hankali idan kuna ƙoƙarin yin aiki akan takarda a cikin shafuka da yawa kuma ku sami hanyar haɗin yanar gizo a cikin sabuwar taga.

<a href="http://example.com" target="_blank" rel="noopener">Link</a>

Layin lambar yana ƙirƙirar hanyar haɗi zuwa gidan yanar gizon "http://example.com". Lokacin da aka danna, hanyar haɗin za ta buɗe a cikin sabon taga mai bincike ko tab.

Haɗin haɗin kai

Akwai ƴan sifofi waɗanda za a iya amfani da su don gano hanyar haɗi a cikin HTML. Siffar href ita ce mafi kowa kuma ta ƙayyade URL ɗin daftarin aiki da aka haɗa. Sifa ta rel tana nuna ko hanyar haɗin yanar gizo ce ko a'a, kuma sifa ta kafofin watsa labarai tana ƙayyadaddun nau'in kafofin watsa labarai waɗanda ke da alaƙa da hanyar haɗin (misali, hoto, bidiyo).

Shafi posts:

Leave a Comment