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).
103
questions
11
votes
4answers
65k views
3
votes
1answer
160 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:
...
12
votes
2answers
755 views
In-browser syntax highlighter
I've made a simple in-browser syntax highlighter using JQuery. It's pretty simple, it just wraps keywords, integers, and such in <span> elements with color ...
6
votes
1answer
374 views
JavaScript module to render and handle a form to add users
I recently switched to modular JavaScript and really like the idea of having the state of your application in JavaScript and not in the DOM. I want to know if what I am doing is considered best ...
22
votes
4answers
782 views
HTML tag encoder
library.php
My own HTML tag encoder that will print HTML codes according to the input.
...
15
votes
2answers
2k views
5
votes
1answer
283 views
Review of HTML markup for this blog concept
I am creating a blog concept with this layout on CodePen
Here is my current code in development
...
1
vote
1answer
359 views
Adding, deleting elements as per autocomplete results
I am working on a bookmarker project for replacing storage of bookmarks in a web browser. It will be storing bookmarks as per categories in a database. I have written some jQuery for the WIP search ...
10
votes
2answers
198 views
Html rendering framework with dynamics
I came to the conclusion that the previous framework was too complicated and not easily extendable so I tried it again but this time with dynamics.
It's much much shorter and I think it's much easier ...
7
votes
2answers
281 views
Cardshifter website meta-tags for SEO
I have written the following meta-tags for SEO, please let me know if you think this could use any improvement. I have used this article to help me put it together. I have left out the page content on ...
7
votes
1answer
150 views
HTML-rendering framework for emails
Sometimes I need to auto-generate html-emails. To make this task a little bit easier I created a simple framework that takes care of rendering HTML. Because I'm mainly interested in generating HTML ...
5
votes
2answers
737 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 ...
5
votes
4answers
373 views
Calculate Final Grade: follow-up
I'm creating an online calculator to get the average grade of different tests my students take and also the final grade. I wonder if you see any problems in this update or any way to improve it:
<...
0
votes
2answers
263 views
Write an anonymous function validating email address
Problem statement
Write an anonymous function which take email address as parameter and returns true/false after validating the input parameter.
Objective
This assignment will help you ...
17
votes
5answers
135k views
Sorting an HTML table with JavaScript
The following code sorts an HTML table with JavaScript (without using any external libraries like jQuery). Are there any shortcomings or possible improvements I could make?
...
19
votes
2answers
45k views
Tic Tac Toe in plain JavaScript
I have created Tic Tac Toe game using plain JavaScript. Can any javascript expert review it and let me know whether the way I have written JavaScript code that is right (preferable)?
I am unsure that ...
40
votes
8answers
17k views
Rendering a person's time clock record in HTML, with many color-coded conditions
I have coded this mess of JavaScript and a bit of jQuery. Everything here works perfect as intended, however it is a real mess. What would be the best way to clean this up with best practices and ...
27
votes
3answers
2k views
View for Ultimate Tic-Tac-Toe board
I've put together a board for Ultimate Tic-Tac-Toe (What's that?). This is part of the current code-challenge: Code a Ultimate Tic-Tac-Toe
Resources:
Live demo of my view – For you to see what ...
6
votes
2answers
466 views
Cake-ordering form and calculator
Iām a designer learning to code and Iāve built a simple form calculator for ordering cakes.
I would love it if you could show me how to make the code more idiomatic. How can it be more consistent, ...
4
votes
2answers
764 views
iPhone notes application replica using HTML/CSS
I've written a web application that is a replica of the iPhone's notes app. It turned out quite well, you can do everything you can on the iPhone's app except for sharing and sending it via texts etc. ...
10
votes
2answers
1k views
Strict and clean HTML and CSS for teaching website
We are in the process of creating a book with the purpose of teaching people the art of html and CSS to create a website from scratch. In our book the focal point, so to say, is that the reader is ...
15
votes
3answers
532 views
Website template for Cardshifter game
I'm putting together a template for easy formatting of content pages, to be used in putting together a website for an online trading card game.
I've been using the Bootstrap library (and finding it ...
7
votes
2answers
2k views
Web page code based off of a responsive Initializer template
Please review my code based off of a responsive Initializr template. It's functional and visually correct, but I know there's better ways to write the code. Let me know if I can layout the HTML5 ...
7
votes
2answers
142 views
PHP Mandelbrot Set Generator
I need to get familiar with web programming, so I decided to write up a fairly simple PHP page that accepts GET requests and serves back an image of the Mandelbrot set... as a table of colored cells.
...
6
votes
1answer
2k views
Plugin that conditionally displays elements based on form values
I've just released a jQuery plugin that conditionally displays elements based on form values. I would appreciate any suggestions on how to improve both the code and its usefulness.
Here's the demo ...
5
votes
3answers
17k views
String replace templating utility
I am new to Python and I am writing my first utility as a way to learn about strings, files, etc. I am writing a simple utility using string replacement to batch output HTML files. The program takes ...
4
votes
2answers
115 views
AJAX communication with pure JS and PHP
I'm looking for a good approach to AJAX communication using only pure JS and PHP. I would like it to be as safe as possible and compatible with most modern browsers and IE 10+. I did some research and ...
4
votes
0answers
1k views
Using Excel Cell StyleElements to Style HTML Document
CellStyleCSS class creates css based of Excel Workbook CellStyles. This class is used in conjunction with TagBuilder class, ...
1
vote
1answer
11k 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 ...
14
votes
3answers
265 views
Mission impossible: beat everyone else to the queue
Your mission, should you chose to accept it, is to beat everyone else to the review tab so you get a chance to help out.
This is a problem I've been running into lately. I go over to review tab, find ...
12
votes
2answers
311 views
Prorated refund calculator
I wrote this little piece of script for my workplace (insurance, etc.) to help our admins, as a light and simple file I can just email to my colleagues.
The purpose of it is to calculate a prorated ...
11
votes
3answers
219 views
OOCSS: Is this broken down too much?
Philosophical question: How far should I break down my objects?
Inuit.css and Bootstrap have islands, islets, wells, grayboxes, and other objects that have repeating properties. I don't think it was ...
8
votes
2answers
278 views
Follow-up: Javascript Syntax-Highlighter for Java
Background
The basics of this project have already been discussed here.
I've improved the following things:
Sį“į“ Onį“į“į“ mentioned that I shouldn't use multiple elements with the same id. I corrected ...
8
votes
2answers
2k views
8
votes
1answer
278 views
Markdown to HTML, again
I made another markdown parser. (original, this one on github). Look, I'm not crazy (sorta), I just like making markdown parsersā¦
...
6
votes
1answer
194 views
Online store for pies - Part 1: Create your account to buy delicious pies
I've got a goal and that goal is to become an Angular expert. So what better way of learning than to create an online store for pies, right? I've just finished the registration part and would like ...
5
votes
3answers
408 views
5
votes
2answers
244 views
Volunteer Signup Report
I was creating a Volunteer Signup Report report in Microsoft Excel yesterday for my job and I had a moment of inspiration. What if I turned it into a website and made it dynamic? The volunteers sign ...
5
votes
1answer
2k views
JS Progress Bar Widget
Demo of the widget: http://jsfiddle.net/slicedtoad/Lywvbsf4/
It's a progress bar that shows a list of steps and which one is being completed as well as allowing previous steps to be revisited.
It ...
4
votes
2answers
7k views
Simplifying an AngularJs directive that counts the number of characters entered in a textarea
I am trying to implement an AngularJS directive that would count the number of characters entered into a textarea and display it to the user.
Note: it will actually become much more complex later on ...
4
votes
3answers
1k views
Toggling only a single class as active in a list with vanilla JS or CSS
Every time I toggle active class in a list (to dynamically change DOM content) I find that I always go to this approach to check and clear which class is active. I'...
4
votes
2answers
9k views
Scraping HTML using Beautiful Soup
I have written a script using Beautiful Soup to scrape some HTML and do some stuff and produce HTML back. However, I am not convinced with my code and I am looking for some improvements.
Structure of ...
4
votes
1answer
276 views
CSS3 Dropdown Menu (touch device or mouse compatible)
This may be rather basic, but I wanted to experiment and learn with some of the upcoming CSS3 techniques. I wasn't able to come up with an HTML/CSS only solution, and I had to work longer than I'd ...
3
votes
1answer
303 views
Tic tac toe game in a web browser
I have this tic tac toe game which is very old project of mine, though I made some changes on this to improve the script to perform better.
This game is functional, Any logic improvements or other ...
3
votes
3answers
139 views
3
votes
2answers
2k views
Simplifying Counter of Checked Checkboxes
Is the following code a proper solution to my problem? I have a feeling it can be simplified quite a bit.
If one of the first four checkboxes is checked the sum is 1; if two 1.5; if three 2; if ...
3
votes
2answers
244 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
1answer
108 views
How secure is my login and signup code
I am creating a social network and I've been told a few times a lot of things are outdated and prone to SQL injections so I am going over everything with a very fine comb and checking what's good and ...
2
votes
2answers
124 views
jQuery Tab Scroller
I've never had anyone review my code. I actually found full-time work as a web developer and in the interest of ensuring that I'm always improving, I'd like to see if I'm doing things the proper way. ...
2
votes
2answers
714 views
Infinite scroll for currency list
I made infinite scroll for a currency (in the code below: valute) list. The currency list is fetched via an AJAX-request from a remote server. After it starts the script displays 10 records. After the ...