HTML (Hyper Text Markup Language) is the standard content markup language of the web. It is an open standard developed and maintained by W3C (World Wide Web Consortium).

learn more… | top users | synonyms

0
votes
0answers
20 views

Website code for a client

This is for a client of mine: Enbridge Gas. I had to turn 2 .psd file into html and CSS. This client is my first real client by myself and I want to make sure my code is improved as much as possible. ...
2
votes
2answers
34 views

Retrieve data from json file and avoid HTML/JS tight coupling

I am retrieving data from a json object and even though code works I am not sure if I am following best practices. In particular some of the objects seems too deep (like value.metadata.connections....
5
votes
0answers
46 views

HTML page compiling LaTeX code to nice mathematics display - 2nd attempt

I have this page that allows a user to quickly compile \$\LaTeX\$ code into a mathematical display. Whenever the user compiles the code, that page also generates an URL from which it is possible to ...
3
votes
1answer
89 views
+100

Form validation library

Background: After reading this thought provoking book I decided to write a small library as an exercise. ...
0
votes
0answers
26 views

Loading an animation with an Ajax request

I am not sure if this is the correct way to make an Ajax request and do the typical loading/processing GIF/animation while processing is happening and displaying the response. HTML: ...
1
vote
1answer
20 views

Sidebar menu to hide or expand parts of a form

I have some of my code that I have tried to improve on to make it cleaner and efficient and I would like some feedback to see if I am going in the right direction with what I am trying to do. I have ...
0
votes
0answers
13 views

Responsive Web form with Foundation for sites

I have made this web form for user registration. The requirement is that it can be used on different devices, respectively screen sizes. With you tinkering I was able to make this current version ...
3
votes
1answer
30 views

Displaying user selection in the browser

I have the following script that reads JSONified data from within a DIV, generates HTML with values using JavaScript, then sends them to another DIV. What I'd like to improve is to remove HTML from ...
2
votes
1answer
102 views

HTML generation in C#

I have a method that generates some HTML, but it looks ugly to me. Maybe there are some better solutions for this? ...
5
votes
1answer
108 views

Simple restaurant menu

As stated in the title, the code produces a simple drop-down menu that allows you to select your Starter, Main and ...
0
votes
1answer
61 views

Replacing DOM elements that have no attributes

The institution I work for uses an application that has an awful software bug causing useless <code>span</code> tags to appear next to "misspelled" ...
1
vote
0answers
23 views

Universal CSS template for global styles

I 'm trying to create a universal CSS template for global styles. I can not find unambiguous recommendations. After inspecting various sites, I have compiled the following template . I ask your advice ...
1
vote
1answer
44 views

Regex Tool in PHP

I'm looking for feedback about anything and everything to do with this short program. For example, is there a risk in not sanitising the data, and if so, how would I do that given the need for non-...
-3
votes
0answers
32 views

Html Canvas + JavaScript code feedback

I would like some feedback on how to optimize and improve my code: HTML: ...
3
votes
3answers
70 views

Wikipedia Viewer

This is one of the projects on freecodecamp. I would like a review on my code. Thanks in advance. Javascript: ...
1
vote
0answers
24 views

Formatting a CHANGES text file as HTML

I have a function which is used to convert text (a CHANGES file) into HTML for reading. The function is essentially line-based: if the line is of this type, do this thing; if some other type, do that ...
0
votes
0answers
9 views

My first form in BEM style + SASS

3 days ago I have found out about the BEM schemantic. I have googled a bit and tried to do my first login form with BEM + SASS. One problem I had, was to find correct names. However in my opinion as ...
0
votes
1answer
44 views

Easy Print PHP From Data array or objects

I have created a PHP class to print into html easily from an array or object. Using this class, you can get rid of multiple echo blocks or ugly concatenation ...
2
votes
1answer
42 views

Stranded messaging Angular web app - main template for all views to live within

I'm making an Angular web app to solve a pain with traditional messaging my friend and I had, of sending batches of messages (on multiple different topics) to each other every few hours and not having ...
2
votes
1answer
31 views

Shortening Divs

I have a project here that looks pretty good and does exactly what I want it to do. The codepen is here. What I need to find out is if these divs that flip can be shortened in any way: ...
2
votes
2answers
42 views

Selecting one form to be visible using jQuery

I'm new to JQuery but have managed to get it working the way I want. The problem is, it's a bit convoluted and could easily get out of hand if I add more options. I am trying to show and hide divs ...
4
votes
1answer
115 views

A very basic JavaScript calculator

I'm just starting out with code. I created a very basic JavaScript calculator. While writing, I couldn't help but think that there must be easier, faster and less redundant ways to write this. For ...
1
vote
0answers
24 views

Python html Page reporter

My program, page_reporter, attempts to port scan a network and identify servers hosting web pages. From here it will create an HTML report using iframes to give you a snapshot of what the page looks ...
1
vote
0answers
12 views

Modular widget that minimizes js and css scope pollution

So, my goal with this is to create a simple login widget that does as close to nothing to the global scope as possible. The login mechanism is less important than the encapsulation. The whole script ...
0
votes
0answers
19 views

HTML page compiling LaTeX code to nice mathematics display

I have this (short) HTML page that allows the user to input his/her LaTeX code, after which it will compile the code and display the result using MathJax. index.html: ...
3
votes
1answer
36 views

Google Maps geocoding lookup function

In an effort to keep all of the Google Maps Javascript API in it's own little world, I have created a googleMaps object that will contain all of the functions that directly make google maps webservice ...
2
votes
1answer
65 views

Graphic Ape Designs gallery website

I am currently working on my YR9 (I'm 14) IST web development project and I want to know some tricks for optimizing my website. I know that I shouldn't have the same CSS rules in the style tag on ...
2
votes
2answers
92 views

Responsive horizontal scroll on mouse position

I am making a responsive horizontal scroll UI. The horizontal scroll position is calculated according to the mouse horizontal position: ...
1
vote
1answer
78 views

Turn script into a function which extracts the div ID and places it inside

Alright, so I've got this script which basically drains the thumbnails and streams from the twitch API/JSON. ...
4
votes
1answer
112 views
0
votes
1answer
62 views

Generating HTML code dynamically with jQuery

I am doing a college project and I would like to write my jQuery code following best practices. The project involves using the jQuery .getJSON method to retrieve information from a json file. I have ...
1
vote
0answers
46 views

jQuery placeholder plugin checking

I have been experimenting with jQuery and HTML placeholder plugin for practice work. I've used this jQuery plugin. I've checked it in IE8 in, it seems it works. Could you please check and write is ...
5
votes
2answers
94 views

Restrict HTML input field to decimal

I'd like to restrict user input in a form to a decimal with max two numbers before and 4 after decimal point. Valid values would be: 50 0.1 1.23 4.5678 12.943 ...
3
votes
1answer
56 views

Generating jQuery mobile “pages” dynamically

I'm doing a college assignment with jQuery Mobile and JSON. Best practice with jQuery mobile is my main concern. My html starts off with a main 'page' (data-role="page") inside a div with id="all-...
0
votes
1answer
22 views

Converts Units of Volume; optimization and improvement

I am creating a volume converter. It allows users to enter a value and select the unit to convert from and the one it will be converted into. It uses a ...
2
votes
2answers
51 views

Tag dependence approach

I need to add class is_active to all div's when I click on <div id="all-tags"> and remove class if I click again. Only ...
1
vote
1answer
42 views

Expanding list on webpage

The below produces the output I want. Namely, it initially displays the first item on the list and the first expander link. When an expander link is clicked, it hides that link, unhides one more item ...
1
vote
3answers
84 views

Get part of element ID

I am getting the number part of the container ID that the button is in. Now I am wondering if I need to create an array using split and then put this number in a ...
1
vote
0answers
47 views

JavaScript drag-and-drop sortable list

I made a simple list with drag and drop ordering function using JavaScript, HTML and CSS. Although I tried to do this as efficient as possible, I'm sure there are some improvements to be made. What ...
3
votes
0answers
84 views

FizzBuzz… with style (js, jquery, html, css) (and questions…)

I discovered the FizzBuzz test while looking up something else on stackoverflow, so I decided to try it and see what I would come up with. I'm kind of new to jquery and js, so I'm looking for a ...
3
votes
0answers
51 views

Fantasy league tracker for Game of Thrones

So I've just started learning about MySQL and PHP to create a fantasy league tracker for Game of Thrones for my office. I got it to technically work fine, but I think it's way clunkier than it has to ...
0
votes
2answers
38 views

How to optimize a section in HTML/CSS [closed]

How to set in HTML/CSS a section just like in this picture https://snag.gy/mStL9H.jpg ? I have tried something but am not sure if it's right. ...
0
votes
0answers
31 views

A wrapper around HTML file inputs

The <input type="file"> element is rendered differently by different browsers, and it's essentially impossible to directly style with CSS. A common way ...
5
votes
3answers
74 views

Hearthstone deck list

My code will display a Hearthstone deck list. I'm still learning HTML and I'd like help with a few things: • How readable is my code? How can I improve readability? • Have I used any bad practices? ...
5
votes
1answer
61 views

Selecting HTML nodes

I'm new to Clojure, and I'm writing some code that processes HTML. I'm parsing the HTML using clj-tagsoup and then trying to pull out the relevant bits with this function: ...
2
votes
1answer
72 views

Semantically structured HTML5 for a news page

I'm developing a website and I cut the images that I will use: ...
1
vote
0answers
52 views

Hearthstone mana curve Google chart

My code displays a Google chart that shows a mana curve. I'm not very experienced with Google charts, so I'd like help optimizing my code. I'd like my code to be more readable and to have fewer lines (...
3
votes
2answers
66 views

Simple function to generate an HTML-safe string

Sometimes, we have to do some fixing to insert a string into an HTML property. Or just to display it. But not everything is safe! Consider the following example: ...
0
votes
0answers
38 views

Template for a table to display suggested pledge amounts

I am building a template that will: need to be edited by people with minimal JS/CSS/HTML training need to be flexible enough to accept changing text and layout need number of rows/columns will ...
3
votes
1answer
73 views

Editing HTML based on instructions in a data structure

My getExtend() function, which will be included via require.js, has two inputs and one output: HTML file content config object which determine how to ...