Questions tagged as 'html'

5
answers

Appearing text when typing in textarea

Consider the following example: I have a textarea which, when the user types something in it, a small text just below it should be displayed, and at a certain time after the user finishes entering his sentence, / p> I even got something h...
asked by 06.03.2014 / 21:49
2
answers

Adding a dynamically element with jQuery

I have set up the following structure in HTML: <form name="criaModelo" method='post' action=''> <label for="name"> <strong>Nome:</strong> <input name="nomeModelo" type="text"> </label> <h2&...
asked by 29.01.2014 / 04:52
6
answers

Do I use PHP within an HTML or HTML within a PHP?

I made my entire site in HTML and CSS, but now I need to use PHP to send some data to a database. But I have a question, if I modify all my documents to .php or if I use PHP within HTML (if it is possible).     
asked by 28.02.2014 / 01:56
3
answers

Why does CSS work with "fake" HTML elements?

I've seen some examples like this on the internet, showing what html elements with custom names work with regard to the application of css styles. elementofake { color:red; font-size:30px; font-weight:bold; } <elementofake>...
asked by 14.03.2017 / 18:49
3
answers

What is the difference between "margin: 0 auto;" and "margin: auto;"?

As the title already says: What exactly is the difference between margin: 0 auto; and margin: auto; ? margin: 0 auto; margin: auto; Why can you only use 0? What would be the unity of this 0? px %?     
asked by 22.05.2017 / 16:53
3
answers

Is it wrong to use more than one thead, tbody or tfoot in a table?

I have a table that gets a certain formatting when the elements have a tbody . Because of this formatting, I thought about using tbody twice in the same table, but I was wondering if that would be valid. So, I would like to ask t...
asked by 06.01.2017 / 12:22
3
answers

What are the allowed elements within the P tag?

I've been through a few issues, and I could still see in this answer that the <p> tag does not accept any element as a child. It seems that there are exceptions to some tags, that is, they can be added within a <p>...
asked by 10.07.2018 / 18:16
3
answers

How to create a box with two-sided lines only with CSS

I'm looking for a help from where to start in order to be able to create a structure totally in css like in the image below. I know this may sound very simple, but I can not get you started.     
asked by 16.04.2015 / 04:03
3
answers

Is it a bad practice to put numbers as id in HTML elements? If so, why?

I have a loop printing HTML elements, for example: for($i = 0; $i < 3; $i++){ echo "<div id='$i'>$i</div>"; } Is it a bad practice to put numbers as id in HTML elements? If so, why?     
asked by 08.11.2017 / 12:31
5
answers

How do I mark and unmark a row in a table by clicking on it?

When you click on a line in a table, how to mark it by changing the background color of the line, and if you click again uncheck the background, and if you click on another line, deselect the old one and mark the new one. How to do this using...
asked by 19.02.2014 / 20:52