This is strictly an opinion/experience question for research purposes.
I was wondering what coding standards companies have in place now for Web Developers? (Document formats, coding standards, file structures, etc.)
Obviously they all can't be listed, but some major ones would give me an idea.
...
Maybe I'm an idiot but I don't quite get what goes in the header of my HTML to use XHTML w/ HTML5. Is this still good and we just add the HTML5 tags?:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html dir="ltr" lang="eng" xmlns="http://www.w3.org/1999/xhtml">
Or i...
I was having this discussion with one of my colleagues. He created a piece of code that put an a-href around an object where a flash is to be loaded. When I saw this I almost cried out and told him to use the clickTag instead.
He told me that it works fine with the a-href. I checked it out, and the code worked fine in ie6-8 and firefox...
It seems really obvious to me that there should be a "slogan" tag in addition to the "title" tag. Many, perhaps most, websites use their business name with a slogan in their title. Unfortunately, it means that every time I bookmark a site I seem to have to edit the properties to remove the stupid slogan from the bookmark name.
The behav...
I'm not seeing the usage of address tag around. Is it still relevant using address tag these days? Any proposal to deprecate this arise ever?
...
The tt, i, b, big, and small tags are not deprecated, but it is possible to achieve richer effect with CSS. What is the merit of using these?
...
Before coming here, I tried myself by googling. After I read these two links
http://www.w3schools.com/tags/tag_bdo.asp
http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_bdo
I still don't understand clearly what is the practical purpose?
Thanks in advance for those who shed some light on this.
...
Why are JS scripts usually place in the header of a document? Is it required by standards, or is it just a convention with no particular reason?
...
I'm trying to explain to a non technical person, why certain websites (generally ones whose user base exist solely in countries where Microsoft owns more than 99% of the market share) fail to load in Safari or even Firefox (specially on Macs). Such users generally wonder why anyone would even think of buying a Mac, when it doesn't even l...
Given markup like this:
<body>
<div style='text-align:center'>header</div>
<table>
<tr><td>
really_wide_table..........................................................................................................................................................................................................................
Can we place <img> inside <h1> according to web standards? like this
<h1> Demo text <img src="anyimage.jpg"/> </h1>
...
I tried to search for a JavaScript reference, but there's none available. The best two suggested sources are MDC and W3Schools.
Why?
...
What is the best approach to make 3 column fixed width cross browser compatible, accessible, semantically correct layout ?
<div id="wrapper">
<div id="header">
This is the Header
</div>
<div id="top-nav">
Top Navigation
</div>
<div id="leftcolumn">
Left Column
...
Why do so many Ruby on Rails apps have missing trailing slashes in their URLs? One example is http://basecamphq.com/tour. AFAIK this goes against Web standards. Is it something to do with the way RoR is set up?
...
Whole code of Asp.net page renders in a form tag is it W3C valid to render everything in form tag?
<body>
<form runat="server">
remaining code.....
</form>
</body>
...
What is Logically correct and W3C valid way to clear float?
zoom:1 is not valid by W3C and IE8 don't have hash layout problem
overflow:hidden and overflow:hidden
were not made to do this,as the spec
intended overflow to be used
<div class="clear"/> is not
semantically correct and i don't want to add extra markup.
clearfix hack generat...
If i made a site and site looking well in all a grade browsers but if site shows some errors in both XHTML and CSS validation then is there any benefit to solve those errors?
Is site with 10 validation errors better than site with 35 validation errors or both are same for search engine?
Does search engine read css file? Does CSS valida...
I don't understand why developers continue to program things to accommodate IE6. People should update the browser they use, right?
I've already seen many firms completely stop developing for IE6, with a big article on their front page stating their update recommendations.
What are your reasons to continue developing for this buggy old ...
In CSS we can use both ID and class. is there any pros and cons if i use Class always instead ID in terms of Semantic, Web standards- W3C , SEO , Accessibility and future maintainability?
...
What is the best method to code physical address in html ? in Semantic, Accessible and SEO way
...