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.

Can multiple different HTML elements have the same ID if they're different elements?

Can multiple HTML elements have the same ID if they're of different element types? Is a scenario like this valid? …

html dom
HTML <input type='file'> File Selection Event

Let's say we have this code: <form action='' method='POST' enctype='multipart/form-data'> <input type='file' …

javascript html javascript-events
Change :hover CSS properties with JavaScript

How can JavaScript change CSS :hover properties? For example: HTML <table> <tr> <td>Hover 1&…

javascript html css dhtml
Counting the number of option tags in a select tag in jQuery

How do I count the number of <option>s in a <select> DOM element using jQuery? &…

javascript jquery html
HTML5 <video> element on Android

According to: http://developer.android.com/sdk/android-2.0-highlights.html Android 2.0 should support the HTML5 video element. I haven't been …

android video mobile html
Scroll back to the top of scrollable div

<div id="containerDiv"></div> #containerDiv { position: absolute; top: 0px; width: 400px; height: 100%; padding: 5px; font-size: .875em; …

javascript html scroll
How to make <input type="file"/> accept only these types?

I want my uploader only allows these types: doc, docx. xls, xlsx. ppt, pptx. txt. pdf. Image types. How can …

html file-upload input
Drawing an SVG file on a HTML5 canvas

Is there a default way of drawing an SVG file onto a HTML5 canvas? Google Chrome supports loading the SVG …

html canvas svg
WebSockets vs. Server-Sent events/EventSource

Both WebSockets and Server-Sent Events are capable of pushing data to browsers. To me they seem to be competing technologies. …

html browser websocket server-sent-events
Can HTML be embedded inside PHP "if" statement?

I would like to embed HTML inside a PHP if statement, if it's even possible, because I'm thinking the HTML …

php html