Jump to content

Photo gallery with caption at bottom


emekadavid

Recommended Posts

I have been trying to write a photo gallery with text accompanying it at the bottom. Photos and text will change with each click.

I tried using an input tag as child of form tag with javascript code and it worked. But the input tag is interactive and allows only one line. By the way, it doesn't respect the <a> tag for crediting the photos.

 

Therefore, I have been trying my hands on the figure element which will take the image tag and figcaption tag for photo and photo description. But, I cannot write the javascript.

 

can anyone show me how? I wonder why the input tag is easy but figure and figcaption is difficult?

 

Thanks

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...