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

Using <a> element instead of <tr> to get clickable rows

I want to create clickable rows in an html table. Each row should be a link leading to a different page. I can of course add onclick handler, but that will create ...
-1
votes
0answers
27 views

how to use a second <ul> tag for my website [closed]

i am buildung a website. right now i want to create a unordered list for some examples. but at the beginning of the html code i already did use the "ul" tag. how i am supposed to re use it. ...
3
votes
1answer
46 views

Security of the login code on the website

I wrote the code to log in php to the admin panel. Everything works as it should. But I am not sure if it is well written code and if it is safe. I care about security. I have read a lot about it but ...
-2
votes
0answers
18 views

Rating simple app in html css js + firebase [closed]

GH: https://github.com/Danie3L/list Live: https://tender-poincare-0082df.netlify.app/ I would like to know if this file division makes sense and what I could have done better. I wasn't focusing on ...
-2
votes
0answers
32 views

Redirecting a user from a contact form webpage to a success webpage [closed]

On a CentOS Apache-MySQL-PHP environment I have a website with a simple HTML-PHP-CSS contact form; the contact form is working. This is how I redirect a user from the contact form webpage to a success ...
0
votes
1answer
45 views

Please check out my code incrementer

I recently developed code that can run as a function parameter but I'm not quite sure how vulnerable it is to hacks and/or cheats. Also, is there anything I could improve? ...
2
votes
0answers
24 views

Javascript portfolio with 11 small apps

I'm learning to code for about a year and recently I finished my Javascript project. It contains of 11 fairly simple apps involving using APIs and DOM manipulations https://github.com/matt765/js it's ...
1
vote
1answer
67 views

Web-site navigation bar

I'm just starting to learn website coding with html, css, and JavaScript. To get a bit of a hang for it, I'm trying to build a complete web page. So far, I've only done the navbar. I started with a ...
2
votes
1answer
33 views

Asking and checking if the answer is correct

So I'm very new if JavaScript and my question is this a right way to implement this functionality? How could I improve this code. ...
1
vote
1answer
92 views

Method encodes all less than (<) characters in a HTML string, but not the HTML tags

I am cleaning a HTML string to encode the less than sign (<) to a HTML entity (&lt;), but leaving the HTML tags as they are. An example is converting ...
1
vote
2answers
46 views

Dijktra's Algorithm Visualizer

A couple months ago I made an interactive dijktra visualizer that allowed the user to setup the map nodes and run the algorithm. I thought it was a good way to solidify my algorithm and html/css ...
3
votes
1answer
72 views

HTML parser written in JavaScript that takes in strings and output a DOM tree object

I wrote an HTML parser in JavaScript, where it takes an a string that represents the HTML ...
1
vote
0answers
15 views

Getting images to align side-by-side and making DIV with image not move with text?

This is my working code for a HTML auto dealer template which does the job, but esthetically, isn't quite that pleasing and is very functional (use Expand snippet on all of these to see the design ...
2
votes
0answers
33 views

Todolist in vanillaJS

