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

learn more… | top users | synonyms

-5
votes
0answers
16 views

How change text fields onselect radio button [on hold]

i have 3 radio button with same name <form> <input name="srch" type="radio" value="a"/> <input name="srch" type="radio" value="b"/> <input name="srch" type="radio" value="c"/> ...
-6
votes
0answers
26 views

How to make Online shop with quest/mission? [closed]

Sometimes I Bored, What can i do?,but Reality I just a beginner programer ~ Now I want make new conception online shop with quest/mission like a game online can master help me? :(
1
vote
1answer
71 views

html/css/javascript for game ui's

I've been looking into game ui's recently. My conclusion is that html/css/javascript would be the perfect solution IF it was wrapped up in a nice C++ library that allowed for easy integration into ...
-3
votes
2answers
134 views

JavaScript form validation without clicking submit button [closed]

I want to validate a form using java script before user clicks the submit button. <form role="form"> <div class="form-group"> <label for="email">*Email ...
2
votes
0answers
36 views

Truncating HTML content at specific content blocks

I have HTML content in my DB and I would like to present a list of these individual items but truncate each of them so they're not fully displayed. I would like to keep truncated items ...
2
votes
2answers
185 views

Pre-Processors vs Pure Web [closed]

It seems like within the last few years or so HTML/CSS/JavaScript Preprocessors have exploded in quantity and general use. They're still not as common as pure HTML, CSS, and JS/jQuery, but their ...
-1
votes
0answers
13 views

How to use HTML Code Snippet? [migrated]

I am trying to create and use code snippets using Visual Studio 2005. I successfully created a snippet in VB.Net and used it by typing it’s shortcut and pressing tab. Now I am trying to use a html ...
0
votes
2answers
62 views

Is it appropriate to use the unordered list (ul) element for composite content

I recently had a thought of utilizing the unordered list element to represent a list of composite content (such as a product list with details or an image list with captions). For example: ...
0
votes
0answers
35 views

Web App - Better to load Large, low quality image or many html elements?

I'm creating a web application that is visually enormous. I'm talking 2 million pixels wide and 2 million pixels tall (about). My goal is to show dynamically changing spots all over the site. For ...
0
votes
1answer
74 views

Javascript inline event handling versus external jQuery event handlers

Working on a dynamic website that loads information from a JSON file and then populates the page with said elements. My question has to do with event handling - as of now, I don't see any reason as ...
1
vote
1answer
90 views

Multiple CS Sheets or Javascript

I have a homepage with a navigationBar on top of the Viewport contains two buttons. One is the default selected home button which calls/displays home.html. The other for example is Ubuntu which calls ...
1
vote
1answer
188 views

Best use of the React frontend framework

I've been using rails' erb template for my views, but I've recently been trying to incorporate React as my front end framework. I'm a little lost on how front end frameworks are supposed to be used. ...
135
votes
8answers
12k views

Why are people making tables with divs? [duplicate]

In modern web development I'm coming across this pattern ever more often. It looks like this: <div class="table"> <div class="row"> <div class="cell"></div> ...
1
vote
5answers
422 views

why are globals bad in javascript [duplicate]

I've been writing web applications for a while now , and everyone knows the one golden rule not to assign variables to the window object , don't ever assign a variable without using var. My ...
0
votes
0answers
94 views

Choosing a javascript framework for a massively multi-player game : React vs Ember 2 vs other better option

I'd like to add to my Ruby on Rails app a javascript front end using basically Rails a json api sending data to the front end. The question for me is: React or Ember 2 (or maybe another viable ...
0
votes
1answer
63 views

Detect request coming from iframe

I just had this awesome idea about simulating a single page application using iframes. I am using a framework that uses layouts to display pages. Luckily I can use an empty layout (meaning it has no ...
1
vote
1answer
141 views

When and why to use Page.ResolveUrl

So, i had a discussion with a colleague on why and where should we use Page.ResolveUrl("~/PageUrl.aspx") instead of ./PageUrl.aspx. For example, are there any differences between: <a ...
1
vote
2answers
131 views

Can i write html on one line only in my php code?

i need to embed a html 301 redirect in my php code and i wanted to save chars in my html. Can i write HTML on one line since it is parsed? Is there anything against this practice? ?> <!DOCTYPE ...
0
votes
1answer
70 views

Always set form input max length?

Background I'm looking to put together a single page web application with many form inputs. I've run into issues with other web pages where there is an ugly SQL error sent to the user if the ...
-1
votes
1answer
64 views

What is the easiest way to store a piece of text in an HTML page? [closed]

I'll say in advance - I have almost no experience with HTML. I am currently coding a game in Lua, which needs to access a piece of code from an HTML website using GET. My question is this: What is ...
1
vote
2answers
110 views

Semantics of heading levels in multiple sections in HTML5

I'm never quite sure what is the best, most semantic way to handle heading levels in HTML5 markup, when you have multiple sections. On one hand it makes sense to have an H1 heading as a title of a ...
1
vote
1answer
61 views

Is it OK to replace html on resize?

I was asked to take over a web project. It is supposed to be a responsive website, but the former programmer didn't write the HTML/CSS with responsivity in mind and adding code to make it responsive ...
2
votes
1answer
263 views

Does react.js make sense for a static content-driven site?

I'm pretty sold on the react.js model because it makes DOM manipulation so smooth and comprehensible. But I'm wondering how it could be leveraged for a site that's largely static with big blocks of ...
1
vote
3answers
130 views

Is Doctype needed for HTML5 documents

Recently I had a job interview and one of the questions was "Is doctype needed for HTML 5 documents?". I've answered "no" but have a feeling that I might be wrong. From the w3 it looks like it is ...
1
vote
6answers
235 views

What to use instead of IDs in selectors in CSS

I recently installed a csslint package for my Atom text editor. I keep getting warnings saying "Don't use IDs in selectors." I found this weird since I've always been using IDs in selectors in CSS, ...
3
votes
4answers
359 views

Why is it (or was it) important to separate CSS from HTML? [duplicate]

Intro I recently watched the slides from React: CSS in JS and I really like the idea of having CSS applied using JS (and with JSX, this would mean having all the HTML, JS and CSS in one file, which ...
1
vote
1answer
69 views

torrent support in browser

i was thinking it would be cool to implement native torrent support in a web browser so that the following html would render an image on the page: <img ...
1
vote
3answers
231 views

Conceptually, is the single page web app more efficient than the web app that loads pieces of the page for every page? [closed]

I searched a lot, but nobody seems to have explained this nor given a proper example. I have a page like this: My team says they want to design the code such that the Title section, Menu ...
0
votes
2answers
32 views

Are there established guidelines for code formatting in included files with references to other files?

When developing for the web you will inevitably end up referencing a lot of files that eventually all get included and combined into a finished product. I specifically develop a lot of Wordpress sites ...
0
votes
1answer
102 views

MVC: Inserting a view from a SubController to its Parent controller

I have 2 controllers: 1 top level controller,MainController, and a SubController, which MainController has an instance of and controls. The SubController has a Subview which goes inside the MainView ...
1
vote
1answer
163 views

Is it okay to use CSS3 with HTML4?

Is it alright to use CSS3 with HTML4. It seems like CSS3 would be a HTML5 complaint deal. But I'm not sure if that's the case. If it's not okay, what are the downfalls to using CSS3 with HTML4, ...
11
votes
0answers
195 views

Math model for a webpage layout? [closed]

While web-programmers surely know CSS/HTML rules by heart, and web-browsers have algorithms to render web-pages, what interests me whether there are any mathematical/theoretical models or at least ...
3
votes
1answer
44 views

(HTML) Form structure storage

In the context of a single-purpose website/application (for instance, based on Symfony2), I wish to have a set of forms fillable by users which then will be sent out as a formatted email (with the ...
0
votes
2answers
103 views

How to make a website be formatted correctly on all screen sizes? [closed]

I recently made a pure (didn't use Bootstrap or anything else) HTML 'website' (didn't actually give it a url) on my laptop, but when I opened the website on my desktop, it looked horrible and nothing ...
-1
votes
4answers
126 views

What exactly is the meaning of “node” in Document Object Model (DOM)?

I've searched for the definition of a "node" in a programming language and I am still finding it hard to understand. Could anyone advice me in simple, layman's terms: What is a node?
5
votes
1answer
231 views

Why is the use of JavaScript in HREF attributes discouraged?

Disclaimer: I came to Programmers.SE to ask this question because I understand this is the place to ask this type of question, and not necessarily stackoverflow. If I am wrong, please close the ...
1
vote
0answers
232 views

Managing Login Authentication/Webpage session: Can client side javascript/JQuery access either a session variable or json variable in html?

Short version: A variable is stored in a session variable req.session.userName and also in the json sent with res.render('/', {username: value}). How can I access either of those variables from inside ...
0
votes
1answer
43 views

What is the HTML 4 DTD role in HTML5

All, I know there are three types of DTD for HTML 4.01 (strict, transitional, and frameset). And I knew the DTD defines the syntax of markup constructs and the document structure with a list of legal ...
0
votes
1answer
80 views

Understand SGML and HTML

When I read the HTML 4 Specification. The document says : Each markup language defined in SGML is called an SGML application. An SGML application is generally characterized by: An SGML ...
0
votes
1answer
99 views

What's the best semantic html5 tag for an action menu

I want to create an action menu to trigger some actions on a single page application and I wonder what's the most appropriated html5 tag for this? I know the nav tag but it seems more suited for ...
0
votes
0answers
32 views

Decoupling HTML pages from App deployment

I work on an app where offline functionality is an integral part of the app. When small tweaks are necessary for the HTML pages, we need to redeploy the app in order for the changes to take effect ...
-1
votes
3answers
231 views

Why don't replace HTML with JSON as base web design technology? [closed]

Since JSON shows a lot of benefits over HTML, why don't just abandon HTML? Qt frameworks with QML shows it is perfectly possible to use JSON to design rich content EDIT: Many of you think about this ...
-4
votes
1answer
78 views

Languages for gaming website [closed]

So I'm a 15 year old trying to teach myself how to code because I'm deeply interested in it. I would like to one day be able to have my own games website, with little games I'd write. I have a little ...
1
vote
1answer
211 views

For HTML report generation, should CSS be put into stylesheet or written into the html file?

I'm writing a report generator for an automation tool. Right now I have a report template html file which is read by the generator and the results are filled in by the tool to be written to another ...
-5
votes
1answer
387 views

Why isn't HTML/CSS/HTML5 considered a programming language? [duplicate]

I was just curious as to why programmers don't consider Web development as programming.. I know C and C++, Python etc. are tones harder then what I do (HTML etc.) but why do programmers laugh at it? ...
0
votes
1answer
187 views

Website with a lot of sound [closed]

I am building a website with a large amount of sounds that should be played upon clicking elements. (It is a language learning website, and many words and phrases will be clickable, to hear ...
0
votes
1answer
171 views

What's the best method for ignoring the BBCode between <code> tags in a full-post BBCode parser?

To clarify on the title a bit more, this is for a plugin for my forum. I'm doing this: div.html( parser( div.html() ) ) When sending the html string to the parser, of course I get something like: ...
-1
votes
1answer
136 views

HTML and CSS required for .NET Development [closed]

On a job application, part of the job description is "...needs to know HTML and CSS as some .NET is required...". What does this mean? I thought HTML is a programming language, CSS is a way to ...
0
votes
2answers
259 views

What are the tecnhical reasons for email HTML, CSS, Javascript limitations and their persistance [closed]

If you've ever made a custom email you'll know that there are significant limitations in you need to be aware of. The most obvious limitations being: No support for Javascript in emails No support ...
-1
votes
1answer
83 views

How does contenteditable work?

I recently came across an article where if you enter data:text/html,%20<html contenteditable> into the address bar of a browser that supports HTML5, you can type in the window. I managed to ...