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

learn more… | top users | synonyms

-1
votes
3answers
79 views

Why do we have to use divs?

This morning, as I was writing some html and haml, it occurred to me that the way divs are used is ridiculous. Why are divs not implied? Imagine if this: <div class="hero-img"> <img ...
4
votes
1answer
480 views

Should MVVM ViewModel inject an HTML template for default view?

I'm working on web application design that includes Knockout.js and have an overall MVVM question: Does it make sense for the ViewModel to automatically inject a default HTML template (pulled from ...
-3
votes
0answers
19 views

In my project after registration the data is storing in mysql but the success page is not coming, [on hold]

In my project after registration the data is storing in mysql but the success page is not coming, <%@ page import="java.io.*,java.sql.*"%> <jsp:useBean id="db" class="Online.DbExam"/> ...
1
vote
2answers
166 views

Frontend vs Backend data handling

Firstly I would like an answer from an experienced person (not a one man band), someone whom has worked in a medium/large team and had to battle with this burning question before. The problem: I am ...
-4
votes
0answers
27 views

Help Editing HTML, Web-Development [closed]

I'm trying to edit the html on https://accounts.google.com/ServiceLogin to make it so the "stay signed in" box is checked. I tried inspecting the elements of the box though I can't seem to find ...
-2
votes
0answers
37 views

Capturing client request headers (complete) along with IP address information? [closed]

I want to write client request to a file with two things/information headers ip address The code I'm testing on free hosting service.Code is <? $headers= apache_request_headers(); foreach ...
0
votes
0answers
22 views

Http meta tag for refreshing/redirecting

I am not doing web programming usually, but while looking at the generated source of a webpage learned that a standard way to refresh a web page is to use <meta http-equiv="refresh" ...
-4
votes
0answers
95 views

Ajax File Upload Progress bar [closed]

I have jqurey for Single file upload code with showing percentage, It's code is I'm recoding the for multiple file upload in the one time. But isn't upload the files. please help for resold the ...
0
votes
0answers
4 views

What is wrong with my jQuery code? [migrated]

I want to toggle a div from left to right when someone clicks on the h1 which is floating on right every thing is working just fine but I can't toggle it. Once the div appears it never goes away. ...
-2
votes
1answer
90 views

What is the right way to parse HTML? [closed]

I've heard, that parsing HTML using the Cthulhu way is not very good. But what are the right ways to parse HTML? Or is it possible to parse it at all?
0
votes
4answers
293 views

Why isn't there an html tag “field”? [closed]

There is a <fieldset> tag for a set of fields. Why isn't there a hierarchical child for fieldsets? <form> <fieldset> <legend>Thin Sandwich Options</legend> ...
-3
votes
1answer
77 views

How to restrict user submitted CSS within <div> [closed]

We are having rich text editor in which we can insert html. if any input contains <style> tag then the css is applied to entire window. is it possible to restrict that CSS to be applied within ...
0
votes
3answers
323 views

How to approach multiple page form with just one save option

The screen shot shows the magento product upload page. The left nav allows you to switch to different options for the product. Basically each option in the left nav appears as a different page. ...
1
vote
2answers
95 views

Separating php and html code [closed]

What is the industrial practice on how to separate html and php code in a web project? Using echos to generate html is considered bad but what is the standard way to achieve the sought separation? ...
47
votes
5answers
21k views

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: ...
0
votes
2answers
65 views

Intermittent flickering on mouse move [closed]

We have an internal website that is written in javascript and jquery and is only used in with ie8. Everything is fine but after a certain time, screen flickering starts to occur when the mouse ...
19
votes
12answers
1k views

How to talk a client out of a Flash website? [closed]

I have recently been doing a bunch of web side projects through word of mouth recommendations only. Although I am much more a of a programmer than a designer by any means, my design skills are not ...
21
votes
5answers
2k views

Tight Coupling Between Javascript, HTML, and CSS: A More Modern Approach?

