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.

How to create an HTML button that acts like a link?

I would like to create an HTML button that acts like a link. So, when you click the button, it …

html
How do I check whether a checkbox is checked in jQuery?

I need to check the checked property of a checkbox and perform an action based on the checked property using …

javascript jquery html checkbox
How to horizontally center a <div>

How can I horizontally center a <div> within another <div> using CSS? <div id="outer"&…

html css alignment centering
How do I vertically center text with CSS?

I have a <div> element which contains text and I want to align the contents of this <…

html css vertical-alignment
Redirect from an HTML page

Is it possible to set up a basic HTML page to redirect to another page on load?

html redirect xhtml meta html-head
Tab space instead of multiple non-breaking spaces ("nbsp")?

Is it possible to insert a tab character in HTML instead of having to type &nbsp; four times?

html
RegEx match open tags except XHTML self-contained tags

I need to match all of these opening tags: <p> <a href="foo"> But not these: &…

html regex xhtml
How can I set the default value for an HTML <select> element?

I thought that adding a "value" attribute set on the <select> element below would cause the <option&…

html html-select
How can I change an element's class with JavaScript?

How can I change the class of an HTML element in response to an onclick or any other events using …

javascript html dom
How to align a <div> to the middle (horizontally/width) of the page

I have a div tag with width set to 800 pixels. When the browser width is greater than 800 pixels, it shouldn't …

css html alignment center