English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

What is the defenition of an empty element in HTML,

is it one which contains no text*, or is it something else?

*text as in: no actual typing, excluding things like URLs for pics etc

2007-02-01 07:20:50 · 5 answers · asked by George K 2 in Computers & Internet Programming & Design

5 answers

An empty element is an element which needs no ending tag because there is nothing for the ending tag to surround. For example an tag contains the complete description of an image, and there is no reason to place ...something
because "something" would be a waste of time. A

...something...

is *not* an empty tag, on the other hand, because everything between the

and the

is the paragraph.

2007-02-01 07:26:31 · answer #1 · answered by fjpoblam 7 · 1 0

The empty element is one that doesn't have content or rather it will not have content. It kinda makes sense but not really. Empty elements don't fall into a category. Below is a short list from an exhaustive page on the topic.



In HTML 4, the list of empty elements, i.e. elements with EMPTY as the declared content, is the following: area, base, basefont, br, col, frame, hr, img, input, isindex, link, meta, param.

2007-02-01 07:32:54 · answer #2 · answered by M W 2 · 0 0

its nothing to worry about its just the tags that dont need to be closed after there fuction like
doesnt need a
but having said that i dont think it does any harm anyway so you cant go wrong really

2007-02-01 08:45:23 · answer #3 · answered by themanwithtwoarms 3 · 0 0

THE ones that dont need to close like

2007-02-01 07:26:43 · answer #4 · answered by adolfo 2 · 0 0

HTML = Hyper Text Markup Language

it is text when you are programming it, however when it is transmitted it is turned inot 1's and 0's.

2007-02-01 07:29:10 · answer #5 · answered by scrow_80 3 · 0 3

fedest.com, questions and answers