let me try this again without so many instances of the word "code"
sorry i didn't explain, i thought when you asked how to do videos, it meant that you were asking me for the full instagram code specifically. i'm not sure how familiar you are with coding, so if i explain this and it still doesn't make sense, please let me know and i'll try to do a better job. but basically each of the videos is a pop up box that references another part of the code. so for example:
that's the code for a single one of the squares on the ig, and it differs slightly from the ones that are just the photographs. for videos, there will also be a section that's surrounded by an 'a href' tag, so like every other 'a href' tag, you want the code to take you somewhere else, and in this particular instance, the "somewhere else" is just a section that's further down in the html/css/etc code. this section basically says "open whatever you're going to open when i click, but do it with a width of 400px". and the fact that the class is 'poplight' means that it should be a popup, and the 'rel' (aka the relationship) is saying that it should look for whatever else in the code has the name "candy" associated with it.
then at the very bottom of the code i have the section with all the junk for the videos and the corresponding relationships (the random words i used with the 'rel' tag up top where the pictures and videos are all laid out in rows for the ig). so at the bottom when you see all the coding that has to do with the popups:
you end up with a bunch of lines that look like that ^^. so the 'div id' is just whatever name i pick to help me keep track. in this example, i used the word "candy" (because the video it's referencing has the song 'candy rain' but you can label however you choose). outside of making sure the 'rel' in the code up top corresponds to a 'div id' with the same name at the bottom, you want to test out the widths of the popups and whatnot. i always save my videos elsewhere so the links don't randomly disappear after time, instead of just hotlinking them from a person's real instagram