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.

Clearing <input type='file' /> using jQuery

Is it possible to clear an <input type='file' /> control value with jQuery? I've tried the following: $('#…

javascript jquery html file-io forms
How to stop event propagation with inline onclick attribute?

Consider the following: <div onclick="alert('you clicked the header')" class="header"> <span onclick="alert('you clicked …

javascript html events dom
How to get the body's content of an iframe in Javascript?

<iframe id="id_description_iframe" class="rte-zone" height="200" frameborder="0" title="description"> <html> <head></…

javascript html iframe
Creating a textarea with auto-resize

There was another thread about this, which I've tried. But there is one problem: the textarea doesn't shrink if you …

javascript html resize height textarea
Form inline inside a form horizontal in twitter bootstrap?

What's the best way to design a form that looks like this (please see link below) in twitter bootstrap without …

html forms twitter-bootstrap
Input size vs width

<input name="txtId" type="text" size="20" /> or <input name="txtId" type="text" style="width: 150px;" /> Which …

html css
How to resize an image to fit in the browser window?

This seems trivial but after all the research and coding I can't get it to work. Conditions are: The browser …

html css
How do I set a background-color for the width of text, not the width of the entire element, using CSS?

What I want is for the green background to be just behind the text, not to be 100% of the page …

html css
How to view an HTML file in the browser with Visual Studio Code

How can I view my HTML code in a browser with the new Microsoft Visual Studio Code? With Notepad++ you …

html visual-studio-code preview
Logo image and H1 heading on the same line

I want to create my first web page but I encountered a problem. I have the following code: <img …

html css position inline