254 Answered Questions for the topic HTML

Html

05/19/19

Limit file format when using <input type="file">?

I'd like to restrict the type of file that can be chosen from the native OS file chooser when the user clicks the Browse button in the `<input type="file">` element in HTML. I have a feeling... more
Html

05/19/19

How to trigger a phone call when clicking a link in a web page on mobile phone?

I need to build a web page for mobile devices. There's only one thing I still haven't figured out: how can I trigger a phone call through the click of text?Is there a special URL I could enter like... more
Html

05/19/19

Adding a favicon to a static HTML page?

I have a few `static pages` that are just pure HTML, that we display when the server goes down. How can I put a favicon that I made (it's 16x16px and it's sitting in the same directory as the HTML... more
Html

05/19/19

Stretch and scale CSS background?

Is there a way to get a background in CSS to stretch or scale to fill its container?
Html

05/18/19

How to disable a link using only CSS?

Is there any way to disable a link using CSS?I have a class called `current-page` and want links with this class to be disabled so that no action occurs when they are clicked.
Html

05/17/19

Pass mouse events through absolutely-positioned element?

I'm attempting to capture mouse events on an element with another absolutely-positioned element on top of it.Right now, events on the absolutely-positioned element hit it and bubble up to its... more
Html

05/17/19

Disabling Chrome Autofill?

I have been running into issues with the chrome autofill behavior on several forms. The fields in the form all have very common and accurate names, such as "email", "name", or "password", and they... more
Html

05/16/19

How to line-break from css, without using <br />?

**output:**hello How are you **code:** hello How are you How to achieve same output without ``?
Html

05/15/19

Best way to include CSS? Why use @import?

Basically I am wondering what is the advantage / purpose of using `@import` to import stylesheets into an existing stylesheet versus just adding another ... <link rel="stylesheet"... more
Html

05/15/19

Chrome ignores autocomplete="off"?

I've created a web application which uses a tagbox drop down. This works great in all browsers except Chrome browser (Version 21.0.1180.89).Despite both the `input` fields AND the `form` field... more
Html

05/14/19

How to display HTML in TextView?

I have simple **HTML**: <h2>Title</h2> description hereI want to display HTML styled text it in `TextView`. How to do this?
Html

05/14/19

How to trigger a file download when clicking an HTML button or JavaScript?

This is crazy but I don't know how to do this, and because of how common the words are, it's hard to find what I need on search engines. I'm thinking this should be an easy one to answer.I want a... more
Html

05/14/19

Changing website favicon dynamically?

I have a web application that's branded according to the user that's currently logged in. I'd like to change the favicon of the page to be the logo of the private label, but I'm unable to find any... more
Html

05/12/19

How can I "disable" zoom on a mobile web page?

I am creating a mobile web page that is basically a big form with several text inputs.However (at least on my Android cellphone), every time I click on some input the whole page zooms there,... more
Html

05/11/19

Two submit buttons in one form?

I have two *submit* buttons in a form. How do I determine which one was hit serverside?
Html

05/11/19

What's the effect of adding 'return false' to a click event listener?

Many times I've seen links like these in HTML pages: <a href='#' onclick='someFunc(3.1415926); return false;'>Click here !</a>What's the effect of the `return false` in there?Also, I... more
Html

05/11/19

How to change an element's class with JavaScript?

How can I change a class of an HTML element in response to an `onClick` event using JavaScript?
Html

05/11/19

CSS center text (horizontally and vertically) inside a div block?

I have a `div` set to `display:block`. (`90px` `height` and `width`) and I have some text inside.I need the text to be aligned in the center both vertically and horizontally.I have tried... more
Html

05/10/19

Using jQuery to center a DIV on the screen?

How do I go about setting a `<div>` in the center of the screen using jQuery?
Html

05/10/19

What do &lt; and &gt; stand for?

I know that the entities `&lt;` and `&gt;` are used for `<` and `>`, but I am curious what these names stand for.Does `&lt;` stand for something like "*Left tag*" or is it just a... more
Html

05/10/19

Difference between id and name attributes in HTML?

What is the difference between the `id` and `name` attributes? They both seem to serve the same purpose of providing an identifier.I would like to know (specifically with regards to HTML forms)... more
Html

05/10/19

How to allow only numeric (0-9) in HTML inputbox using jQuery?

I am creating a web page where I have an input text field in which I want to allow only numeric characters like (0,1,2,3,4,5...9) 0-9.How can I do this using jQuery?
Html

05/10/19

Selecting all text in HTML text input when clicked?

I have the following code to display a textbox in a HTML webpage. <input type="text" id="userid" name="userid" value="Please enter the user ID" />When the page displays, the text contains... more
Html

05/10/19

HTML button to NOT submit form?

I have a form. Outside that form, I have a button. A simple button, like this: <button>My Button</button>Nevertheless, when I click it, it submits the form. Here's the code: ... more
Html

05/08/19

How do you get the footer to stay at the bottom of a Web page?

I have a simple 2-column layout with a footer that clears both the right and left div in my markup. My problem is that I can't get the footer to stay at the bottom of the page in all browsers. It... more

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.