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

learn more… | top users | synonyms

-7
votes
0answers
35 views

Hey want to Make Pop Up window [on hold]

I want to make a Pop Up window for my website so any one can guide me, that how to done this work professionally.
0
votes
0answers
14 views

Best way to create integratable module for mobile apps

Let's say I want to build a mobile App which others can include/integrate in their app as a separtate module. The goal is that the customers can add the functinality of my app into theirs. Since the ...
-3
votes
0answers
39 views

How to connect user input in HTML with an SQL database? [closed]

I'm creating an e-commerce site where I need users to log in with a username and password, and also add stuff like credit card information and address. How can I take the user input in HTML and ...
0
votes
1answer
55 views

Manipulating DOM via script or rebuild website - which is better?

Let's assume you want to change what user sees on the website. There are two ways to do that: a) manipulate the DOM via JavaScript, but user has to download whole script, with possibility he may not ...
2
votes
0answers
113 views

What is a good way for a child to learn programming? [closed]

I learned to programme in Basic in the 80s, aged 7, on a BBC microcomputer. That computer was a good environment in which to learn - it was made with the specific intention of making programming easy....
1
vote
1answer
111 views

Php-mysql injection

<?php error_reporting(E_ALL); //ini_set('display_errors', 1); $db_server = "localhost"; $db_name = "2"; $db_user = "root"; $db_passwd = ""; $connection = mysql_connect($db_server,$db_user,$...
1
vote
3answers
716 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 ...
-3
votes
0answers
87 views

How to build a pixel grid like the one use in the million dollar billboard project? [closed]

