Multimedia da haɗa abun ciki suna taka muhimmiyar rawa wajen haɓaka sha'awar gani da hulɗar shafukan yanar gizo. Anan akwai ƙarin cikakkun bayanai da takamaiman misalai na yadda ake amfani da multimedia da shigar da abun ciki a cikin HTML.
Hotuna
Don nuna hotuna a shafin yanar gizon, yi amfani da <img>
alamar. Ƙayyade tushen hoton ta amfani da src
sifa, kuma samar da madadin rubutu ta amfani da alt
sifa don samun dama.
Ga misali:
Audio
Don shigar da fayilolin mai jiwuwa, yi amfani da <audio>
alamar. Ƙayyade tushen mai jiwuwa ta amfani da src
sifa, kuma kuna iya ƙara sarrafawa don sake kunnawa ta amfani da controls
sifa.
Ga misali:
Bidiyo
Don saka bidiyo, yi amfani da <video>
alamar. Saita tushen bidiyo ta amfani da src
sifa, kuma haɗa da controls
sifa don sarrafa sake kunna bidiyo.
Ga misali:
Taswirori
Don shigar da taswira daga ayyuka kamar Google Maps, yi amfani da <iframe>
alamar kuma saka lambar haɗa taswirar da sabis ɗin ya bayar.
Ga misali:
Aikace-aikacen Yanar Gizo
Don shigar da aikace-aikacen yanar gizo ko gidajen yanar gizo na waje, sake amfani da <iframe>
alamar kuma samar da URL na aikace-aikacen gidan yanar gizon.
Ga misali:
Waɗannan misalan suna kwatanta yadda ake haɗa nau'ikan multimedia da abun ciki na waje daban-daban cikin shafukan HTML ɗinku. Tabbatar daidaita halaye da girma kamar yadda ake buƙata don tabbatar da ingantaccen nuni da aiki.