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
-
5
votes1
answer21967
viewsWhat is . in <form action="." method="post">?
I’m starting in Django and making some changes in code already written by someone. I realized that in form instead of the usual "/action page" to which the data will be submitted, such as in this…
-
5
votes1
answer2694
viewsHow to detect collision between two squares/rectangles
Who provide an answer that explains all the necessary nuances for this in javascript will earn the points.
-
5
votes1
answer7627
viewsDynamically Open Image in Modal Bootstrap
My intention is the following, after generating the list of images by PHP, I wanted that when I clicked on some of the images it opened in a modal dynamically, where I would pass the address of the…
-
5
votes3
answers71
viewsDifference between Immediate Child and First-Child?
Could someone help me with the difference between these two concepts? From what I understand both mean the same thing...but by performing the test below, the text was left with the format of the…
-
5
votes2
answers3252
viewsHow to put the page number to be printed with CSS in @media print
I want to put the page number when the user wants to print my web page. For example, when it is to print my page, and it is broken in two, I want it to appear "page 01/02" and "02/02" on the pages,…
-
5
votes3
answers20457
viewsRound image mask with CSS
original image I would like to know how to put the gray background and cut the outside of the player to stay just inside the circle.…
-
5
votes1
answer163
viewsjQuery doubt append appendTo inject HTML
Hello, I’m having a doubt. I have a variable containing an html structure and I need to inject a basic div (< div > < / div >) around all the contents of this variable, as a parent,…
-
5
votes2
answers210
viewsWhat is the automatically created "o" element between my Buttons in HTML?
I am developing a layout and when I place two Buttons on each other, is created an element "o" in my HTML, which makes the spacing between the two, I could solve creating a margin negative to the…
-
5
votes1
answer139
viewsDjango generating strange code
I am using the visual studio community and created a web project with Django, but when making the homepage, is generating me this code: And the code I have is this: {% load staticfiles %}…
-
5
votes3
answers2170
viewsPass values from a popup (child) to parent page
The parent window (jsp) has a button to open the popup (child). <input type="button" onclick="test();" value="Call Child Window" /> When you open the popup, there are text fields for the…
-
5
votes2
answers265
viewsShould I use a variable that takes an HTML element as global or local?
function message (className, text) { /*Esta variável*/var message = document.getElementById("message");/*Esta variável*/ message.className = className; message.innerHTML = text; setTimeout(function…
-
5
votes3
answers4761
viewsRestrictions in the React text field
It is possible for a text field to receive only the characters below? numeros | espaço | barra (/) | traço (-) The kind field number does not help me in this case, it would be nice to use the type…
-
5
votes2
answers3936
views -
5
votes2
answers90
viewsDoes the unit of measurement "in" change on each device?
When I put as unit "1em" in a "font-size" for a desktop for example, it will become 15px by default already from the browser. But the "in" is worth a smaller size for a mobile device for example,…
-
5
votes1
answer3690
viewsPrevent line breaking (encavalating) in col-Md bootstrap
I am doing a grid that will appear some products, up to 3 per line, in mobile 1 per line, the problem is that the height varies and from there on the monitors it 'encavala' one over the other.…
-
5
votes1
answer5004
viewsHow to remove Input type="number" buttons
How to remove both buttons from Input type="number" in HTML5? Example: <p>Quero que isso:</p> <input type="number"> <p>Vire isso porém sem usar o text, pois preciso do…
-
5
votes1
answer130
viewsDifference in content formatting in Textarea and notepad
I have an ASP.NET MVC application where I display in a text area content that is in the database. @Html.TextArea("Avisos", Model.Avisos, new { @class = "form-control", rows = 50, style =…
-
5
votes2
answers463
viewsHow do I make the href that is inside my div work with Focus?
I have a list that when you click on an item it receives a Focus and appears a div with information. One of this information has a link but when I click on it, my div closes and does not open the…
-
5
votes1
answer64
viewsIs it wrong to have header and Section tags and not have a footer?
I have a single page application, very simple even, and used the tags header and section, without creating a footer, because I found it unnecessary. Is there a rule or recommendation about this? Can…
-
5
votes2
answers1563
viewsHow to get all parent elements except for a few
I’m in a situation where I need to take all the "parent elements" of a div, but I can’t take them all, because it would not solve my problem. I wonder if I can put a limit on getting these elements.…
-
5
votes4
answers2886
viewsConvert HTML to PNG
How to convert, via code javascript or php, html (DOM) from the page being displayed to an image? I need the page shown to the user to be converted into an image file in the format png for the same…
-
5
votes2
answers154
viewsWhat to do so that when the user hovers over an image, it expands a little? ( preferably using only HTML and CSS)
I wanted that when the user passed the cursor over a given image, the image would zoom in a little bit, and that’s all.
-
5
votes4
answers9608
viewsHow to select more than one item in a Select Option
I need to choose more than one option in a select. For example, I could have a checkbox inside the select but I don’t know how to do it, can help me? <div class="col-md-3"> <label…
-
5
votes2
answers109
viewsBest way to get text + HTML from an array
Function I am using: $(".push-description-top").each(function() { var text = $(this).text(); var carac = text.length; if (carac > 0) { var query = text.split(" ", 14); query.push('<a…
-
5
votes2
answers12279
viewsComplete number with zeros on the left with PHP
I have a field with a limit of 4 characters where a value will enter, I would like the remaining space to complete with zeros from left to right, for example, if the user inserts the number 4. I…
-
5
votes1
answer45
viewsSetting up an arena in canvas
I’m setting up an arena using HTML/JS with the canvas. I have the following code: function montarArena() { var canvas; var heightCanvas = 498; var widthCanvas = 598; var qtdLinhas =…
-
5
votes3
answers1248
viewsHow do I redirect the site when it’s a mobile?
I have the following code that should work, but on mobile does not work in Chrome browser: var permitir_mobile = true; var mobileUrl = 'http://m.meusitemobile.com.br'; $(document).ready(function() {…
-
5
votes1
answer127
viewsSVG mosaic comic style
I’m developing a comic style layout and wanted help to create a svg. in the case the last comic is similar to the photo placed from the DC commics (from Batman). Somebody help me create this last…
-
5
votes2
answers103
viewsHow to change the code when the visitor is mobile?
I am developing a website, I want that when the user enters by phone the code change, can be with js or with html. Example (Visitor using Phone): <a href="fb://page/1703826839873386"…
-
5
votes4
answers4799
viewsHow to turn a rectangular image into a circle (without distorting it)
As shown in the image below, I can make the picture rectangular turn round, but it gets distorted: .posts .posts-item img { max-width: 100%; height: auto; display: block; margin: 0 auto;…
-
5
votes3
answers1047
viewsApply effect when changing value of an input
I need some help with an effect I wanted to do, but I’m not getting it. I have a range type input that goes from 1 at the 10, being its default value 5: <input class="i1" type="range" min="1"…
-
5
votes2
answers2823
viewsMargins of the child element leaking to the parent element
I didn’t find in the community something that would clear my doubt, so let’s go! In the example below, I don’t know why water loads, the property margin of the elements p and h1 exceed the parent…
-
5
votes1
answer1115
viewsInput loading data from Modal
Good afternoon! I’m trying to make a modal to fetch the products and assign it to the input. Idea: When I click on the input, it opens the modal. Then I choose the product in the modal and it loads…
-
5
votes2
answers272
viewsAnimation manually Jquery
I’d like to get an idea how I can make a kind of SLIDE now with user interaction. I can’t find anything on the Internet to base on, and I can’t figure out how to do that! In the code I have a class…
-
5
votes2
answers1955
viewsHow to insert HTML code into a textarea?
I would like to know how I can put an HTML code in a textarea, because I have a textarea that receives data from DB dynamically by date filters. ex: <textarea maxlength="8000" rows="15"…
-
5
votes2
answers339
viewsHow to avoid very big win condition in old woman’s game?
I made an old game that checks the user’s win conditions with if, however did not find an elegant solution. I am trying to develop a method to verify the condition of victory with array, but I’m not…
-
5
votes2
answers4177
viewsHow does hierarchy elements work in css?
I would like to know how the hierarchy works in css, I explain: Let’s say in mine style.css i set to h1, h2, h3, h4, etc. by default font-size: 12px;, hitherto beauty... Now, if for example I insert…
-
5
votes2
answers4753
viewsAdding values between html and javascript inputs
Dear friends, I am trying to add sum between html and javascript inputs, but with this example, I was only able to put in the html input. How do I implement the javascript input and add the value…
-
5
votes3
answers1936
viewsHow to pass dynamically changed value to function, in Angularjs
The fields itemCodigo, itemDescription, itemPreco and itemQuantidade are filled dynamically (at runtime, without refresh) from a query performed in the database. However, these values, when passed…
-
5
votes3
answers1793
views -
5
votes3
answers690
viewsCheck whether html form numeric field has a maximum of 6 numbers with PHP
I need to test if field is filled and if it is composed of up to 6 numbers using the PHP language
-
5
votes2
answers2049
viewsSort CSS DIV positioning
Is there any chance I could position the .divdois above the .divum only with CSS without having to change the HTML position? <style> .divum { width: 100%; height: 200px; background: black; }…
-
5
votes3
answers41543
viewsAlignment from side to side
I want to put both divs (green and red) aligned side by side as they are, but the green should be fixed aligned on the right, while the red line is aligned on the left, so I put the margin-left:0vw;…
-
5
votes2
answers771
viewsHow to hide menu items using spring security?
I am using spring security to control access to my web application. I have already managed to implement the control that each type of user will have in relation to the urls, now I would like to hide…
-
5
votes1
answer187
viewsInclude HTML in HTML without affecting SEO
I’ve seen a lot of ways to include a file HTML within another HTML, so much for Javascript as by the tag <object> of HTML5. These include types negatively affect page SEO? Content included in…
-
5
votes2
answers235
viewsHow can you clone cards on my website?
what is occurring is the following. I am currently trying to solve a big problem, two of the company’s online stores that I serve are having a problem with card cloning. I don’t have much experience…
-
5
votes2
answers658
viewsAsk and store user permission to use full-screen?
Apps usually asks for permission to use Smartphone features like microphone, camera... I wonder if it is possible to do the same on a page so that the Fullscreen mode is activated automatically…
-
5
votes1
answer3305
viewsHow do I uncheck the previous radio button after selecting another one?
I have five radio button, of these five one is "marked", as I do to unmark the radio button that I clicked after clicking on another? Example: <fieldset>…
-
5
votes1
answer1195
viewsHow to adjust the printing of an HTML in two columns?
Dear colleagues, I’m developing a PHP program with zend Framework2. In this program I have generate a stylized PDF containing the header, body and footer (I am using DOMPDF). The basic structure of…
-
5
votes2
answers1889
viewsScript to select only a checkbox?
I have the following code with a menu like Menu Accordion: function marca() {} body {font-family: Trebuchet MS;margin: 0px;} nav {width: 100%;} p {font-size: 14px;text-align: justify;} .item label…