I want to build a pixel grid system, that I can control the size of each block they way I want it. Also the user will be able to upload his image, link and title to each block/ blocks he chooses ( I ...
0
votes
1answer
75 views

Android Studio, HTML and Java Correlation

I've recently started designing apps in Android Studio, and I've noticed that the same operations (for example, using a widget) can be completed by either going into the activityname_java file and ...
0
votes
4answers
478 views

Do i have to make all my website PHP with embedded HTML to make a good secure website?

I see all websites (THE big ones) make both PHP and HTML in same page .. Do I need to make all my website pages as PHP and embedded HTML inside it ? Can't I make the website all as HTML Pages and PHP ...
12
votes
6answers
2k views

Block elements vs inline elements in HTML: why the distinction?

The distinction between block and inline elements always seemed strange to me. The whole difference is that a block element takes up the entire width thus forcing a line break before and after the ...
0
votes
0answers
48 views

Converting dynamic webpage into static

I am working on a project in which I need to take a dynamic website like adobe spark - https://spark.adobe.com/gallery/gallery-editors-choice/example/maggie-to-monte/ and create a static html+css page ...
-3
votes
1answer
85 views

How to incoporate jQuery UI into ASP.NET MVC 5 project that is on an offline system? [closed]

I am having some issues trying to incorporate jQuery UI into my project. I cannot use Nuget or anything else that goes to the internet, so I have downloaded the development package from the jQuery UI ...
-1
votes
2answers
78 views

Connecting an HTML form to a Java program

I would like to create a front-end interface in HTML that interacts with a Java program via an HTML form. I would like to be able to publish this project on the Internet. In other words, the text ...
0
votes
1answer
84 views

Developing a simple HTML exercises with JavaScript [closed]

I'm developing a website with some simple HTML exercises (like the ones in Codeschool and Codacademy), and now I'm stuck at the correction phase, how can I compare two HTML strings and decide if the ...
-3
votes
0answers
24 views

Positioning two unordered lists one - below-the-other, as a preparation for dropdown navigation [migrated]

I have been struggling really long to position the lists properly. My current code is: <!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="css/style.css"&...
0
votes
0answers
127 views

Correct way of running methods from frontend in an OOP framework

If I have a link to change language of my website, where should that link lead in order to execute a PHP command, specifically in Codeigniter framework? I am interested in the most recommended, DRY ...
1
vote
3answers
178 views

Why is it bad to use inline styling in HTML for generic styles?

Given <div> <textarea></textarea> </div> Why is this <div> <textarea class="width90"></textarea> </div> .width90{ width:90%; } any ...
1
vote
1answer
62 views

Client wants browser's back button to work on a website doing AJAX calls

I'm currently working with a client's website in which we are using ajax calls to show the content of the pages, we are doing this in a single div and obviously you don't move from the index. My ...
1
vote
3answers
113 views

Is there any situation where there is a good reason to use an anchor <a> element without a href attribute?

I recently came across a website that contained an anchor element without a href attribute. I immediately thought that was stupid, but, could there be an actual situation where having an anchor ...
2
votes
2answers
234 views

Are there any reasons not to ever use classes or ids anymore?

I sort of understand unobtrusive javascript. Even in my CSS now I hardly ever use classes or id's because I like clean, easy to read, uncluttered html files. For example, why use this: <body id="...
2
votes
1answer
67 views

Merging dynamically created data with an HTML template

I have a C# application where I'd like to present information that is accumulated in memory from an embedded system in the form of an HTML page in a near real-time manner. As a proof of concept I've ...
0
votes
6answers
487 views

Should i expect real world questions from interviewing agency? [closed]

I started coding almost a year ago. By "coding" I mean HTML(5), CSS(3), and only few times I implemented some AJAX and JavaScript. I am interviewing for a position that expects me to know HTML, CSS, ...
1
vote
1answer
75 views

Best practice for storing external text to then place in html

Sorry if I'm not explaining the question well in the title, I'm not sure of the correct lingo. Let me give you an example instead. So this is a normal HTML file. <span>Well to the site!</...
2
votes
2answers
159 views

Why does :nth-child() in CSS start from 1 instead of 0?

Why does :nth-child() iterate from one instead of zero? As shown in this example. Why does it select the first element and not the second when p :nth-child(1)
418
votes
5answers
150k 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 ...
19
votes
6answers
38k 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 ...
0
votes
1answer
120 views

What type of encoding does wikipedia use?

I have the wikipedia data dump and trying to decode special characters in the page titles, except a lot of characters don't match up the "standard" ascii encoding (referencing from here.) As an ...
-5
votes
2answers
90 views

How do I make such a page that opens different link in web (PC) and different in mobile (phones)?

I am building a website that looks beautiful in Web but worst in mobiles. I want to build the same site but different designing for mobile. Whenever user opens site.com then it auto redirect to m.site....
2
votes
7answers
3k 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, ...
6
votes
1answer
162 views

Is there a standardized practice for ordering attributes in HTML tags?

Thanks for looking. I am working on an AngularJS project and the attributes are numerous in many of my HTML elements: <button type="submit" ng-click="Page.UI.DetailView.ExecuteFunction()" ng-...
1
vote
1answer
101 views

Should I use <table> or <div>? [closed]

I am making a time-sheet portion of a website and I was wondering if using to create the time-sheet portion is an appropriate usage of table or would div be a better use?
0
votes
0answers
28 views

HTML Encoding - XSS protection

My general rule for web development is that the server encodes HTML tags in any user-generated input when it is first submitted to prevent XSS. However recently someone suggested that instead of ...
0
votes
0answers
58 views

How to effectively log while avoiding a bottleneck

I have a fuzzer for x86 Internet Explorer (in HTML) that I've heavily modified to have reproducible, determinisitic crashes (so that I may perform root cause analysis faster). I'm attempting to ...
0
votes
5answers
4k views

Is using xml + xsl to create a weekly html email a good or bad idea?

The guy who is in charge of our html emails is leaving and I have been asked to take over. We are an online retailer and send out an email once a week. An email will consist of a main image, a bit of ...
10
votes
5answers
3k views

css - use universal '*' selector vs. html or body selector?

Applying styles to the body tag will be applied to the whole page, so body { font-family: Verdana } will be applied to the whole page. This could also be done with * {font-family: Verdana} ...
1
vote
3answers
138 views

Nicest way to map RGB colors from HTML to LED

I have attached a RGB LED to a color picker on a webpage and have hit the obvious problem that though the LED is 8-bit like HTML the color rendering is very different so with the more subtle shades ...
9
votes
4answers
4k 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 ...
164
votes
8answers
41k views

Why are there are no PUT and DELETE methods on HTML forms?

HTML4 / XHTML1 allows only GET and POST in forms, now it seems like HTML5 will do the same. There is a proposal to add these two but it doesn't seem to be gaining traction. What were the technical or ...
2
votes
1answer
91 views

Javascript and HTML decoupling

Based on the following snippet HTML <table id="example" class="display" cellspacing="0" width="100%"> <thead> <tr> <th>Name</th> <th>Position</th> &...
3
votes
3answers
177 views

How is rendering a Word document different from rendering a website? [closed]

Now, it doesn't necessarily have to be Word — for ease of comparison, let's use ODT, which is based on XML — which is pretty similar to HTML. That would, to my mind, make rendering an ODT ...
0
votes
2answers
202 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 ...
0
votes
0answers
118 views

Generating dual .xlsx files and .htm pages of the same data

Here are my requirements: Generate Excel reports for users, attaching them to emails Additionally, insert hyperlinks into those emails where the user can view the same report on a web page. I have ...
2
votes
2answers
132 views

Will Web Components in HTML Add Too Much Complexity? [closed]

The way I've been accustomed to User Interfaces is to see everything as a div. Where a div is essentially a box and they can be stylized in CSS. <div class='container'> <div class='...
1
vote
0answers
56 views

How can I properly classify elements?

I'm writing a webpage with a simple header, nav, body and footer layout. To style it, I wrote the following CSS: .mainSideBar { position: relative; display: inline-block; vertical-align: ...
1
vote
3answers
309 views

Javascript Password Security [closed]

I am having difficulty with the answer provided here, but I couldn't understand how to implement it. My code is pretty much identical: <script language="javascript"> function check(form) { ...
5
votes
3answers
407 views

Comparing two large strings to see how much they match [duplicate]

Is there an easy way of comparing any two different size of string text to see how much percentage they're alike? I'm trying this but I'm running into to this issue below. The left text area is the ...
0
votes
1answer
68 views

Turning an HTML template into a Django template

When you purchase an HTML template, usually everything is mixed in together... html, css, images and js. An example template may look like this: account.html category.html contact.html /fonts /img ...
-1
votes
2answers
94 views

Is there any danger in rendering user-entered HTML and can it be mitigated?

I'm guessing the answer is no because there's quite a few examples, including right here. If I let users submit their own HTML text and then render it side by side, what could the user do that would ...
0
votes
0answers
162 views

How does postback url works in campaign tracking systems?

my question is theoretical, a vague idea or some sort of algorithm will be great. I am building an advertising campaign tracker web app for a friend, yet i am kinda lost, i cant figure out how the ...