Cov txheej txheem:

Koj yuav ntxiv qhov href hauv HTML li cas?
Koj yuav ntxiv qhov href hauv HTML li cas?

Video: Koj yuav ntxiv qhov href hauv HTML li cas?

Video: Koj yuav ntxiv qhov href hauv HTML li cas?
Video: Npaum Li Cas - David Yang (Prod. By Keeneng Vang) 2024, Tej zaum
Anonim

Txhawm rau ntxig ib qhov txuas, siv lub cim nrog lub href tus cwj pwm los qhia qhov chaw nyob ntawm nplooj ntawv phiaj. Piv txwv: <a href ="https://www.google.com">. Koj tuaj yeem ua qhov txuas mus rau lwm nplooj ntawv hauv koj lub vev xaib yooj yim los ntawm kev sau npe cov ntaub ntawv: <a href = = page 2. html ">.

Ua li no, ua li cas koj tso lub href hauv HTML?

Tshooj Summary

  1. Siv lub ntsiab los txhais qhov txuas.
  2. Siv tus cwj pwm href los txheeb xyuas qhov chaw nyob txuas.
  3. Siv lub hom phiaj tus cwj pwm los txhais qhov twg qhib qhov linkeddocument.
  4. Siv cov

    element (sab hauv) siv ib qho duab txuas.

  5. Siv tus cwj pwm id (id="value") los txhais cov ntawv cim hauv nplooj ntawv.

Kuj Paub, href =# txhais li cas? Muab lub cim "#" ua tus href rau ib yam dab tsi txhais tau tias tias nws taw qhia tsis yog qhov sib txawv URL, tab sis theej rau lwm tus id lossis lub npe cim npe ntawm tib nplooj ntawv.

Tsis tas li ntawd, dab tsi yog kev siv lub href tag hauv HTML?

Cov tag txhais a hyperlink , yog siv rau txuas ntawm ib nplooj ntawv mus rau lwm qhov. Yam tseem ceeb tshaj plaws ntawm lub keeb yog cov href attribute, uas qhia cov qhov link qhov chaw. Los ntawm lub neej ntawd, cov kev sib txuas yuav tshwm sim raws li hauv qab no hauv allbrowsers: Ib qho tsis tau mus xyuas txuas yog underlined thiabblue.

Kuv yuav tsim ib tug hyperlink li cas?

Tsim ib qho hyperlink rau qhov chaw nyob hauv lub vev xaib

  1. Xaiv cov ntawv lossis daim duab uas koj xav tso tawm ua ahyperlink.
  2. Ntawm Insert tab, nyem Hyperlink. Koj muaj peev xwm kuj right-click the text or picture and click Hyperlink on the shortcut menu.
  3. Hauv Insert Hyperlink box, ntaus lossis muab koj qhov txuas rau hauv qhov chaw nyob.

Pom zoo: