Questions tagged [html]

HTML (HyperText Markup Language) is the predominant markup language used for creating web pages. 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.

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).

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 the HTML 4.01 Specification documentation.

Useful tools and references

1417 questions
47
votes
8 answers

Should I escape the Apostrophe ( ' ) character with its HTML entity (')?

What characters should be escaped with their HTML entities. For example, & is escaped with &. Should ' be escaped with '?
Tom
  • 551
  • 1
  • 4
  • 8
19
votes
5 answers

How do I add the copyright symbol to my webpage?

How do I add the copyright symbol to my webpage?
smithjack
  • 299
  • 1
  • 2
  • 4
17
votes
2 answers

To

or not to

?

I recently had a debate with a colleague who claimed that a
tag should be used over a

tag when formatting paragraphs. The case against the use of

is that it produces irregular spacing across browsers and it is likely to become obsolete…

BradB
  • 647
  • 4
  • 11
15
votes
3 answers

What is the difference between and

I am curious, the span tag seems to work the same as a div.
robasta
  • 253
  • 1
  • 2
  • 5
12
votes
1 answer

Why don't large popular sites such as SO use keyword and description meta headers?

Why don't Stack Overflow, Wikipedia or MSDN etc. include keyword and description meta tags in their page headers? For example Google indexes the first paragraph as a brief description. Is this a technical point in web design and SEO?
Meh Man
  • 241
  • 1
  • 3
11
votes
3 answers

html: Should be placed within a paragraph?

Markdown creates output like this:

see this example:

code
Is this correct or should it be:

see this example

code

To me the second one seems correct, since the paragraph and the code…
koen
  • 213
  • 1
  • 6
9
votes
4 answers

What happened to HTML table tags?

I started to code HTML in 1998, and in that time I used a lot table tags, playing with tr and td, I learned many things analyzing the source code of many portals on the internet with notepad and Microsoft FrontPage, the latter, aw, how many tables…
John
  • 91
  • 2
8
votes
6 answers

Are the space and the / required in the
tag?

Back in the day, I remember writing many a webpage without using / in the tag. What changed? Also, is the space "required?"
WebDevKev
  • 379
  • 3
  • 10
7
votes
2 answers

Avoiding background and main menu reloads (white flash) when users navigate my site?

Not a major problem, but I would like to understand more about how some websites can serve different pages to a navigating user, such that the browser doesn't visibly pass through a blank white page. Whereas some sites cause the browser to display…
Doochz
  • 215
  • 2
  • 5
6
votes
2 answers

Is there a standard way to mark web content obsolete?

I was just listening to someone talk about how the older content is the more relevant it is seen by search engines even if it is obsolete info. But it seems in many cases it is good to leave content in place for historical\reference reasons. Is…
6
votes
4 answers

What are the essential HTML tags?

I want to know what HTML tags are "compulsory" a web-page should have, in order for it to be displayed by a web-browser. Also, what is the difference between different versions of HTML, in general?
Amit
  • 61
  • 2
5
votes
2 answers

Can HTML tags contain new lines within the tag between attributes?

Can I use enter or line break to separate HTML attributes within an HTML tag? For example:
user50213
5
votes
2 answers

Is ­ safe now?

Is it safe to use ­ now? I remember there were problems with this entity, such as rendering it everywhere (instead of only when the web browser decides to split a word), or splitting a word without rendering it.
liori
  • 353
  • 1
  • 3
  • 10
3
votes
5 answers

How to align images left or right using semantically named classes?

I want to align images in a text. Some pictures should be on the right side and some other on the left side. I can achieve this by adding class="right" or class="left" to the img element. But these classnames are presentational, not semantic. Any…
ihmels
  • 176
  • 6
3
votes
3 answers

Why do local HTML files take longer to load in IE compared to Firefox?

I am creating a local HTML file that links to 2 external CSS files and 3 external JS files. When I refresh this in Internet Explorer 9, the page takes over a minute to load compared to instantly in Firefox (latest stable build. When I remove the…
rlsaj
  • 247
  • 2
  • 8
1
2 3 4