How to Add Images to a List Using HTML Programming

Download ArticleDownload Article

Lists are oftentimes used for text; however, it is also possible to add images to a list. To learn how to add photos to a list in HTML programming, follow the steps below.

Method 1
Method 1 of 2:

Images Inside an Unordered List

Download Article
  1. 1
    Create the unordered list.
    How.com.vn English: UnorderedListPart1.png
    • The ul element is what groups list elements together in an unordered fashion. To create the ul element, add the following into the HTML text editor:
  2. 2
    Create list tags inside of the unordered list tags. [1]
    How.com.vn English: UnorderdListWithItems.png
    • To create the list tags, add the following into the HTML text editor:
    Advertisement
  3. 3
    Insert the image tag inside of the list tags.
    How.com.vn English: UnorderedListWithImageTags.png
    • To create the image tags, add the following into the HTML text editor:
  4. How.com.vn English: Unorderedlistwithimages.png
    4
    Paste the path of the desired image into the src="".
    • The image tags require information about the desired image in order to display it. Copy the file path for the desired image and then paste the path into the src="" like in the image.
  5. How.com.vn English: UnorderedListMultipleImages.png
    5
    If multiple images per list item is desired, duplicate the image tag.
    • It is possible to have multiple images in each list item. In order to do so, add the text like in the image.
  6. Advertisement
Method 2
Method 2 of 2:

Images Inside an Ordered List

Download Article
  1. 1
    Create the ordered list.
    • The ol element is what groups list elements together numerically. To create the ol element, add the following into the HTML text editor:
      How.com.vn English: Orderedlist.png
  2. 2
    Create list tags inside of the ordered list tags.
    How.com.vn English: OrderedListWithListTags.png
    • To create the list tags, add the following into the HTML text editor: [2]
  3. 3
    Insert the image tag inside of the list tags.
    How.com.vn English: Orderedlistwithimagetags.png
    • To create the image tags, add the following into the HTML text editor:
  4. How.com.vn English: Orderedlistwithimages.png
    4
    Paste the path of the desired image into the src="".
    • The image tags require information about the desired image in order to display it. Copy the file path for the desired image and then paste the path into the src="" like in the image.
  5. How.com.vn English: OrderedListMultipleImages.png
    5
    If multiple images per list item is desired, duplicate the image tag.
    • It is possible to have multiple images in each list item. In order to do so, add the text from the image into the editor.
  6. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Tips

      • Add information about the picture into alt="How.com.vn English: ". This will allow users who do not see the images information that they would otherwise not be able to obtain.
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      About This Article

      How.com.vn is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, volunteer authors worked to edit and improve it over time. This article has been viewed 45,367 times.
      How helpful is this?
      Co-authors: 5
      Updated: May 19, 2023
      Views: 45,367
      Categories: Technology Hacks
      Thanks to all authors for creating a page that has been read 45,367 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement