Questions tagged [html]

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).

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

VAT Calculator with Javascript

I've just created a simple VAT calculator. The script works fine though some animations seem a little buggy. Being a javascript beginner I'd like to ask more experienced programmers their opinion ...
5
votes
3answers
406 views

HTML HELP TOOL: displays basic HTML tag uses

I need someone to review and improve this code. ...
0
votes
1answer
35 views

List all checked boxes from webpage

This is part of a Tampermonkey script that generates a box in the top right of a webpage and generates a list of checked boxes from the specified list selector (list chosen through buttons). The ...
2
votes
1answer
33 views

Class project: user-editing page for a haiku website

I am making a website using just HTML and CSS for a classroom project (we are in the 2nd week of boot-camp.) I have my site made, and want to get others' opinion on the code. I am mostly looking to ...
3
votes
1answer
304 views

Live pastebin for HTML, CSS & JavaScript

JS Bin Clone This is basically a clone of JSbin that I tried to build from scratch. The Javascript took me a good 20 hours to figure out. I had way too much fun trying to figure out the logic behind ...
3
votes
0answers
257 views

Timepicker React component

I have developed a simple timepicker component. I did this only for learning and getting more familiar with reactjs. The feature this timepicker will have a) Select time in AM and PM b) Convert am/...
3
votes
1answer
1k views

Displaying a price quote depending on the selected number of rooms

I've written a WordPress plugin that displays a price quote based on what options are chosen in the settings and then what the user chooses with HTML <select> ...
3
votes
1answer
325 views

Phaser game runs good on desktop but lags on mobile

I am creating my first game using Phaser and it is running fine in desktop. But it is lagging on Android phones. Can anyone tell me what could be the reasons? The game is very small -- smaller than ...
3
votes
2answers
13k views

Find all attributes for each HTML tag

This code outputs each tag followed by its attributes in the given HTML, both in lexicographic order. It must be possible to keep the spirit of the code without these many nested cycles and ...
2
votes
3answers
317 views

Next and Previous navigation

I'm sorry, maybe this question is really stupid but I have really been thinking a lot about it recently, thinking of which type of <prev | next> web ...
2
votes
1answer
8k views

Click on an image to zoom in

I'm still a newbie when it comes to javascript, so I don't know yet how to optimize this code. customize.js ...
3
votes
1answer
688 views

JS calculator module using functional programming

All of the code is self-explanatory and pretty much complete. What the code does: Calculates using onscreen numerics and operators Validates any erroneous operations, such as 4 ** 8 or *9 Good ...
4
votes
0answers
64 views

Controlling Finances with Web Development

Purpose First, let me explain the title: I previously had managed my finances like an old fashioned company might, and it worked wonders for making financial decisions (at least for me). I wanted my ...
4
votes
1answer
8k views

Simple memory game in JavaScript

I have my HTML, CSS and JavaScript below and I would like to know as many bad things I did as possible. ...
0
votes
1answer
36 views

Getting filepath of a specific asset

I wanted to make my assets semi-dynamically so I made this utility class for it: Assets PHP class: ...
2
votes
0answers
819 views

Simulate a simple shopping basket

I simulated a web shopping basket for a store with a single product, for two reasons: to learn to use browser events for a user to manipulate data in a page so that, in the future, I can build it ...
7
votes
1answer
70 views

HTML Date Selector

I made a date selector in HTML, which accounts for leap years and the number of days in each month. I am relatively new to javascript / HTML so please critique it as much as possible. ...
2
votes
2answers
145 views

List component using plain JS