It's very common to see Javascript bound to certain selectors to find elements, store data, and listen for events. It's also common to see these same selectors used for styling. jQuery (and its ...
35
votes
14answers
5k views

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

(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 ...
-2
votes
0answers
19 views

Retrieve options for the second drop down box from DB based on first Drop down box [migrated]

I am currently working on a small project. I have to retrieve some data from a DB (MySQL) and insert it into a webpage as a select (Drop Down box). The code I have written in PHP is: <?php // ...
0
votes
1answer
92 views

Building an organization-specific XML editor in HTML

I'm building a user friendly XML editor in HTML/JS. Looking for some general advice on how to build the editor UI and which approach you'd recommend on mapping the data to the UI. Details about the ...
2
votes
3answers
144 views

Can display issues affect SEO?

Can website display issues on certain platforms affect a website's search rankings and potentially hinder any SEO efforts?
6
votes
3answers
393 views

Differences betwen HTML templating systems

I'm looking at backbone.js and noticed that it supports various templating systems (they specifically refer to Mustache.js, Haml-js, and Eco, but I understand it can support even more)(like Pure and ...
1
vote
8answers
482 views

Should PHP view files be called something other than '.php'?

By default, any file that PHP touches is usually suffixed with .php. It's universally understood by Apache / Nginx as the default for PHP files and most setups expect PHP files to end in this ...
0
votes
1answer
39 views

What is the best way to keep both html document structure and php control structure strongly visible in complex view file

I create a lot of views in my work as part of the common MVC pattern applied in web frameworks like Code Igniter and Cake. I also adhere to the following maxim as best I can: fat models and library ...
3
votes
3answers
380 views

Reasons for moving from pure JavaScript to a JavaScript library

Being aware of the direct benefits of libraries having things wrapped in a package, making daily work easier, my question is leaning more towards the fact that many features not implemented in ...
-2
votes
1answer
109 views

Why is an A element often used instead of a BUTTON for web design? [closed]

Is there any particular reason why people use the A tag to mimic a BUTTON in HTML and JavaScript?
0
votes
3answers
261 views

What process should I follow to implement (code) a web site in HTML5/CSS?

The title question is unfortunately pretty vague (or at least may be asking differently than what I intend)... but let me elaborate. I know basic HTML5 and CSS. I don't need to learn the tags and how ...
1
vote
1answer
212 views

HTML DOM in .NET: following specification vs. following language standards [closed]

Let's say we're implementing HTML DOM in C#. Naming conventions are different: HTMLCollection interface/class vs. IHtmlCollection/HtmlCollection, body attribute vs. Body property etc. Behavior is ...
3
votes
1answer
138 views

How to avoid too much html in JQuery?

I'm not liking how my JQuery is after making some dynamic buttons, or other dynamic things. For example, when I have checkboxes marked, I add a button that is called "Download Selected" and "Remove ...
0
votes
1answer
159 views

ASP.NET C# and MVC - Step by Step [closed]

I am totally new and do not know where to start learning. I am exposed to the IT industry in a broad manner at work with no specific thing to learn about. I definitely want to work with c# and MVC to ...
1
vote
1answer
161 views

Is learning different programming languages from different categories good? [closed]

I have read some posts regarding learning different programming languages or not. Most of the answers indicate that learning more than one programming language increase our horizon as a programmer and ...
0
votes
1answer
51 views

How best to format text files of statutes in HTML with specific IDs

I'm trying to find the best way to process about 20,000 lines of a statute in text format into HTML so that it can be displayed and manipulated in a granular fashion, i.e. by clause. The format is ...
12
votes
1answer
2k views

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 ...
0
votes
1answer
169 views

Create ASP.NET input forms from XSD?

I have several types of XML document. The format of (i.e. the elements in) each document type is defined in an XSD. Is there a convenient way to create HTML elements (or ASP.NET controls) on an ...
16
votes
8answers
6k views

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 ...
0
votes
3answers
182 views

Will it be a wrong idea to have <style> in <body>?

In below code i placed internal style sheet with in body tag, instead of having in head. For Single-Page-Application I am considering to do this for styles that is only applicable to that page alone, ...
2
votes
1answer
108 views

How to create html pages which don't change very much and not very often?

I have a Rails server that connects to a json API on another server to get data to build the pages dynamically. These pages, however, don't change very much and not very often. I was thinking I could ...
0
votes
2answers
209 views

What is the best way to build a static page web site from a JSON API?

I have a JSON API that includes some discusssions. I want to build a static html site on another server, pages that are built from data on that API. I am more comfortable using Rails than Node. The ...
0
votes
1answer
201 views

Is a development environment required for small projects? [closed]

I won a bid on Elance and was had a request to fix some css and html issues with a WordPress site. How do I make changes to the document without working on the live site? Do you set up a development ...
34
votes
5answers
2k views

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: <link rel="stylesheet" ...
2
votes
4answers
553 views

Learning to program after a 9-5 job [closed]

I'm currently working as an IT administrator, but I'm thinking of making a slight career change into programming. I want to focus my time and effort into learning some web-based languages, but does it ...
1
vote
3answers
199 views

History of vendor css prefix

When and how did this process of prefixing css with vendor specific prefix begin. Which browser/org start this and why was this started. I searched the web but found no details on this.
2
votes
1answer
261 views

Am I right to be skeptical of ASP.NET MVC “Html Helpers”? [closed]

ASP.NET WebForms seemed really great until that moment of realization the abstraction you'd welcomed was producing HTML that was worlds away from what you needed. Wrestling with that framework to ...
3
votes
2answers
341 views

Semantic CSS class names [closed]

I always read articles that suggest to not use presentational CSS class names. Currently I'm working on a small website project. The footer on this website looks like this: Although it's pretty ...
3
votes
1answer
539 views

Reverse horizontal and vertical for a HTML table

There is a two-dimensional array describing a HTML table. Each element of the array consists of: the cell content rowspan colspan Every row of this two dimensional array corresponds to <td> ...
1
vote
3answers
420 views

CSS structure for creating responsive websites

I'm a back-end engineer who works on a small team so occasionally needs to do some front-end. I like to develop a good workflow and project structure before I start anything, so I'm wondering about ...
0
votes
0answers
74 views

MVC structure suggestions

I want to create an application i.e svg-edit that use javascript for client side operations but I want to integrate it with ExpressJS. Svg-Edit on the client side contains the folder containing the ...
3
votes
2answers
3k views

Should I still make my site work in non-javascript capable browsers?

Apparently less than 1% had javascript off in 2010: http://developer.yahoo.com/blogs/ydn/posts/2010/10/how-many-users-have-javascript-disabled/ So is it worth it to still support browsing without ...
0
votes
2answers
218 views

How to explain to my manager the importance of separation of concerns?

I'm an extremely novice web programmer working at a 2 person shop building websites, and we're in the process of writing a simple website template system in PHP from scratch. My manager is entirely ...