Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 568121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:09:20+00:00 2026-05-13T13:09:20+00:00

Should the <img> tag be wrapped in a <p> tag or can it be

  • 0

Should the <img> tag be wrapped in a <p> tag or can it be just used without a <p> tag?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T13:09:20+00:00Added an answer on May 13, 2026 at 1:09 pm

    I can’t comment or vote yet, but the answer by Younes is wrong. You cannot write an image tag like this:

    <img src=""> </img>
    

    Also, the best place to look for what is allowed and not allowed for HTML tags, the best source is the actual specs, available on the W3C website. Here’s the link for the img tag for HTML 4.01:

    http://www.w3.org/TR/html4/struct/objects.html#h-13.2

    And here’s the link showing the differences between HTML 4.01 and XHTML 1.0 (which is where the comes from:

    http://www.w3.org/TR/xhtml1/#diffs

    In general, an img can be wrapped by most container tags (some exceptions, like pre, do exist), but it is not required. If you are trying to make your HTML semantic, then most often, it won’t make sense to have your img inside a paragraph tag, but it might make sense to put it into a div.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The img tag inside the code has styling relative according to which it should
I'm using a img tag before a h3 tag, no break statements used. But
Should this work? <script type=text/javascript> function load_i () { img = new Image(); img.onload
Should we declare the private fields as volatile if the instanced are used in
I'm having problems echoing the src and alt attribute in the img tag. It
I am trying to capture read/write operations on any IMG tag's src attribute. For
Question 1: I want to fade each href or img tag as they are
I have to fix all the closing tags of the <img> tag as shown
I am having a simple img tag within <p> tag and If I click
I have an img tag (id image). The src of the img is assigned

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.