beginner web dev here. I created a custom list component (with edit feature) in plain JS/HTML. I have few questions on which I would like to get an answer (besides the normal feedback that you folks ...
3
votes
1answer
116 views

Multi search bar

This searches within three search engines. I would like if you could tell me any ways to make this better: ...
1
vote
4answers
13k views

Function to remove specified html tags from string

I recently wrote this function that, when supplied a string and an array of element types, will remove those element types from the string. As you could imagine this is a very very simple function, ...
0
votes
1answer
114 views

Displaying MySQL data using PHP

I have MySQL data that I am rendering in an HTML table using PHP. This is the full code of my table and PHP. It does output fine and looks how I would expect but I am wondering if there is a better ...
6
votes
1answer
114 views

A dropdown box that toggles the textbox

Is there a way to improve the Javascript that I wrote in this code? I made a dropdown box that toggles between showing and hiding the textbox. I then realize that the Jquery/Javscript code I was ...
1
vote
1answer
84 views

JavaScript calculator for FCC

I am writing a JavaScript calculator as a Freecodecamp frontend project. Here are mine .html and .js files. Your help or advices are welcome. Task objective: Build a CodePen.io app that is ...
5
votes
1answer
175 views

Simple Calculate Game

I am a beginner in programming and I wrote a simple game in Javascript in which you have to solve exercises. Division exercises have to be solved without remainder. If you have tips for improving the ...
1
vote
1answer
166 views

Determine if an HTML tag name is valid

We've developed an ESLint rule to determine if a tag name used inside the Protractor's by.tagName() locator is valid. A Tag Name is considered valid when: ...
3
votes
1answer
242 views

Add To Query Based Off Date Picker Or Drop Down List

I have a page where the user can either input a start date and an end date into two date fields, OR the user can select 10 days, 20 days, 30 days from a drop down list on the page. My php/html ...
4
votes
1answer
791 views

Step by step wizard

I'm currently working on creating a step by step wizard in Angular and twitter-bootstrap. I've actually got it to work as intended but as I'm looking to advance my skills I'd like to hear if you have ...
3
votes
1answer
114 views

CSS3 Animated Loader

I am fairly new to HTML and CSS and have been trying to make things with whatever knowledge I have. I created a 'loader', but I'm certain that I have done things in ways more complicated than they ...
3
votes
2answers
211 views

RSS to HTML script - version two

I wrote this script that downloads an RSS feed and converts it to HTML. One of my only concerns is my variable naming because I suck at naming things. ...
3
votes
0answers
588 views

D3 Force-Directed Graph with Numerous Functionalities

I have a d3.js force directed graph that is driven by the code below. I am relatively new to d3, and much of the code is pieced together from various examples found online. If anyone has a moment or ...
1
vote
1answer
383 views

is it good practice to use relative path in xpath more than once [closed]

I am using Selenium Webdriver-Java to automate a web application. Suppose the html is somewhat like below: ...
3
votes
2answers
777 views

Performance and Readability Improvements for HTML Parser with BeautifulSoup

This function takes as an argument a json file (could contain anything in json format, since I scrap hundreds of random pages) and returns a list of dictionaries where a URL is mapped to its ...
0
votes
1answer
51 views

Make website full responsive by using javascript

Currently I am using javascript to make my website full responsive, but this is extremly painful... I do it like this and control the behaviour of all the elements from window width 50px till 2000px. ...
8
votes
3answers
980 views

Mask latitude text field

I have an input element on one of the pages. This input is supposed to take a string of digits from a user. In order to enhance UX I'd like to mask input's value at any given time. Like so: What came ...
3
votes
2answers
247 views

Responsive buttons for post navigation

I have tried to make two buttons to be used for post navigation below each post on a blog: It works, however - it feels like to much code and classes for so little. I'm using Bootstrap 4, alpha 6. Is ...
1
vote
1answer
8k views

Extract html content based on tags, specifically headers

I want the function to take as an input json file containing html_body with its corresponding url and return list of tuples containing headers and their corresponding url (so could be tuple with one ...
1
vote
0answers
262 views

Website for demonstrating company skillset

I am posting my code again for a proper review because the last time I posted my code here the website was incomplete, and was therefore voted off-topic. Now that I have completed it, I am posting the ...
4
votes
1answer
352 views

Making a staircase using HTML and CSS

Here is my answer to the question, which I think is quite inefficient considering its length: ...
2
votes
0answers
204 views

Ruby on Rails portfolio website

I've been learning Ruby on Rails for the last few weeks. I've decided to do a portfolio website using Ruby on Rails to showcase all of my projects. Can you look through my code to see what you think? ...
2
votes
2answers
377 views

RTL management HTML & CSS

I've been working around a solution to easily manage LTR and RTL on the same interface. The different solutions I knew at first: Override CSS according to direction. Use a program to transform your ...
3
votes
1answer
1k views

Using simple HTML template to create HTML formatting rules

One of my tools that renders HTML needs some rules about document formatting. The renderer can format the output so that it is indented and contains appropriate line-breaks. In the first version I ...
4
votes
2answers
621 views

Visit each HTML element and apply inline CSS

I need to apply some css styles to an IMarkupElement. The generated HTML is only for emails so all styles are inline styles and the selectors are very simple, just ...
4
votes
2answers
80 views

Individual collapsible areas with accessibility in mind

I've been learning Javascript by creating reusable individually collapsible areas (not using jQuery) and I was wondering if someone could review it and let me know if there is anything they would do ...
3
votes
2answers
66 views

Creating keyboard shortcuts for highlighting elements of given classes and toggle through them

I have written a jQuery script to create keyboard shortcuts to highlight elements of a class (given to me) and toggle through them. I have created the HTML file myself, so ids and class names are all ...
0
votes
1answer
388 views

Repetitive jQuery click functions for changing multiple elements

I'm using the following code to change elements text and classes when a click event is fired. My question is: Is there a better way to go about doing this that ...
2
votes
1answer
255 views

Minify and send HTML response in Go

I need to have some static HTML pages on a project I am making with Go. I used the http.FileServer, but I noticed it was slower than rendering with ...
1
vote
0answers
299 views

Pomodoro Timer in pure JavaScript/CSS/HTML

I've just finished my frist project ever on GitHub and I'd like to get any opinions about it: Is the code following a good standard? Is there a way to improve the code to look more professional, less ...
0
votes
1answer
261 views

Generating a list of menus with AngularJS

Some days ago, I decided to start learning a JS framework in order to gain skills and become more useful at work. I choose Angular for the purpose, and started learning it by building up my "...
4
votes
3answers
281 views
3
votes
3answers
156 views

Change text and styling of a form control when a slider value changes

Having a hard time to achieve what I'm looking for. I was thinking of using arrays but don't know where to start. Code below is what I want to shorten to get rid of multiple ...