Tag: r

61 votes
12 answers
2.6K views
What does <meta http-equiv="X-UA-Compatible" content="IE=edge"> do?

What's the difference if one web page starts with <!DOCTYPE html> <html> <head>

avatar
Don
0 1 0 9
asked 07 September, 2021
65 votes
9 answers
1.7K views
What does enctype=&apos;multipart/form-data&apos; mean?

What does enctype='multipart/form-data' mean in an HTML form and when should we use it?

avatar
Stacia
0 1 0 9
asked 07 September, 2021
57 votes
25 answers
2.4K views
Redirect from an HTML page

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

avatar
Rufus
0 1 0 9
asked 07 September, 2021
53 votes
30 answers
617 views
How do I make a placeholder for a &apos;select&apos; box?

I'm using placeholders for text inputs which is working out just fine. But I'd like to use a placeho

avatar
Thurman
0 1 0 9
asked 07 September, 2021
56 votes
30 answers
2.3K views
How do I auto-resize an image to fit a &apos;div&apos; container?

How do you auto-resize a large image so that it will fit into a smaller width div container whilst maintaining

avatar
Tuan
0 1 0 9
asked 07 September, 2021
56 votes
30 answers
1.6K views
How to align checkboxes and their labels consistently cross-browsers

This is one of the minor CSS problems that plague me constantly. How do folks around Stack Overflow vertically

avatar
Renaldo
0 1 0 9
asked 07 September, 2021
60 votes
30 answers
684 views
51 votes
29 answers
2.2K views
Retrieve the position (X,Y) of an HTML element relative to the browser window

I want to know how to get the X and Y position of HTML elements such as img and div in JavaScript relative to

avatar
Carmelina
0 1 0 9
asked 07 September, 2021
55 votes
24 answers
2.6K views
Vertically align text next to an image?

Why won't vertical-align: middle work? And yet, vertical-align: top does work. span{ vertical-alig

avatar
Kurtis
0 1 0 9
asked 07 September, 2021
53 votes
30 answers
690 views
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 redirects to a

avatar
Mikki
0 1 0 9
asked 07 September, 2021
55 votes
20 answers
1.5K views
How do I modify the URL without reloading the page?

Is there a way I can modify the URL of the current page without reloading the page? I would like to access th

avatar
Sydney
0 1 0 9
asked 07 September, 2021
56 votes
23 answers
2K views
Storing Objects in HTML5 localStorage

I'd like to store a JavaScript object in HTML5 localStorage, but my object is apparently being converted

avatar
Santiago
0 1 0 9
asked 07 September, 2021
57 votes
30 answers
2.3K views
How do you disable browser autocomplete on web form field / input tags?

How do you disable autocomplete in the major browsers for a specific input (or form field)?

avatar
Mikki
0 1 0 9
asked 07 September, 2021
57 votes
30 answers
2.6K views
Change a HTML5 input&apos;s placeholder color with CSS

Chrome supports the placeholder attribute on input[type=text] elements (others probably do too). But the follo

avatar
Lashawna
0 1 0 9
asked 07 September, 2021
65 votes
30 answers
1.9K views
How to horizontally center an element

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

avatar
Sachiko
0 1 0 9
asked 07 September, 2021
56 votes
10 answers
840 views
Why does HTML think “chucknorris” is a color?

Why do certain random strings produce colors when entered as background colors in HTML? For example: <b

avatar
Majorie
0 1 0 9
asked 07 September, 2021
60 votes
30 answers
519 views
How can I convert a stack trace to a string?

What is the easiest way to convert the result of Throwable.getStackTrace() to a string that depicts the stackt

avatar
Lashawna
0 1 0 9
asked 07 September, 2021
60 votes
30 answers
685 views
How do I create a Java string from the contents of a file?

I've been using the idiom below for some time now. And it seems to be the most wide-spread, at least on t

avatar
Vi
0 1 0 9
asked 07 September, 2021
55 votes
30 answers
1.8K views
How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor version

I am trying to use Notepad++ as my all-in-one tool edit, run, compile, etc. I have JRE installed, and I have

avatar
Trudy
0 1 0 9
asked 07 September, 2021
56 votes
30 answers
2K views
Difference between StringBuilder and StringBuffer

What is the main difference between StringBuffer and StringBuilder? Is there any performance issues when decid

avatar
Santiago
0 1 0 9
asked 07 September, 2021