Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [html5]

HTML5 (Hyper Text Markup Language, version 5) is an umbrella term for recent web technologies. It is also the latest iteration of HTML, and became a W3C Recommendation in October 2014, introducing new elements and APIs.

-2
votes
1answer
43 views

Updating text with JavaScript and Firebase [closed]

My problem is this causes more lag as time goes on. I use this commonly to chat with my friends, and I need it the site to update in real-time whenever a message gets edited/deleted/added. Any ...
-1
votes
0answers
39 views

Landing page for a personal website

I've created a landing page for my website and it looks good so far; however, when resizing my browser I noticed that things move around in a way they shouldn't. From my understanding I can have a ...
2
votes
0answers
46 views

Simple jumping game: continue with jquery or switch to html5 canvas?

I'm coding for fun with the secret ambition of making a fun little game for mobile. So I started out building this little jumping game with Javascript and jQuery. The game relies heavy on css ...
5
votes
1answer
82 views

Simple way to show popup

After small research I found following informations: In this closed question I found some solution which not works good when pop-up has height bigger than screen (and some jquery solution). Here is ...
0
votes
2answers
47 views

Interactive multiple choice code [closed]

This isn't so much, HOW do I make it work, as this code works, rather how could I make it better. The way this code works is it guides a person to the correct answer by getting "Yes", "No" or "I don't ...
2
votes
1answer
31 views

Chart of answered CR posts percentages over time - Part 2

I created a graph to show the change in the percentage of questions answered over time and the first version fetched data from chat transcripts using PHP. The sub-domain I have registered for my ...
1
vote
2answers
40 views

A function that generates arrays of video thumbnails using canvas

I have just finished my first version of a function that returns an array of video screenshots created with canvas. What I am looking for are ways to improve this speed by as much as possible. I want ...
2
votes
0answers
109 views

FCC: Product Landing Page - HTML & CSS only

I have created a product landing page for a freeCodeCamp responsive web design project which requires me to create a "Product Landing Page". Requirements to keep in mind: ...
1
vote
1answer
81 views

Dispatching Vuex getter via setInterval

I am fetching the friend list for a chat application using a Vuex store. I need to dispatch the getter via an interval. Is there a best practices way to do this? ...
1
vote
1answer
41 views

Web page's semantic elements

I request a review of the following web page, especially on the use of semantic elements: https://jsfiddle.net/SSteven/qt9d2sfw/ The HTML5 code is: ...
4
votes
1answer
97 views

Audio frequency trainer / tester using Web Audio API

I'm making an audio frequency trainer as a learning exercise. It could be useful for audio technicians who need to recognize audio frequencies (eg. when ringing out feedback during a live concert or ...
5
votes
2answers
132 views

Random tone generator using Web Audio API

This is a random frequency audio generator made with the Web Audio API by Mozilla. The end-goal is an audio frequency trainer: the website plays an audio frequency and the user tries to guess which ...
3
votes
1answer
384 views

jQuery image carousel

I have made this custom image carousel, using HTML5, jQuery and CSS. My aim was to make it really lightweight but with (just) enough features: "bullets", auto-advance, responsiveness. ...
1
vote
2answers
40 views

Output string length and classical Fibonacci sequence in a web page

I wrote a JavaScript and XHTML webpage. I think the format of the output is not better or the validation process is not as it is supposed to be. How can I improve the code? How can I make it more ...
2
votes
1answer
58 views

Password reveal functionality

I have made a password reveal feature, however the code is duplicated. Essentially all I want to be able to improve the code, however I'm not exactly sure how I could do this, all I know is it would ...
4
votes
2answers
61 views

Dynamic country, state select options

