Questions tagged as 'html'

3
answers

Simulate placeholder in IE8

I was reading the documentation here and it seems that the placeholder attribute does not work in IE8. Would you have any way to simulate the placeholder you use? HTML example that does not work in IE8: <input type="text"...
asked by 16.12.2014 / 18:30
3
answers

Adding and removing styles from a particular selection at the click of a button

I have a function in javascript that applies a particular style in some classes, and I would like to know how to do this style by clicking the same button. var botao = document.getElementById("troca"); var cores = document.getElementsByClassNa...
asked by 26.11.2015 / 22:29
1
answer

List states, cities and neighborhoods in register form [closed]

I have a table called "advertisement", where I need to register the information coming from other 03 tables, they are: State Tables, Cities and Neighborhoods. The purpose is for the user to register the properties via the form, adding info...
asked by 19.11.2015 / 02:13
2
answers

How to hide a visible submenu when clicking another menu in JS?

I have the script below to use in a menu. It changes the visibility of a specific element by its ID. Clicking on a main menu opens a submenu. Is there any way to change the script so that when clicking on another menu the previous submenu clo...
asked by 23.01.2014 / 21:45
3
answers

What is the difference between the tag and the s?

I saw the tags <del> and <s> , say that one is to be used in non-relevant texts and another to "delete" part of the text, but when using both tags the effect is the same ( a line scratching the phrase). What's the differ...
asked by 07.12.2018 / 17:40
2
answers

What is the difference between the css @import and the html link?

I created a file containing css patterns that are used on my system. I would like to know what is the difference between calling css by link or @import like this: /* ou dentro do codEventos.css */ @import "../padr...
asked by 03.07.2015 / 16:20
6
answers

How to create space before or at the end of the text contained between html tags?

I need to put a space before a text that is between tags html , what is the correct way to do it? No css ... div{float:left;} <div>Texto 1</div><div> texto que quero um espaço antes</div>     
asked by 17.01.2017 / 19:48
1
answer

Open WhatsApp when you click the icon

Someone knows how to do that by clicking on the WhatsApp icon on a site by smartphone , some function opens the application and already starts a conversation in the number defined in link from the website? Imagine an icon that says "WhatsA...
asked by 27.08.2015 / 02:31
2
answers

In HTML what is an undetermined Checkbox and how to use this status along with CSS?

As far as I know, a% of% of type input could have three states, checked , not checked and disabled . But it looks like it has a fourth state that is undetermined . See in the image a comparison of the states that Checkbox c...
asked by 11.09.2018 / 18:07
2
answers

How can I simulate a placeholder using a label?

I'm trying to make label simulate a fixed placeholder. The biggest difficulty is to change the properties of label when input gets focus , and input fill in the rest of the space automatically. I tried to...
asked by 01.01.2014 / 21:45