Top "Html" questions

HTML (HyperText Markup Language) is the markup language for creating web pages and other information to be displayed in a web browser.

Maintain the aspect ratio of a div with CSS

I want to create a div that can change its width/height as the window's width changes. Are there any …

html css responsive-design aspect-ratio
Allow 2 decimal places in <input type="number">

I have a <input type="number"> and I want to restrict the input of the users to purely …

html numbers
How do I replace text inside a div element?

I need to set the text within a DIV element dynamically. What is the best, browser safe approach? I have …

javascript html dom
horizontal line and right way to code it in html, css

I need to draw a horizontal line after some block, and I have three ways to do it: 1) Define a …

html css
Export html table data to Excel using JavaScript / JQuery is not working properly in chrome browser

I have a HTML table in velocity template. I want to export the html table data to excel using either …

javascript jquery html excel google-chrome
How to use Checkbox inside Select Option

The client has given me a design which has a Select Option menu containing a checkbox together with the item …

javascript html css html-select
How to disable/enable select field using jQuery?

I would like to create an option in a form like [] I would like to order a [selectbox with pizza] …

jquery html forms
Tick symbol in HTML/XHTML

We need to display a tick symbol (✓ or ✔) within an internal web app and would ideally like to avoid using …

html xhtml
Line break in HTML with '\n'

Is there a way to make HTML properly treat \n line breaks? Or I have to replace them with <…

html
How do you disable viewport zooming on Mobile Safari?

I've tried all three of these to no avail: <meta name=”viewport” content=”width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;” /> &…

html ios mobile-safari zoom viewport