Here is code to dynamically choose between three country options (United States, Canada, Other). After the user selects a country it will show the related select option or an empty input (when "Other" ...
4
votes
1answer
38 views

Enforcing numeric inputs and sanitizing different formats for IE11 input fields

I'm working on a web form that functions with numeric inputs. I have <input type="number"> input fields and with Chrome and Firefox things work nicely since ...
2
votes
1answer
41 views

Nesting of paragraph with headings and cite with dynamic content in a VueJS app

Background I added a few items to a codepen that displayed a list of beers. One of them was the citation of the brewer who gave tips. Previously the tips were just generated into a ...
6
votes
1answer
75 views

map of SF transit cars

Please provide general and any specific criticism of the following which is intended to provide a map of SF transit cars. The code can be viewed in the working version and also in a group of gists. ...
3
votes
1answer
45 views

Try My Advertising Website

I was wondering about my HTML & CSS. I'll just create a list as to what concerns I have: Does my HTML & CSS follow proper coding standards and conventions? Am I making proper use of semantic ...
-1
votes
1answer
154 views

Simple HTML website with a JavaScript navigation bar (version 3)

This is a followup post to version 1, and version 2. The following code is a website with a nav-bar on it. It uses some simple JavaScript and CSS (with media-queries) to make it work: index.html: <...
3
votes
0answers
98 views

Pure-CSS slide viewer

Not long ago I designed a pure-CSS slide viewer. A demo is available here, while the source code can be retrieved here . I would like to receive opinions, suggestions, and critiques, especially about ...
5
votes
2answers
80 views

Web ToDo application in JavaScript, HTML, CSS

I would like to share with you the code from the application I just finished. It is a web application written in HTML, CSS, JavaScript and jQuery. It uses ...
4
votes
1answer
117 views

A simple Javascript Breakout game

I wrote a simple breakout game in javascript. I was wondering if anyone could give me some advice on improving my code. I wrote somethings a bit oddly so I am more then welcome to criticism (...
0
votes
1answer
227 views

Read Local File

I'm trying to read any file locally and write out the binary as string, it loads and reads small files very fast. How can I modifier it to read large files greater than 1gb without crashing the ...
0
votes
1answer
444 views

Handling keyup events with throttle or debounce in Javascript/jQuery

In my web application, there is a search input field, and when the user empties all of the text inside the input field, there is an API call made for a default-list of results, which are displayed in ...
5
votes
1answer
859 views

HTML5 audio player with CSS-styled interface for pages with multiple MP3 sources

This is one of my first JavaScript projects. It works (at least in Firefox and Chrome), but I would like to know if this code follows common best practices. This script is supposed to look for ...
1
vote
2answers
69 views

Semantics markup for home sliders

Is there a "best" or more suitable markup to home sliders? I have the following markup. Since my sliders are related to articles, I decided to put article as the ...
2
votes
1answer
82 views

Simple HTML Website (followup)

Followup to this I have created a simple HTML5/CSS3/JS website with a navbar and no content. index.html: ...
2
votes
1answer
117 views

Simple HTML website with JavaScript navbar

The following code is a website with a nav-bar on it. It uses some simple JavaScript to make it work: index.html: ...
0
votes
0answers
23 views

Semantics for a footer of an article containing author, publication and a download link

I have an article which represents a news element on the page. The basic markup is very simple: ...
3
votes
1answer
125 views

Homepage layout & styling

I'm an HTML beginner. I've created my very first HTML + CSS single page from template given to me on a course I attend at a university. The code is probably very bad. It would be really nice if ...
0
votes
0answers
19 views

Leaves in the wind animation with requestAnimationFrame

I am creating a leaves-in-the-wind effect in this pen and have been encountering performance issues, i.e. buggy frame rates every now and then on a relatively modern machine. Seeing as performance is ...
4
votes
1answer
245 views

Cricket Scoreboard for Darts

I've been learning front-end web design, and I'm looking to start diving into the back end soon. Before I do that, I want to make sure I have my HTML/CSS/JS skills down pretty solid. Here's a ...
1
vote
1answer
85 views

Simple landing page using Bootstrap

I have written a simple landing page in Twitter Bootstrap. It works fine, I just want to know if my code is written in a "good-practice" way. ...
0
votes
1answer
34 views

Large poster with positioning elements

Ignoring the text inside, what is there to be improved? This is supposed to be a poster for my Food Technology homework, but after getting some review from the informational side, I'd like some ...
4
votes
2answers
448 views

Semantic markup for card blocks

I'm using Bootstrap. I'm doing my best to work with more semantic markup and getting away from divitis. Several of these "card" blocks appear on a page, like this. Original: ...
3
votes
1answer
154 views

Tilt on hover image

I am asking for a review of this code to see if I am following common best practices or if there is a better way to accomplish the goal set for this code. My purpose was to create an image that would ...
3
votes
1answer
144 views

Make HTML/Javascript Geolocation function more linear

I'm checking users locations with HTML Geolocation before unlocking the front door. Geolocation takes a few seconds in addition to the time it takes the user to approve it, so currently I have a ...
0
votes
1answer
186 views

Downloading latest monthly files VBA - HTML. How to future proof targeting the correct files?

Situation: I am trying to download files, for the latest available month, from the webpage NHS Delayed Transfers of Care. I am unable to locate these files, within the HTML, with confidence that my ...
10
votes
2answers
344 views

Implement a Tetris game in JavaScript using HTML5 Canvas

I just wrote a Tetris game and I'd like to ask experienced people for a code review, especially in terms of code efficiency and bad coding habits, and if the code is easy to reason about. Here is the ...
2
votes
1answer
407 views

A simple JavaScript and HTML5 Canvas drawing component

This is my first time writing a Vanilla JS plugin. I have tried to make a simple HTML5 canvas drawing script. I have tried to handle both touch and mouse events on the canvas. Kindly help me point ...
1
vote
2answers
111 views

Using <div> instead of other tag types (<span>, <p>, etc) [closed]

Is it considered bad style to always use <div> instead of using, say, <span>? I know that using specific tags like <...
7
votes
1answer
262 views

Yet another flappy bird clone

This is my first game, and I really want to improve my coding skills. Please review my flappy bird clone implementation and let me know how it could be optimized, and any other coding tips. ...
1
vote
1answer
50 views

Change the title attribute of summary if details is open

I have this JavaScript code that functions as intended, although as a beginner, I do not know of a shorter, more efficient way of writing it. The code is a simple toggle that changes the ...
8
votes
1answer
303 views

Lightweight Angular tooltip component

I made a small Popup component to show different error/success...etc. messages. Template: ...
1
vote
1answer
28 views

Properly mark up multiple person using schema.org microdata

I am creating a radio episode that will have multiple conductors (usually 1 to 3): inside a loop I am associating those conductors to director providing also the <...
1
vote
0answers
42 views

ExpressTemplate, from Cloud9 to Heroku

basic setup Body-Parser, Cors, Express & Nodemon I don't think I'm using the favicon correctly. I was calling it locally, but I don't have local resources on code pen. It seems to always be using ...
3
votes
3answers
102 views

PHP-generated table with colored cells

How can I make my PHP script more easier? It seems quite difficult and long but I don´t know how can I make it shorter. This code is inserted in my HTML5 code on my PHP tutorial webpage, but I need it ...
1
vote
0answers
646 views

Overlay a YouTube video iFrame Over an Image

This is my code and the main thing I wanted to accomplish when creating this was to: overlay an iFrame over an image and also to see if I could embed a YouTube video iFrame with the video ID entered ...