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

learn more… | top users | synonyms

2
votes
2answers
86 views

Javascript Password Security

I'm extremely new to javascript (so I know there's already a thread here), but I couldn't understand how to implement it. My code is pretty much identical: <script language="javascript"> ...
0
votes
4answers
273 views

How can I keep browser URL secret when editing data?

Suppose, There is a user list. <a href="user/5">Edit</a> <a href="user/6">Edit</a> When a system user clicked to edit a user info. Then it goes to url to browser like as ...
12
votes
5answers
22k views

Which is better: to include HTML inside PHP code or outside it?

Look at this: <?php echo "Hello World"; ?> <br /> <?php echo "Welcome"; ?> And now look at this: <?php echo "Hello World"; echo "<br />"; echo "Welcome"; ?> Which ...
-4
votes
0answers
35 views

Best resources for beginning front end development? [on hold]

My husband is interested in learning how to code. He is currently getting a degree in Psychology and isn't sure if he'll find a good career out of it so is considering being a developer as a fallback. ...
0
votes
1answer
24 views

Is it possible to use on focus event on form..?

I tried to find when and on what onfocus works.. Can some one tell me is it possible to trigger event when some one is viewing current form ?? I know it works on input,dropdown and textarea.. but ...
0
votes
0answers
47 views

Writing html via Java

I have some information stored on my computer in text files. I use Java to manipulate, format, and process this data. I would like to write a program in Java that will result in the data appearing on ...
-2
votes
4answers
867 views

Can resizing images with css be good? [on hold]

After reading Is CSS resizing of images still a bad idea?, I thought of a similar question. (too similar? should this be closed?) Lets say you need to use 10 different product image sizes throughout ...
0
votes
0answers
57 views

How to use a href link just like a button? Which can perform some event? [on hold]

I need the help in web programming concept. I want to create a link which will perform a login redirection. I want a reader view which will display some information To perform login we have to open ...
0
votes
2answers
159 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
votes
0answers
24 views

Live feed statistics to website [on hold]

I am trying to create a live display of all of my analytics accounts such as Twitter, Facebook, GPlus, Google Analyitics and a few others. The idea is to display all of these on a personal area of a ...
-1
votes
0answers
37 views

Nested website navigational menus [closed]

So, I have created a website that has a navigational menu made up of nested unordered list elements. For example, <ul> <li>Home <ul> <li>About Us</li> ...
-2
votes
0answers
40 views

How do I update the news on a news site? [closed]

I'm trying to create a small news site as a project over the summer and I wondered how bigger news sites goes about updating the news stories without needing to access the code and add it manually. Is ...
0
votes
1answer
68 views

Http meta tag for refreshing/redirecting

While looking at the generated source of a webpage, I learned that a standard way to refresh a web page is to use <meta http-equiv="refresh" content="_sec">. I find this an abuse of "metadata" ...
0
votes
1answer
49 views

Should HTML or CSS files count toward a “lines of code” metric? [closed]

I was asked how many lines of code my web application contains. Is it appropriate to include presentation layer/template files such HTML and CSS files in this count? (Note that I am not able to have ...
1
vote
1answer
141 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 ...
-2
votes
0answers
29 views

Angular service with different angular app [migrated]

Here i am using angular service.In my case i am getting value for first app but not for second .please help me . thank you. here is my html:- <div ng-app="mainApp" ...
-1
votes
0answers
29 views

Extracting Headings and paragraphs separately from xml files in Java [closed]

I first converted the xml file to a string and then tried searching for specific tags in the file. However, the string files are incredibly long (about 1.5 billion characters), so the search often ...
4
votes
1answer
190 views

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?
0
votes
0answers
37 views

Synchronizing webpage and local pdf

I would like to solve the following problem. On my website, I have a list of my publications. I also have my list of publications on a latex file of my cv. The issue is that I update these manually, ...
0
votes
0answers
23 views

JavaScript top and left positions not working? [migrated]

I have this code in JavaScript on a html file but when i run it the image that i have doesn't move when i change top or left. Why is this happening, i have been searching for hours and copying tones ...
5
votes
0answers
66 views

Is progressive HTTP download a viable alternative to HLS/DASH/RTMP for providing live video?

I'm working on a website that needs to stream live video to users, and as such I've had to get my head around the sorry state of current browser-based video-streaming technology. The most popular ...
231
votes
3answers
83k 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 ...
8
votes
4answers
3k views

Where to master HTML, CSS and Javascript? [duplicate]

Possible Duplicate: What should a developer know before building a public web site? I gotten interested in web-development lately. I am still a student. I learnt basics of HTML, CSS and ...
1
vote
2answers
80 views

Where to declare event handlers: Markup or Script?

If the event handler is declared in the markup, it'd be (kind-of) adding presentation logic to HTML. <button id="btn" onClick="foo()">Click Me!</button> If the event handler is declared ...
15
votes
2answers
10k views

What alternatives are there to using HTML/CSS layouts for websites? [closed]

Is there any existing in-use, or even just conceptual attempts at creating a markup or programmatic expressions for designing the layouts of websites other than HTML/CSS? If there are others out ...
-3
votes
2answers
58 views

In HTML and CSS what are the standard tab sizes? [closed]

I searched on Google but couldn't find an answer. I'd like to know what are the standard tab sizes for HTML and CSS. Is it 2 or 4?
41
votes
7answers
41k views

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

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

Can I scrape a website for font stylings?

I am trying to scrape websites for valuable text for example the title of an article, the author's name, and other distinguished text. I cannot always guarantee that this sort of text will have ...
0
votes
1answer
40 views

maintain rate of animation with requestAnimationFrame

I've noticed that HTML game developers are recommending the use of requestAnimationFrame as opposed to a timer for the animation loop. I understand that this can be optimized by the browser, but how ...
0
votes
2answers
37 views

Flag arguments in an html factory class

I have been told that flag arguments(boolean arguments) are a bad thing because it complicates the signature of the method and means that the method does more than one thing. An issue I have with ...
2
votes
0answers
57 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 ...
13
votes
2answers
2k views

How Do News Websites E.g. Forbes / Zdnet Seamlessly Merge One Webpage into Another?

If you go to E.g: http://www.forbes.com/sites/adrianbridgwater/2015/06/12/why-technology-has-to-be-continuous/ OR ...
0
votes
2answers
72 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: ...
25
votes
10answers
14k 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 ...
2
votes
2answers
218 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 ...
0
votes
0answers
44 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 ...
1
vote
6answers
422 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, ...
7
votes
7answers
844 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 ...
138
votes
8answers
17k 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> ...
49
votes
7answers
3k views

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 ...
1
vote
1answer
97 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
238 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. ...
50
votes
5answers
2k views

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 ...
1
vote
5answers
473 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 ...
66
votes
5answers
51k 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
0answers
130 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
133 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 ...
2
votes
1answer
474 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 ...
0
votes
1answer
203 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
vote
2answers
169 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 ...