Questions tagged [html]

HTML (HyperText Markup Language) is the predominant markup language used for creating web pages.

HTML (HyperText Markup Language) is a markup language similar to XML that is commonly used to create websites. It was created as an application of SGML, has been extended to create XHTML (eXtensible HTML). In modern web pages, HTML is used to markup the contents of the website, while CSS and Javascript are used to define the styles and behaviors respectively.

The HTML standards, as well as that for many other web technologies, is maintained by the World Wide Web Consortium (the W3C). The current iteration of the language, HTML4, was introduced in 1997, while the next iteration, HTML5, is currently under active development jointly by the W3C and the Web Hypertext Application Technology Working Group (WHATWG).

The language specification and standards documents are available online at http://www.w3.org/TR/1999/REC-html401-19991224/

Useful tools and references

423 questions
545
votes
6 answers

Pros and Cons of Facebook's React vs. Web Components (Polymer)

What are the main benefits of Facebook's React over the upcoming Web Components spec and vice versa (or perhaps a more apples-to-apples comparison would be to Google's Polymer library)? According to this JSConf EU talk and the React homepage, the…
CletusW
  • 5,453
  • 3
  • 14
  • 6
342
votes
7 answers

Why are there no PUT and DELETE methods on HTML forms?

HTML4 / XHTML1 allows only GET and POST in forms, now it seems like HTML5 will do the same. There is a proposal to add these two but it doesn't seem to be gaining traction. What were the technical or political reasons for not including PUT and…
FilipK
  • 3,523
  • 3
  • 15
  • 7
294
votes
8 answers

Why are people making tables with divs?

In modern web development I'm coming across this pattern ever more often. It looks like this:
Vilx-
  • 5,320
  • 4
  • 20
  • 24
140
votes
5 answers

Two HTML elements with same id attribute: How bad is it really?

Just browsing the google maps source code. In their header, they have 2 divs with id="search" one contains the other, and also has jstrack="1" attribute. There is a form separating them like so:
111
votes
6 answers

Why are the and tags deprecated?

This question came up in one of my college classes. The professor only gave the answer that it was more descriptive, but it seems as though and are rather explicit in their meaning and is easier to type than and . What were the…
LanceLafontaine
  • 1,241
  • 2
  • 9
  • 8
83
votes
2 answers

Is localStorage under The Cookie Law?

I'd like to avoid having the cookies banner on my websites where possible. Could I store session id's in localStorage to bypass implementing the banner?
XAMPPRocky
  • 949
  • 1
  • 6
  • 6
56
votes
5 answers

Why not XHTML5?

So, HTML5 is the Big Step Forward, I'm told. The last step forward we took that I'm aware of was the introduction of XHTML. The advantages were obvious: simplicity, strictness, the ability to use standard XML parsers and generators to work with…
jameshfisher
  • 740
  • 4
  • 9
55
votes
10 answers

Why Should I Avoid Inline Scripting?

A knowledgeable friend recently looked at a website I helped launch, and commented something like "very cool site, shame about the inline scripting in the source code". I'm definitely in a position to remove the inline scripting where it occurs; I'm…
thesunneversets
  • 1,135
  • 2
  • 8
  • 13
55
votes
8 answers

Why would one bother marking up properly and semantically?

Note that I (try) to mark up as semantically as possible because I like they way it looks and feels, but not because I'm aware of any other stunning advantages. The point of my question is to be able to educate others Well, I've seen a lot of…
Madara's Ghost
  • 8,787
  • 9
  • 25
  • 33
44
votes
7 answers

How can I evaluate a candidate's knowledge of Html/CSS during an interview?

I am trying to determine some good interview questions to assess the ability of people coming in for a Html/CSS job, however that topic is extremely broad, and I'm not sure what sort of questions I can ask to properly evaluate someone's HTML/CSS…
webnoob
  • 2,139
  • 3
  • 19
  • 20
43
votes
7 answers

Why not embed styles/scripts in HTML instead of linking?

We concatenate CSS and JavaScript files to reduce the number of HTTP requests, which improves performance. The result is HTML like this:
GladstoneKeep
  • 2,629
  • 4
  • 19
  • 15
42
votes
8 answers

How do I get started with HTML5?

What is the recommended workflow to learn HTML5? What tools should I install? What SDK? Where to start? How to test? How to debug? What do I read? I understand that what is often labelled as "HTML5 development" is in fact a mixture of HTML, CSS, JS…
daniel.sedlacek
  • 902
  • 1
  • 10
  • 20
39
votes
7 answers

Why was strict parsing not chosen for HTML?

I have often wondered why strict parsing was not chosen when creating HTML. For most of the Internet history, browsers have accepted any kind of markup and tried their best to parse it. The process degrades performance, permits people to write…
Shubham
  • 713
  • 7
  • 17
38
votes
6 answers

Should you always program server side for a website?

I'm about to start creating a music project website for a friend. It should be pretty simple for now: no dynamic content (tour dates, etc.), and nothing more than a few embedded sample songs or SoundCloud links. I'm not expecting to use anything…
Deegriz
  • 471
  • 1
  • 4
  • 7
38
votes
14 answers

How important is it to clean up someone else's code when faced with a tight deadline?

(I'm talking about HTML / CSS code (not programming languages) but I think we also face the same issue as with programmers.) I am the senior front-end designer in a team and I often have to re-work my juniors' output in tight deadlines. I am faced…
anon
1
2 3
28 29