Questions tagged [html]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
70 views

How to develop data bound html with strong typing and intellisense?

I'm a huge believer in the value of Intellisense for showing you what syntax is expected and allowed (and also saving typing, though this is a secondary consideration). When you build a web component (...
Joshua Frank's user avatar
0 votes
1 answer
121 views

Is the BEM methodology in the large project used correctly

I am creating SCSS for the large project, I decided to use BEM methodology. I will have a lot of containers. I have question about BEM and about best practices. My current code: .footer { &...
user avatar
-1 votes
1 answer
111 views

Why do HTML and JS feel slow on smartphones? What could be changed to make them faster? [closed]

HTML rendering and javascript engines are very optimized, so why do they feel slow on smartphones? It seems that HTML's low performance justified the creation of mobiles "apps" which are ...
jokoon's user avatar
  • 2,262
-3 votes
1 answer
68 views

HTML Playground [closed]

I'm creating a service for creating web tools. The tool is a generated web page with some JS engine. The user can interact with the JS engine through the user interface. The user interface can be ...
christo's user avatar
  • 105
1 vote
3 answers
120 views

Multi type HTML dropdown conversion to the corresponding C# object type

Note: This is a contrived example I came up with to illustrate what I'm after as simply as possible. I have an HTML report with a single dropdown box at the top that lets the user select (or filter) ...
Scuzzlebutt's user avatar
0 votes
1 answer
112 views

Using sed/awk to bulk generate static HTML pages off of a template

Hypothetically, consider a social photo platform - each pic gets its own url, this page contains the image, text about the image, buttons for the user to click, related pics, and some user-specific ...
ahron's user avatar
  • 165
1 vote
3 answers
555 views

Why does HTML collapse whitespace?

I've been trying to better understand (at least at a high level) why the early versions of HTML were designed the way they were. Most of the decisions make sense; I can deduce (at least at a high ...
Mathew Alden's user avatar
0 votes
1 answer
154 views

Is it good practice to wrap a single element in a container?

I am new to UI development and am currently reading how to style a form in a responsive way. By googling I found this tutorial https://www.w3schools.com/howto/howto_css_responsive_form.asp (I know the ...
Felix B.'s user avatar
  • 123
8 votes
3 answers
12k views

How do you 'merge' several JS files into one? [closed]

New Web Dev here. Recently I got into DOM manipulation with JS, everything was sweet with one-page websites, but then I tried with projects with many html files and that's when I got confused. It's a ...
JosueMagnus12's user avatar
1 vote
2 answers
349 views

QR Code Scanning with location check

I would like to make an order-system with QR-Codes which is online. How I imagine it to work: A customer visits a restaurant. There is a QR-Code on his table which takes him to a public webpage where ...
rbnpts's user avatar
  • 19
1 vote
2 answers
751 views

Is it better practice to create a div in the html or using javascript

I have javascript script that creates the same div everytime the user clicks enter and then set the event listener to the new input in the new div. example: //creates the container, text and input for ...
BeeFriedman's user avatar
-3 votes
2 answers
71 views

Moderator/Administrator Script for website (HTML) [closed]

G´Day, So I am making this website out of basic HTML. I wanted to add a Moderator/Administrator script for it and was wondering if there was any way I could Create a script myself easily. (Keep in ...
Joseph Casey's user avatar
2 votes
1 answer
126 views

When is it Counterproductive to Separate PHP and HTML

Understanding that it is less load on the server to not have to parse HTML, when does it work the other way, as far as server performance. The majority of my Web sites are database-driven - often the ...
RationalRabbit's user avatar
0 votes
1 answer
206 views

Is a good practice using form tag's atributes in HTML?

Checkout this HTML using the attribute action, method and target from <form></form> tag: <form action="/action_page.php" method="get" target="_blank"> ...
Renato Junior's user avatar
0 votes
2 answers
74 views

What are the anchor's "name" attributes on history's first website?

History's first webpage is still online and functional. I was looking at its source out of interest and noticed that anchors consistently have a name attribute containing a stringified number, for ...
Robin Métral's user avatar
1 vote
1 answer
289 views

Advantages and disadvantages of including JS/CSS inside the HTML?

What are the advantages and disadvantages of including JS/CSS inside the HTML instead of separated files? Specifically concerned about performance issues, for example, if the CSS and JS are small and ...
MauricioRobayo's user avatar
2 votes
2 answers
2k views

What's the better way to do MVVM with a number of very similar view models?

An important view in our application is a big table of entities. For the purposes of this question I'll use an analogy for our entities - so let's say it's vehicles. There's half a dozen different ...
KeizerHarm's user avatar
-3 votes
1 answer
69 views

doesn't inline-styling represent separation of concerns concept the best way if you think that you're separating the HTML element from other elements?

I know that Inline CSS styling gets so much hate from many developers, and I understand that some of this hate is justified by the following facts: Inline styles increase page size as they don't get ...
Tarek's user avatar
  • 1
1 vote
2 answers
339 views

Identifying states when using state machine to validate a form field

Scenario is simple, a password field with few validation rules. The states I came up with are default ( when the form loads or reset button is pressed) filled ( should this even be a state ?) valid ( ...
ama's user avatar
  • 21
2 votes
0 answers
71 views

I'm trying to write something that will fill out an Australia Post Declaration Form [closed]

I've got basic proficiency in PHP, JavaScript, html, and SQL. I also use Postman little a bit. I hope a solution to my problem can be found within those skills, but I'm willing to learn a new language ...
Jonathon Philip Chambers's user avatar
0 votes
1 answer
167 views

Convert RTF to HTML when it's saved to the database or when it's rendered?

Users have the ability to enter and save text in a rich text editor which is eventually stored in a database and then rendered on a site. Is it better to convert the RTF to HTML when it's stored to ...
Coupcoup's user avatar
  • 200
2 votes
0 answers
1k views

Setting width/height of unknown images for lazy loading

I have a site where users upload images & can all be viewed on a single page by other users. I want to lazy load images as the user scrolls instead of loading all initially. This is easy enough, ...
Avery Ferrante's user avatar
-1 votes
1 answer
707 views

What are downsides to opening local html files in the browser?

Let's say you have a scenario where you want to build a simple web stack (html/css/js) prototype to share with someone. I am a little unclear on whether or not I want/need to use a small web-server to ...
z0d14c's user avatar
  • 101
0 votes
1 answer
44 views

How would you have a fallback for html insert when the html has changed?

Given a website, our customers will pick a spot on their website and we record an xpath to that location. Our software is DNS integrated, similar to cloudflare, and we manipulate the origin's html ...
ericraio's user avatar
-2 votes
1 answer
117 views

How good of an idea is extending HTMLElement

In the new era of web components MDN (and probably the standard) suggests extending the HTMLElement class. For a long time we've strayed away from doing that, what has changed now for this to become ...
php_nub_qq's user avatar
  • 2,204
0 votes
0 answers
241 views

How can you multithread an html parser [ in C++ and similar languages ]?

Ive done two HTML parsers. Done with Regular Expressions [that accounted for nesting]. It was quick, but error prone. Done by evaluating Character by Character through switches. Here was the basic ...
Anon's user avatar
  • 3,575
-3 votes
4 answers
1k views

Is it possible to prevent tech scammers from editing bank webpages?

In a refund tech scam, tech scammers use Chrome Developer Tools to edit the HTML directly on the victim's bank webpage through a Remote Desktop (Teamviewer, AnyDesk, etc) to fool their victim into ...
Joseph Goh's user avatar
1 vote
1 answer
59 views

Html development with partial views

Is it a standard practice to develop a HTML project using partial views. Consider a project where the design team will develop the HTMLs based on the requirement & then the backend team will work ...
sukesh's user avatar
  • 165
-3 votes
3 answers
139 views

What are some of the best ways to create single page websites with dynamic content?

I'm expirementing with creating a website as a IT Ticketing system. This website has a top nav and a side nav. I want the content area to change depending on the link clicked. I've managed to get the ...
Jacob Lamattina's user avatar
0 votes
0 answers
53 views

Unique Colors for Chart Data

This is likely in the wrong section but I'm curious if there is a good way to select unique and distinct colors for plotting data on charts? My current method is to hard code a set plot limit with ...
FamousAv8er's user avatar
6 votes
1 answer
838 views

Whatever happened to HTTP SEARCH? [closed]

It seems 5 years ago there was a proposal for a HTTP SEARCH request, but it does not appear to have been adopted and it not widely supported. Are there any factual documents or citations which shed ...
chrispepper1989's user avatar
0 votes
2 answers
150 views

Should we check if the primary key exists if rendering a collection fetched from database?

I have got an argument with my colleagues about this. IMO It's common practice that you don't need to check if an id exists or not before rendering it. So here's an example. This is what my ...
Mak Suriya Jacobsen's user avatar
2 votes
1 answer
1k views

Hidden Input Fields for POST - Security

I have seen some posts on the subject of hidden input fields for use with postbut none were able to answer my question. I have a delete button tied to a user in a table. The delete button uses a ...
FamousAv8er's user avatar
0 votes
0 answers
119 views

Angular 8: Mixing Business and Presentation logic

I was reading about the history of Microsoft and Webforms. How people strayed away from Webforms because it mixes business logic with display/presentation logic. So when reading Angular 8, and seeing ...
user avatar
0 votes
1 answer
112 views

Turning complex XML (or content tree) into HTML - How to do it (in Java)?

I have a deep object content tree that I transform into a XML using JAXB and a small self written API on top. But now I want to create a static HTML site that has basically the same content (and ...
JellyFilledNuts's user avatar
0 votes
0 answers
49 views

Which components of an HTML Element, can I assume will be static over the course of its lifetime?

This is a question for people who are familiar with how HTML typically is built and behaves on webpages. Backstory and requirements I am building an HTML tracker with a C++/Qt backend. I am trying ...
Anon's user avatar
  • 3,575
0 votes
0 answers
40 views

How to store message content in a webservice

I am building a service responsible for sending email/sms communications. The service receives a request that contains information necessary to build an email/sms template and the recipient ...
Daniel Benzie's user avatar
1 vote
2 answers
1k views

Is JavaScript added and executed in parsing or in rendering?

As far as I know, each webpage is created in a two stage process, initiated by a webserver request and ended in a webserver response: Parsing: markup (Say HTML) is executed as is, or created by ...
user avatar
-2 votes
1 answer
249 views

Supervisor wants unconventional web site, how to resolve this

I started a new job with a greenfield site in Angular to create a website from an old desktop app. I gave a presentation guided by my Supervisor who wants game style top icon menus to cut down on ...
Andrew Day's user avatar
-1 votes
1 answer
399 views

Maintaining a static website using an HTML preprocessor [closed]

I have a static website with lots of similar pages. The site is very simple, basically just some information for me and a few other people. I'd basically like to spend as little time as possible ...
CoffeeTableEspresso's user avatar
2 votes
1 answer
220 views

handle file downloads from the server

I am wondering if the following would be a good technique to allow user to download files from the server in the below scenario: Info about the scenario: User logs into a system (HTML,JQuery and CSS,...
Tan's user avatar
  • 151
0 votes
2 answers
89 views

Website Multi Languuage [closed]

I have one website and the website are now in HTML, that actually is structured: domain.com = English domain.com/es = Spanish domain.com/de = Germany I copied the HTML of English page to Spanish ...
Momed Jussub's user avatar
1 vote
2 answers
2k views

Is it bad practice to leave hidden elements in the dom?

I'm looking for perspectives from other web/ui developers. I'm a UI developer and my company requires that I use components built by another team within the company. That team has developed some ...
Nate Thompson's user avatar
1 vote
1 answer
778 views

Rendering custom markdown format: client side or server side?

I am working on a project on both iOS/Android/macOS/Linux (Windows is optional, and surely no website version). There are a lot of related webpage-like data and the team decided to store the data in a ...
tonychow0929's user avatar
1 vote
2 answers
151 views

I generated XHTML with XSLT, what are my options with HTML 5?

I have some older xsl transformations that I will modify soon. They generated XHTML code from a home-grown XML format. Since I am touching these XSL files anyway, I am wondering how I will deal with ...
wirrbel's user avatar
  • 3,018
12 votes
3 answers
9k views

How can I prevent a user from editing my code in their browser?

Description I'm designing a Node.JS application (more like a full website). The app will send five JavaScript files and will have <script> tags linking them together. Question How can I prevent ...
Ed The ''Pro'''s user avatar
2 votes
1 answer
42 views

How to collaberate UI Team & Development Team for smooth development process over time to adapt changes in design?

The UI team deliver the HTML files to the development team. Developers code PHP on html files to make the website. But later we face a lot of changes in design. The designing team makes the changes in ...
nithinTa's user avatar
  • 141
1 vote
1 answer
1k views

How to white label my website in php

I have a website that follows the following structure: www.example.com/city1 www.example.com/city2 ... Programmatically we change the logo which is hard-coded in a specific config file for city 1, ...
Dennis's user avatar
  • 139
2 votes
1 answer
1k views

How can I turn my CRUD database application into a REST application?

I may have gotten myself confused, when reading CRUD vs REST and how they are similar, so I wanted to explicitly ask: can I turn my CRUD application into a REST application, when I have a specific ...
Dennis's user avatar
  • 8,157
5 votes
4 answers
2k views

How to do BDD for CRUD?

I want to understand how Behavior-Driven Development (BDD) can be applied to building CRUD applications. I have read a lot on the subject but I just don't get how I'm supposed to apply it. I learn ...
Gudradain's user avatar
  • 444

1
2 3 4 5
9