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 6565649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:07:13+00:00 2026-05-25T14:07:13+00:00

In HTML5, do we still need the end slash like in XHTML? <img src="some_image.png"

  • 0

In HTML5, do we still need the end slash like in XHTML?

<img src="some_image.png" />

validator.w3.org didn’t complain if I dropped it, not even a warning. But some online documents seem to indicate the end slash is still required for tags such as img, link, meta, br, etc.

  • 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-25T14:07:14+00:00Added an answer on May 25, 2026 at 2:07 pm

    img tags are Void Elements so they do not need an end tag.

    Void elements
    area, base, br, col, command, embed, hr, img, input, keygen, link, meta, param, source, track, wbr

    …

    Void elements only have a start tag; end tags must not be specified for void elements.

    W3C | WHATWG

    That being said it’s not strict parsing in HTML5 so it won’t do any major harm.

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

Sidebar

Related Questions

i'am a learner so i need still experience and i have many questions, but
For example, http://developer.apple.com/cocoa/pyobjc.html is still for OS X 10.4 Tiger, not 10.5 Leopard.. And
HTML 5 has interesting features for developer and user, but if customers are still
HTML5 will be next super star. So~~~How to using new idea to implement AJAX
HTML5 draft contains an API called EventSource to stream data (notifications) trough javascript using
The HTML5 spec defines some very interesting validation components, including pattern (for validating against
In HTML5 there is a new input type, 'search'. On most browser it's just
In HTML5, name is no longer a valid attribute of the anchor tag (
Is there any HTML5 support in IE8? Is it on the IE8 roadmap?
Some of the HTML5 canvas demos are very impressive, but I'm a bit confused.

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.