254 Answered Questions for the topic HTML
Html
04/10/19
mailto link with HTML body?
I have a couple of `mailto` links in a HTML document. Can I insert HTML formatted body in the `mailto:` part of the `href`? Mail meNote that (2016) in iOS, it is perfectly fine to add `` and...
more
Html
04/10/19
Convert HTML to PDF in .NET?
I want to generate a PDF by passing HTML contents to a function. I have made use of iTextSharp for this but it does not perform well when it encounters tables and the layout just gets messy.Is...
more
Html
04/09/19
Prevent users from submitting a form by hitting Enter?
I have a survey on a website, and there seems to be some issues with the users hitting enter (I don't know why) and accidentally submitting the survey (form) without clicking the submit button. Is...
more
Html
04/09/19
How to prevent line breaks in list items using CSS?
I'm trying to put a link called *Submit resume* in a menu using a `li` tag. Because of the whitespace between the two words it wraps to two lines. How to prevent this wrapping with CSS?
Html
04/09/19
HTML input - name vs. id?
When using the HTML `` tag, what is the difference between the use of the `name` and `id` attributes especially that I found that they are sometimes named the same?
Html
04/08/19
How to add default value for html <textarea>?
I want to set a default value for my html `<textarea>`. I read from a material that to add default value you have to do something like `<textarea>This is default text</textarea>`....
more
Html
04/08/19
Hide html horizontal but not vertical scrollbar?
I have an html textarea that is of fixed width, but variable height. I would like to set overflow:scroll and be able to show a vertical scrollbar, but not a horizontal one. I am not able to use...
more
Html
04/08/19
Center image using text-align center?
Is the property `text-align: center;` a good way to center an image using CSS? img { text-align: center; }
Html
04/08/19
Auto-size dynamic text to fill fixed size container?
I need to display user entered text into a fixed size div. What i want is for the font size to be automatically adjusted so that the text fills the box as much as possible.So - If the div is 400px...
more
Html
04/06/19
What's the difference between disabled="disabled" and readonly="readonly" for HTML form input fields?
I have read a bit on this, but I can't seem to find anything solid about how different browsers treat things.
Html
04/06/19
Select elements by data attribute in CSS?
Is it possible to select elements in CSS by their HTML5 data attributes (for example, `data-role`)?
Html
04/06/19
Should I use px or rem value units in my CSS?
I am designing a new website and I want it to be compatible with as much browsers and browser settings as possible. I am trying to decide what unit of measurement I should use for the sizes of my...
more
Html
04/06/19
Retrieve the position (X,Y) of an HTML element?
I want to know how to get the X and Y position of HTML elements such as `img` and `div` in JavaScript.
Html
04/05/19
Tab space instead of multiple non-breaking spaces ("nbsp")?
Is it possible to insert a tab character in HTML instead of having to type ` ` four times?
Html
04/05/19
Can I set subject/content of email using mailto:?
Is it possible to set the subject/content of email when I use mailto:?
Html
04/04/19
How to disable the resize grabber of an HTML <textarea>?
How to disable the grabber in the textarea?I mean that triangle thing which appears in the right-bottom corner of the textarea.
Html
04/04/19
Outline radius?
Is there anyway of getting **rounded corners** on the **outline** of a `div element`, similar to `border-radius`?
Html
04/04/19
Space between two rows in a table?
Is this possible via CSS? I'm trying tr.classname { border-spacing: 5em; }to no avail. Maybe I'm doing something wrong?
Html
04/04/19
Redirect from an HTML page?
Is it possible to set up a basic HTML page to redirect to another page on load?
Html
04/04/19
CSS background image to fit width, height should auto-scale in proportion?
I have body { background: url(images/background.svg); }The desired effect is that this background image will have width equal to that of the page, height changing to maintain the...
more
04/03/19
why is my main menu not showing up on my blogger website?
I got a blogger theme I Like and was customizing it with my colors, font, etc. Then I realized at some point during customization my main menu disappeared! The HTML for that widget is fine so what...
more
Html
04/03/19
How to horizontally center a <div>?
How can I horizontally center a `` within another `` using CSS? Foo foo
Html
04/03/19
How to align a <div> to the middle (horizontally/width) of the page?
I have a `div` tag with `width` set to **800px**. When the browser width is greater than **800px**, it shouldn't stretch the `div` but it should bring it to the middle of the page.
Html
04/02/19
POST unchecked HTML checkboxes?
I've got a load of checkboxes that are checked by default. My users will probably uncheck a few (if any) of the checkboxes and leave the rest checked. Is there any way to make the form POST the...
more
Html
04/02/19
How do you disable browser Autocomplete on web form field / input tag?
How do you disable `autocomplete` in the major browsers for a specific `input` (or `form field`)?
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.