hi all!
I am new to website development and i am learning HTML. when i was reading about it; i come to know this term EMpty element but it is not defined properly.
I wonder if you could explain that to me?
Thanks
| SitePoint Sponsor |

hi all!
I am new to website development and i am learning HTML. when i was reading about it; i come to know this term EMpty element but it is not defined properly.
I wonder if you could explain that to me?
Thanks


Element types that are designed to have no content are called 'empty' elements.
};-) http://www.xhtmlcoder.com/
Thinking Web: Voices of the Community
> March 2013 - SitePoint forums: Spot the Error 3: Calling all Sleuths! Winner Announced!... She knows how to spot simple <code> errors but do you?

Examples include (but are not limited to) a line break, <br> and a horizontal rule, <hr>
Rémon - Hosting Advisor
Minimal Bookmarks Tree
My Google Chrome extension: browsing bookmarks made easy
For refs, see the Elements section of the W3 spec for HTML 4.01 (Empty elements are marked by an E).
Differences in XHTML 1.0.

thanks a lot for your help![]()


I guess you could also add elements that are not technically 'empty' elements, but which have been left empty by the author, such as an empty <p></p> element. But in this case it's not a class of element so much as the state of an element. (I just made that up, but it sounds cool.)
Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form
Try your hand at the new JavaScript Challenge!
If you don't like getting your feet stuck in a bog, avoid Twitter BootsTrap.


Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form
Try your hand at the new JavaScript Challenge!
If you don't like getting your feet stuck in a bog, avoid Twitter BootsTrap.
Replaced elements is a CSS term, not an HTML term. See:
http://reference.sitepoint.com/css/replacedelements
http://www.w3.org/TR/CSS21/conform.h...placed-element
http://www.w3.org/TR/CSS21/visudet.html
Simon Pieters


Ah thanks. I should have looked it up first.![]()
Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form
Try your hand at the new JavaScript Challenge!
If you don't like getting your feet stuck in a bog, avoid Twitter BootsTrap.


The terms empty element and void were discussed a while back in this thread.
};-) http://www.xhtmlcoder.com/
Thinking Web: Voices of the Community
> March 2013 - SitePoint forums: Spot the Error 3: Calling all Sleuths! Winner Announced!... She knows how to spot simple <code> errors but do you?

thanks once again for such a deep help. i would never have done that myself.. you do not know me![]()
Bookmarks