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.

Regular expression to remove HTML tags from a string

Possible Duplicate: Regular expression to remove HTML tags Is there an expression which will get the value between two HTML …

html regex
In JavaScript can I make a "click" event fire programmatically for a file input element?

I'd like to make a click event fire on an <input type="file"> tag programmatically. Just calling click() …

javascript html
Use images instead of radio buttons

If I have a radio group with buttons: ... how can I show only images in the select option instead of …

html css
Force table column widths to always be fixed regardless of contents

I have an html table with table-layout: fixed and a td with a set width. The column still expands to …

html css
How to set the 'selected option' of a select dropdown list with jquery

I have the following jquery function: $.post('GetSalesRepfromCustomer', { data: selectedObj.value }, function (result) { alert(result[0]); $('select[name^="salesrep"]').val(…

jquery html selected html-select
CSS: stretching background image to 100% width and height of screen?

I have an image called myImage.jpg. This is my CSS: body { background-image:url("../images/myImage.jpg"); background-repeat: no-repeat; background-size: 100% 100%; } …

html css background-image
Get selected option text with JavaScript

I have a dropdown list like this: <select id="box1"> <option value="98">dog</option> &…

javascript html dom drop-down-menu
How can I align text directly beneath an image?

I used to know how to put an image on top and then justify the text below the image so …

html css text justify
Scale image to fit a bounding box

Is there a css-only solution to scale an image into a bounding box (keeping aspect-ratio)? This works if the image …

html css image resize autoresize
Show Youtube video source into HTML5 video tag?

I'm trying to put a YouTube video source into the HTML5 <video> tag, but it doesn't seem to …

html youtube embedded-video