Questions tagged [html4]

HTML Version 4.0 was published in Dec '97 by the W3C. It offers three variations: Strict, in which deprecated elements are forbidden, Transitional, in which deprecated elements are allowed, Frameset, in which mostly only frame related elements are allowed

HTML version 4.0 was published in December 1997 by the W3C.

It offers three variations: wikipedia

  • Strict, in which deprecated elements are forbidden,
  • Transitional, in which deprecated elements are allowed,
  • Frameset, in which mostly only frame related elements are allowed;
244 questions
150
votes
14 answers

HTML: Include, or exclude, optional closing tags?

Some HTML1 closing tags are optional, i.e.:

Note: Not to be confused with closing tags that are forbidden to be included,…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
150
votes
8 answers

What's the key difference between HTML 4 and HTML 5?

What are the key differences between HTML4 and HTML5 draft? Please keep the answers related to changed syntax and added/removed html elements.
deepwell
  • 20,195
  • 10
  • 33
  • 39
56
votes
2 answers

What is difference between
 and  HTML Tag?

How does a
 HTML tag differs from  html tag.
I have checked on W3Schools page, it seems they are just the same.
If there any major difference between them ?
Parimal Raj
  • 20,189
  • 9
  • 73
  • 110
43
votes
6 answers

What elements can be contained within a tag?

What are the valid html elements, if any, that can be contained within a tag?
Ahmad
  • 22,657
  • 9
  • 52
  • 84
27
votes
9 answers

Why is mostly unused?

Related: What's the point of Content-Script-Type and Content-Style-Type. I wanted to know what the main reasons are that developers don't use and
Kijewski
  • 25,517
  • 12
  • 101
  • 143
18
votes
3 answers

Are self-closing input tags valid in HTML 4?

According to http://www.w3.org/TR/html401/interact/forms.html#h-17.4, an input element should end with a single > and not a />. Though that most browsers can handle an input element that ends with />, is such an input element valid according to HTML…
Behrang
  • 46,888
  • 25
  • 118
  • 160
17
votes
1 answer

Valid HTML tag name character

I'm having problems finding out what the valid characters are for an HTML tag. In this (Is the at-sign (@) a valid HTML/XML tag character?) answer it says: After another look at the XML Specification: A tag consists of: '<' Name (S Attribute)* S?…
Matteo Pagliazzi
  • 5,140
  • 12
  • 49
  • 83
15
votes
3 answers

Should I remove trailing slashes in meta tags?

W3C markup validation is asking me to remove trailing slashes on my page. Is this correct? And will my page still be compliant in all browsers?
c14kaa
  • 873
  • 3
  • 14
  • 27
15
votes
2 answers

What are the consequences of using percentage for width,height attributes of an img element?

Excuse me if it is a dumb question, but the fact is that I do not have any idea about it. I was searching to find some way to position an img element in HTML pages that noticed this sentence from w3schools.com (It is speaking of setting width in an…
Ormoz
  • 2,975
  • 10
  • 35
  • 50
12
votes
7 answers

HTML5 - text input with padding is too wide

I want an input field which will be padded from inside. I'm transferring to HTML5. I have it working in HTML 4.01 Transitional, but in HTML5 the input field started to go out of table frame. Can you help me correct it for HTML? Part of HTML Code
Kelu Thatsall
  • 2,494
  • 1
  • 22
  • 50
12
votes
1 answer

Inline SVG vs embedded
I'm building an in-game browser RoR app for Eve Online. One of the requirements of my app is displaying an SVG graph generated by graphviz. I'm having some issues getting my requirements met within this environment. No official documentation is…
sicks
  • 757
  • 8
  • 23
11
votes
1 answer

Custom self-closing / unpaired tags in HTML?

The following code [jsfiddle]... var div = document.createElement("div"); div.innerHTML = "This is a test.
Another test.
"; alert(div.innerHTML); ...shows this parsed structure: This is a test.
Another…
Udo G
  • 12,572
  • 13
  • 56
  • 89
11
votes
1 answer

Why use HTML5 tags?

Possible Duplicate: Are new HTML5 elements like
and
pointless? I have decided to, finally, make the move to designing websites in HTML5. I have one question about the new tags. There are new tags such as; header, footer,…
Brad Bird
  • 737
  • 1
  • 11
  • 30
9
votes
3 answers

Embeding a Video in HTML4 vs HTML5

While searching for difference between HTML4 and HTML5 I came across the point that : HTML5 brings a whole new dimension to web world. It can embed video on web-pages without using any special software like Flash So if we will consider a sample…
Simsons
  • 12,295
  • 42
  • 153
  • 269
9
votes
3 answers

are attributes without value allowed in HTML4?

I wonder if HTML 4 allows attributes without value, as being equivalent to attributes with an empty value. For example:

foobar

instead of:

foobar

Are the two snippets equally valid? If not, are they valid in HTML…
fstab
  • 4,801
  • 8
  • 34
  • 66
1
2 3
16 17