I have been studying front-end development for 2 .5 months, I decided to switch to practice and wrote a todo list in 8 hours Please write your opinion about the code and how it can be improved (...
0
votes
0answers
11 views

CSS animated button and custom meter made of divs

I know I could've used a <meter> element, but I wanted to try implementing from scratch. The positions are a bit hacky, and I tried to make it responsive but ...
1
vote
1answer
47 views

Sanitize user-supplied HTML with Python and Regular Expressions

I have a product that needs to have users put content in a form that potentially contains HTML and display it back to other users. I'd like to mitigate the risk as much as possible, and I can limit ...
1
vote
1answer
30 views

Input text upload to MySQL DB

I am uploading and selecting code from my MySQL DB and I have a feeling some of it could be written in a much shorter way but I don't know how. Can someone tell me if this is clean code or if it's too ...
2
votes
1answer
31 views

Cookie consent box on button click

I'm just getting started with frontend development. I tried to make a pretty barebones cookie consent notice. I still don't fully understand flexbox and positioning, so the code is messy. HTML: ...
0
votes
0answers
26 views

Vanilla JS Tic Tac Toe

I would appreciate a code review - specifically of the javascript - for a tic tac toe game that I have built. I am looking for feedback on where improvements can be made in the overall structure, ...
5
votes
1answer
108 views

Security of CS50 Calculator code (eval)

This is my first question on Code Review, so please let me know if I botched anything. After working for quite a while on my CS50 calculator, it has finally reached the point where I am completely ...
2
votes
0answers
26 views

Query WordPress database, returning an array of rows

This is one of my first attempts at querying the WordPress database for data, and some my first PHP code ever, so please bear that in mind when commenting. It is supposed find data between two dates, ...
4
votes
2answers
112 views

Simple To do List

I am working on a simple to do list and i was hoping if a experienced person could review my code in hope for feedback. I don't use any libraries as i haven't taken time to look about them. I decided ...
2
votes
1answer
22 views

Validator and Sanitizer for HTML 5 attribute regex according to current HTML living standard

According to https://html.spec.whatwg.org/multipage/syntax.html#attributes-2 an HTML 5 attribute name is defined like this: Attribute names must consist of one or more characters other than controls, ...
0
votes
0answers
10 views

Windows Like Security Screen for Linux (mockup)

Ubuntu and other Linux variants do not have a Windows like CTRL + ALT + DEL screen, so I figured I'll make one myself. My plan is to make a HTML version, render ...
0
votes
2answers
47 views

Script for showing/hiding on click - how can I write this code cleaner?

I have this simple code, but it's messy - how do I do it cleaner? It works like this: If you click on the menu-btn1 the div ...
0
votes
1answer
72 views

BMR calculator web app written in HTML/CSS/Vanilla JS

I'm learning JavaScript at the moment (still very much a beginner) and this is the first app I've designed on my own, without using any tutorials. It's an app which takes the user's gender, age, ...
2
votes
0answers
45 views

Custom HTML parser in Haskell

For the last couple of months, I have started to learn Haskell and since I am following a course on functional programming soon, I thought I would test my current skills. So what I did was create an ...
5
votes
2answers
59 views

Basic in-browser rock paper scissors

I'm currently going through The Odin Project, in an attempt to learn some Javascript. I'm a junior in a CS program, and I realize that I am not very good at programming, but I want to change that. I ...
1
vote
1answer
31 views

HTML CSS 2 columns project

Goal I am aiming to create a page with two columns, left side to be a summary section and the right side just an image. I'd like to hear some reviews to where I can improve my current html and css ...
0
votes
1answer
45 views

Vanilla JS Complex TO DO List application

Hello I've created to do app with some additional functionality. Since I am new in JS I would love some feedback if you guys could point out some obvious mistakes/good practices/better solutions or ...
1
vote
0answers
31 views

Creating Multiple Carousels by storing them in an Array with JavaScript

I created a code where I can add multiple carousels to a page. I did this by storing the carousel in an array and accessing it by clicking on the previous/next arrows. I was trying to prevent any ...
2
votes
0answers
32 views

Travel agent website

I've created a travel agent website, I would like to know how can I improve, DRY my code and how to increase performance - I tinified img's but the bottom one I've made in PS takes much time to load. ...
5
votes
1answer
163 views

Tic-Tac-Toe Game vanilla JS/CSS

I am practically brand new to coding and this is my first "real" project I've been attempting. It's an attempt at a vanilla JS game with selectable layout and win conditions (partially ...
1
vote
2answers
34 views

A Simple Media Generator with Directional Control

My goal was to have a single page display bulk amounts of media without the need to load new pages. I also wanted it to be able to load fast, so the generator uses a JavaScript array to display one ...
0
votes
1answer
116 views

Recieving an XSS Injection: <script>alert('xssvuln');</script>

I would very much appreciate it if someone could review the php script below for any security risks. I have a live website using shared hosting. There's a page that accepts text submissions from users....
0
votes
1answer
43 views

Christmas tree made up only with HTML and CSS

I've created a Christmas tree using only HTML and CSS. It's pretty sure that the code can be written in a more efficient way. Also, the lights are turning on and off at the same time, is there a way ...
2
votes
1answer
80 views

Avoid global variable for callback function called by function with no arguments

My website has multiple pages that use the Google Maps api. Each page uses a different part of the api (e.g. autocomplete, displaying markers etc). However, every page needs to call the initMap() ...
2
votes
1answer
35 views

Javascript + html: Simple Note App

I created a simple note-taking application, which enables a user to create notes, update them, and delete them. I used local storage for saving the notes. Would Appreciate some feedback on how to ...
2
votes
1answer
24 views

Better way to work with clickable regions of window

The Goal Basically, what I'm looking for is the ability to click a region below an image to trigger a click() event which will scroll the window to the following ...
0
votes
0answers
66 views

Best practice for multiple conditional HTML options with similar code blocks

So I'm pretty new to HTML/Angular and frontend tech in general. I'll include my code below, but as you'll see there's a LOT of commonality between the switch cases, what I'd like to try do is have ...
2
votes
1answer
46 views

Validation Form

Created a validation form in vanilla JS. Due to my little experience, I have a bunch of "if" here, I can not transfer the coordinates of Yandex.Maps to another function for validation, and ...
2
votes
3answers
52 views

Task-list app, which allows to add and remove tasks from list

I wrote my first web app. Please let me know what I should improve. I want to write as clean code as possible. App is about adding and removing tasks from list. Backend is written in Django, frontend ...
4
votes
0answers
40 views

Creating a basic table with CSS grid

Trying to improve my HTML and CSS. Creating a Basic Table using CSS grid, to match as closely to this image: Please ignore the color red and green in the rows and Some rows are missing since it was ...
-4
votes
1answer
72 views

A calculator in JavaScript

I made a calculator in JavaScript. Now, I want to rename my functions, variables, and input names. But I don't know how. Here is my codes: ...
0
votes
2answers
27 views

Template file for creating formatted webpages

This is my working template file which I manually edit to create new properly formatted webpages for my personal website. I am interested in what advantages if any could be realized by placing the CSS ...
5
votes
2answers
55 views

Feedback on date and time selector script

I created a JS script for a friend's website to allow the visitors to choose the date and time of their delivery. I'm new in web-development and I will appreciate a feedback from professionals like ...
2
votes
2answers
674 views

A snake game in HTML/CSS/JavaScript

I made a snake game in HTML/CSS/JavaScript. I want to make my code better and shorter. Here is my codes: index.html: ...
2
votes
1answer
47 views

Single price grid component (HTML & CSS Project)

I would appreciate some feedback on this single price grid component project completed using HTML and CSS. I am trying to recreate the content shown by this image: https://res.cloudinary.com/...
1
vote
1answer
138 views

Cleaning up the code of a C++-based Personal Web Page Generator

I have tried to implement the following challenge: Personal Web Page Generator Write a program that asks the user for his or her name, then asks the user to enter a sentence that describes himself or ...
3
votes
2answers
51 views

JavaScript function that reuses a modal for adding, deleting, and viewing an item

I have a table that has buttons per row that makes views/edit an item in a modal and they have a layout like so: ...

1
2 3 4 5
35