Most voted "html" questions
Use this tag when the question refers to some resource, information or problem related exclusively to the HTML language (Hypertext Markup Language). HTML is the main markup language used to structure web pages and format content. The latest revision of the HTML specification is HTML5.
Learn more…14,259 questions
Sort by count of
-
8
votes1
answer713
viewsHow to put the scrollbar inside the body?
I stylized the scrollbar of my site for Webkit, and I put the background of the track as Transparent, but I would like Thumb to overlap with the body content, simulating a position effect Absolute,…
-
8
votes1
answer407
viewsReplace anchor by form button with calculation by javascript
I have the following code: function calc(){ var form = document.getElementById("form"); var a = +form.a.value; var b = +form.b.value; var result = (a+b); form.result.value = result; } <form…
-
8
votes1
answer303
viewsWhat is an adjacent brother? In what does he differ from a brother knot?
One concept that confuses me when talking about HTML is that of adjacency, and of us brothers. What is the difference of brothers and adjacent brothers ?…
-
8
votes1
answer1840
viewsHow to implement editable table by updating the fields in the database automatically
I have the following table that lets edit directly in cells: The codes are in 4 parts: Mysql table CREATE TABLE IF NOT EXISTS `php_interview_questions` ( `id` int(8) NOT NULL, `question` text NOT…
-
8
votes2
answers159
viewsWhat is the "dirname" attribute in HTML for?
I saw on the Internet a code similar to this: <form action="/the-action"> First name: <input type="text" name="fname" dirname="fname.dir"> <input type="submit" value="Submit">…
htmlasked 6 years, 6 months ago Wallace Maxters 102,340 -
8
votes1
answer1709
viewsDiv height 100% in div height auto?
I will try to be very explanatory. I have the structure of a common site as you can see in the html below. And I want the height of the sidebar to increase as the height of the container next to it.…
-
8
votes1
answer720
viewsHow to customize emojis (Unicode) of a page?
On Windows operating system while using emojis the source used by browsers usually is the Segoe UI Emoji Note: in Firefox it has its own "emoji system", I believe it uses the Twemoji Mozilla: -…
-
8
votes2
answers4064
viewsChange title style within a tag
You can change the style only with CSS from the attribute title that some HTML tags have? <a href="#" title="Alterar esse estilo aqui">Passe o mouse</a> Note that by default it has only…
-
8
votes4
answers3636
viewsInput date to disable the next 7 days from the current date
In a date input, how can I disable the next 7 days from the current day in the calendar? I know with JS I can do a function to disable the days before the current one with the min parameter, but how…
-
8
votes2
answers218
viewsSEO+ techniques currently used!
I have been doing some research in some courses on SEO, because I believe it is a very promising subject in the field of the Internet but many things are still a mystery to me and maybe you can help…
-
8
votes3
answers1569
viewsForm completion with return of a json
I am using a webservice (viaCep) for automatic filling of the backyard, for when the user type a zip code. The webservice returns me a json with the information from the patio, and from that return…
-
8
votes2
answers1082
viewsCollision system for game in Html5!
I’m learning a little about games in Html5,css and js. I made a very basic game, player drive, enemy and a collision system, see: var canvas;//o elemento canvas sobre o qual desenharemos var ctx;//o…
-
8
votes4
answers418
viewsIs there a difference in using HTML5 attributes with or without true/false?
There is a possibility of some kind of problem in the code when I do not assign a boolean value to the attributes disabled, readonly or required? I’m working with Java in the back end and the IDE…
-
8
votes4
answers1814
views -
8
votes2
answers1618
viewsHow to go through string and replace ** with <b></b>
Lately I have used some systems that have the following function, when writing a text between ** it turns this text into bold for example: Julio *Enrique* dos Santos expected result will be: Julio…
-
8
votes2
answers144
viewsPrint the result of a for JS inside a <p>
I’m doing a college paper that consists of making a tabuada generator. It’s working perfectly when I use it console.log to show the result, but when I use .innerHTML = resultado to display in a tag…
-
8
votes1
answer5919
viewsOptimal maximum resolution for displaying content in mobile mode
Taking as an example the Bootstrap 4 grid system whose classes treat the content with breakpoints specific according to the screen width resolution of the device (considering the viewport as…
-
8
votes1
answer691
viewsInput Date type with year containing 6 digits
Look at the snippet just below, that the input of the kind date when typed in the value year, it is possible to insert 4, 5 or 6 digits to be exact: <input type="date"> My doubts are exactly:…
-
8
votes1
answer642
viewsHow do I hold an action key until I release the key
In video game games the action displayed when pressing a key is smooth, continuous and immediate. However when implementing a routine that animates a character according to the key pressed using the…
-
7
votes2
answers245
viewsInfinite loop when walking recursively through DOM nodes
I have a div with contenteditable=true in my document and I intend to do Highlight in certain parts of the text while the user type (add spans). For this I first need to extract the text typed by…
-
7
votes1
answer792
viewsHow to export an HTML/C#(Razor) page that contains SVG elements to PDF?
I am currently working with Highcharts, a javascript library that generates graphics. It has an export component, but only exports the chart itself, still need to assemble the PDF layout. For the…
-
7
votes1
answer377
viewsHow to put an HTML code on a label in Laravel?
When I try to do that: {{ Form::label("nomecampo", "Descrição<em>*</em>", array("class" => "entrada")) }} The tag enters inside the tag but is not interpreted correctly. See:…
-
7
votes1
answer3924
viewsHow do I start a skype call from a browser action?
I need to add an "online support" button to my page but instead of creating an online chat I would like to use Skype. What is the best way to implement this?
-
7
votes3
answers13134
viewsHow to make a dowload inline file available in html?
I wanted to create a link to a dowload in my HTML, but I didn’t want to save this content in a separate file, but in the html itself. In images you can do something like this <img alt="Embedded…
htmlasked 10 years, 11 months ago Jader Dias 223 -
7
votes1
answer353
viewsWhy am I losing the values of <input> when opening and closing a <iframe> using Javascript?
Context: I have an application, which uses php+html+css+javascript(with jquery). On it I have a page called principal.php containing an iframe: <iframe src=pedido.php/> inside calling the…
-
7
votes5
answers1446
viewsIs it possible to include elements in the DOM after it is loaded and ready?
I have a table that, depending on the amount of an X value, inserts a set of attributes at the bottom of the page (fields). These elements have events assigned to them. But that’s not the point.…
-
7
votes5
answers2130
viewsHow to add a class to a <li> by clicking on it, leaving only it with this class?
For example: I have more than one ul with their li; If I click on a li of the first ul she has to add a class; If I click on a li of the second ul, she adds that same class. Only that does not…
-
7
votes2
answers4248
viewsHow to adjust the height of the div according to the text?
I created a div with a defined width, but when I insert a very large word the text keeps coming out of the div, how to continue to word at the bottom line?
-
7
votes4
answers27486
viewsHow to change the background with javascript?
I have a function in javascript that returns the day and time for text, for insertion in html, how can I add styles to this text, should I do inside javascript or even in html function…
-
7
votes8
answers5526
viewsHow to make a DIV fill all available width
I have two Ivs, one with a fixed width, 250px; which is on the left, will be a fixed menu, always on the left. And another div to the right that I want to make it 100%, whenever the user handle the…
-
7
votes1
answer4778
viewsHow to read content from a Javascript site?
I would like to know how to read content from other web pages using javascript or some library only. For example, from a remote news site, in this case: www.terra.com.br. And I would like to create…
-
7
votes2
answers241
viewsHow to specify a CSS class for text that breaks line in an HTML element?
Most of the time I work with texts within elements HTML, I use a resource in CSS called line-height. Suppose the height of a specific element is 50px, so I put the line-height with 50px also so that…
-
7
votes2
answers6229
viewsChange image src through jquery
I’m using the plugin Animated Responsive Image Grid and I want to change the image src through Javascript/Jquery. Html code: <div id="ri-grid" class="ri-grid ri-grid-size-1 ri-shadow">…
-
7
votes2
answers20732
viewsStatic search list using Javascript instead of PHP
In my work, I created pages as a static phone book to facilitate the search for them, but since there are many names, I would like to create a search field, but it is not possible to do this without…
-
7
votes3
answers16195
viewsHow to replace src of an img tag?
I have an html page that shows an image for each day of the year. Images are organized in folders for example /img/o1/o1.jpg (for January 1) and so on. My html is simple I want you to take today’s…
-
7
votes1
answer6370
viewsHow to clone an element with jQuery and add a new name?
I’m using the plugin jQuery Cloneya to clone elements of a form with jQuery, but it is a little limited, wanted to clone the inputs but I need to increment the name when this is done, for example:…
-
7
votes1
answer25983
viewsHow to run PHP file from Javascript function?
I have the following structure for registering a new Mysql database account (Register.php): <?php $con = mysqli_connect("meu_host","meu_user","minha_senha","banco"); mysqli_query($con,"INSERT…
-
7
votes4
answers1502
viewsDivs floats in a container with height auto
I’m having a problem structuring a layout with some divs one side of the other and when no more box fit they pass down. And the container main need to increase according to how many box you have.…
-
7
votes1
answer1002
viewsHow to pass variables between PHP pages via Javascript?
I was doing a search in PT and EN on how to pass variables from one page to another via Javascript, although I found a lot of information continued with the doubt of which is the best way to do it.…
-
7
votes2
answers22549
viewsHow to include Bootstrap Glyphicon inside the "<input></input>" tag?
With the following code: <a href="#" class="btn btn-primary"> <span class="glyphicon glyphicon-pencil"></span> Editar </a> I can create buttons like these: But I can’t seem…
-
7
votes4
answers24368
viewsClose Mozilla, IE, Chrome tab
I am trying to close a tab of my site, I have tried to use the following commands: window.open('','_self',''); window.close(); window.close() self.close() var win = window.open("","_self");…
-
7
votes1
answer1390
viewsWhen should I use Data URI?
Date URI is that feature that allows me to place small images inline in CSS or HTML to reduce the number of requests. It is an alternative to CSS Sprite. I did some tests here and I really liked the…
-
7
votes3
answers2143
viewsHow to let Divs self-adjusting vertically?
I’m having trouble trying to leave some divs self adjustable vertically. There is the space needed for the div stay exactly below the one above it, but it does not rise, there is an empty space…
-
7
votes3
answers11791
viewsOverwrite a <button> to a <img>
The idea is to make a "tumbnail" where the play button is (centered) on the image... <div> <img src='imagems/imagem1.png'> <button>Play</button> </div> Thank you for…
-
7
votes1
answer226
viewsServer Side rendering need for javascript content - Angularjs
Knowing that from this year google Crawler performs javascript, considering the indexing of a content that is displayed using Angularjs, there is still the need for a version of the same content…
-
7
votes2
answers10050
viewsHow to use power notation in HTML?
How to format 2 numbers in power? Example: 2, 2 = 2² 3, 2 = 3² 5, 3 = 5³ 6, 2 = 6²
-
7
votes3
answers367
viewsjQuery - Typical duplicate use situation of the same code. How to proceed?
Being here doing my sites on php/mysql/html/css and learning more and more about jQuery I found myself in the situation where I should use the same code for two ids distinct. How to proceed when you…
-
7
votes2
answers175
viewsLine size of a drop box down when we click on the "down" button
I have a list of Brazilian states created with the command select/option HTML5, When I click to choose the state, 20 lines(states) appear and overtake my text box down. I want to restrict the number…
-
7
votes4
answers23882
viewsHow to create a permissions control system
I have a PHP/HTML system and want to deploy a permission system. It would work as follows: 1) I have some pages that some features can only be seen for higher positions. Example: I have a search…
-
7
votes1
answer1542
viewsUpload image data via ajax
<script type="text/javascript"> $(function(){ $("#oformulario").submit(function(e){ e.preventDefault(); var nome = $("#nome").val(); var email = $("#email").val(); var obs = $("#obs").val();…