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
-
3
votes2
answers48
viewsJavascript + CSS : Doubt about Value or textContent
I made a condition that is not respecting the content of text. Follows the code: function teste() { var elements = document.getElementsByClassName("testetxt"); if (elements.value =! null) {…
-
3
votes1
answer1430
views -
3
votes1
answer83
viewsDiv leaving the right side of the page in animation
I have a div that is a mobile phone and when I go down the page performs the animation but before performing the animation this div ta getting off the page breaking all the layuout my div <div…
-
3
votes1
answer90
viewsSelection area with the mouse?
I am developing the following code, to create an element selection area using the mouse. var draggingMouse = false; var leftMouseDrag, topMouseDrag; $(document).on("mousedown mouseup",…
-
3
votes2
answers912
viewsBox with edge and a heading on top edge
Is there a style of its own in CSS or HTML tag where I get the effect as shown in the image below? Would be a aside with a border of 1px and the word "Realization" centered on the upper edge, but…
-
3
votes1
answer123
viewsRun modal only if there is a call
I want to run the modal only if there is the call. Because it is taking too long to open the page. Below follows the modal used: <div class="modal fade" id="m_modal<?php echo $count ?>"…
-
3
votes1
answer177
viewsHow to insert the button pressed in the database
In my code I have 3 buttons, which serve for the user to classify the service: <input type="submit" name="verde" class="verde" value=""> <input type="submit" name="amarelo" class="amarelo"…
-
3
votes3
answers666
viewsASP.NET - How to use multiple post methods in the same controller?
I have the following problem: On a given HTML page I have two buttons that call different POST methods in the same controller. @using (Html.BeginForm("UserInfo1", "UserInfo", FormMethod.Post)) {…
-
3
votes2
answers351
views -
3
votes1
answer29
viewsHow to prevent anchored links from leaving stored history
I have a code that has two blocks on the sides and when clicking on them happens a change of background color of the page, but as they are defined with 'target' that pull each element in an orderly…
-
3
votes2
answers122
viewsJquery - Dynamic form enumeration
Hey, how you doing? I have a form with text fields that can be added and deleted as the user likes. My question is this: when the user finishes filling the form I will not know how many fields there…
-
3
votes1
answer78
viewsHow to apply opacity to a DOM element - createImage(); - through a javascript editor?
I’m using P5.js - a javascript library - to capture images from a news API. I would like these images to be superimposed, but with opacity, so that the images merge. I’m not being able to apply…
-
3
votes1
answer135
viewsJavascript - Hide children from radiobutton when selecting another radio from the same group
I have a group of Radio Button, some of them have other inputs as children, if you check the Input Pai they must appear, if it is unchecked they must disappear. As in the HTML down below: <div…
-
3
votes2
answers1105
viewsJAVASCRIPT: Sort HTML list by name and age
Good night, I need to sort a list of HTML phrases by user name or age, depending on which button is clicked. How can I do this? Below is a clearer version of the code: <html> <head>…
-
3
votes2
answers1158
viewsCreate an image gallery
I am starting a project and would like to create a page with a gallery as in the scheme below: Website that owns the Gallery So it seems the images are made available by lines, only I was able to do…
-
3
votes2
answers428
viewsText with line break
I pass some product instructions for an external charge service (website). On the screen of this site, the past messages are in the "description" field, inside an element h3, which seems to have 25…
-
3
votes2
answers5887
viewsHow do I make this table mobile responsive using only html programming?
The code of the site on the computer is ok, but in mobilie the columns are very thin and with very bad visibility, I tried to solve in several ways the responsibility on the mobile and only managed…
-
3
votes2
answers424
viewsEnglish quotes how to edit?
I’m making a website that I found that a text will have English quote, so far it’s okay to just do the code, but the problem starts when I edit your font to get bigger, the final quote creates an…
-
3
votes3
answers752
viewsHow to place an image inside the bootstrap Popover
I want to put an image inside Popover. Does anyone know if this is possible? <!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Example</title> <meta…
-
3
votes1
answer130
viewsProblem with jQuery mouseleave function for popup shooting
I’m using the function mouseleave to open a popup when the user moves the mouse out of the site. That is the code: jQuery('body').mouseleave(function() { if (!jQuery('body').hasClass('leave-on')…
-
3
votes2
answers268
viewsOpen and close the code or use variable?
Two scripts with the same result: Example 1: <?php ...códigos PHP acima... $tabela = '<table>'; $tabela .= '<tr>'; $tabela .= '<th> Valor1 </th>'; $tabela .= '<th>…
-
3
votes1
answer181
viewsDisplay a GIF at start
Setting Have a page containing a div where content is loaded by Jquery and a div occult (hidden), with a GIF: <div id="lista"></div> <div id="loading" hidden> <img…
-
3
votes3
answers2323
viewsHow to do with CSS a checkered checkerboard background for Body?
I’d like to put in the <body> a checkered background, like a chessboard covering the whole body. I tried with repeating-linear-gradient(), but I couldn’t... html, body { width: 100%; height:…
-
3
votes3
answers2556
viewsHow to get the value of an input using the attribute name javascript
I was testing some codes and I realized I wasn’t getting the value of a input through the attribute name document.getElementsByName().value, but with the id is working normally. It is possible to…
-
3
votes1
answer460
viewsLogin page
I’m learning angular. I’m using angular 6 I am trying to make the login page of Admin LTE I imported these files in angular.json "styles": […
-
3
votes1
answer224
viewsProblem to write foreign key to table
I am developing a web java project - using Spring , Thymeleaf , Html, Mysql . In this project I have two classes that are related by foreign key. (Technical and Position). In my view…
-
3
votes1
answer82
viewsCustom password window for the same page
I wanted to put a password on the page when it is accessed(simple), in a window (Alert type) with password that appears before loading the page, I wanted this custom "Alert" like a modal or any…
-
3
votes2
answers151
viewsAnimation with image in CSS
I’m breaking my head with a simple thing, usually I solve these problems by looking at google, but today I did not have this luck. And the following, I want to create a background with the class…
-
3
votes1
answer878
viewsPerform function in a div scroll event
I have two Ivs, both have the same id, target1. I need to take two Divs in Javascript and apply a function in the scroll event from div1. This function will be responsible for picking up the value…
-
3
votes1
answer145
viewsIs <label> semantic or allowed to use which elements inside?
Studying I saw some examples of code where the input is placed inside the label, that brought me a doubt, it would be semantic to use what elements within a label? <label…
-
3
votes1
answer106
viewsc# - Error trying to Replace a string
Boa Pessoal, I have the following problem: While trying to do the replace of a string (of a Literal Control), using the code below, the value of the code is not changed.…
-
3
votes2
answers56
viewsProblems with Bootstrap grid
I have this problem. I’m going to be very direct. Self-explanatory images. I can decrease the source but I don’t know how much content will be in the block. So I want to make a working code. I…
-
3
votes1
answer434
viewsHow to do "Semantic Quotes" with the <q> tag, but it is with a different font-family
The question is very simple and objective, I want to have a font style for the paragraph and another font style for the quotes, but when I put the content between the tag <q> what’s inside…
-
3
votes1
answer240
viewsHow to fix navbar with dropdown?
I want a navbar with dropdown menu and fixed at the top, but I can only leave fixed or with dropdown working, follow the code: body { margin: 0; } ul { list-style-type: none; margin: 0; padding: 0;…
-
3
votes1
answer182
viewsCustomization
Hello to everyone I’m beginner in Bootstrap, and I’m developing a Carousel in boostrap, only instead of showing only one image I would like to show 3, as in the image below. How could I be doing…
-
3
votes2
answers53
viewsRun icon "Arrow" with JS
This may sound simple, but I can’t find a good answer. I have an arrow icon and when I click it, I want it to turn 180 degrees. The code I started using was this: $('.arrow').click(function() {…
-
3
votes1
answer2585
viewsProtect php files from direct access without locking to the system
In terms of routing, my site is divided into two parts: First, it has an app folder inside root, where it is contained all the files of the site in MVC system, and second, next to the app, a set of…
-
3
votes2
answers237
viewsHow to increase the top margin of the element
The problem I’m facing is to increase the upper margin between that title "Log in" of div main, I thought with a margin top I could do that, maybe I’m using it wrong, I tried, I tried but I…
-
3
votes1
answer336
views -
3
votes1
answer1684
viewsConfirm PHP password, Javascript, HTML
I wanted to do the password check, if the passwords are different an Alert appeared with something like "Passwords do not match", if yes, pass through. But the way I’m doing it comes a message from…
-
3
votes1
answer154
viewsHow to improve my HTML layout?
Gentlemen(as), I need to make the following rectangles below in html, can instruct me what would be the best option indicated? body { width: 100%; height: 100%; margin: 0; padding: 0; } body {…
htmlasked 6 years, 4 months ago Gabriel Paixão Justino 287 -
3
votes1
answer1231
viewsinnerHTML on a TR of a Javascript table
Hello I would like to generate a dynamic table in java script(only the tr and td) for this I am using innerHTML. I make the following code: objDiv1 = document.getElementById("tabela"); bloco +=…
-
3
votes2
answers153
viewsHow to add two values of an input by checking checkbox
I’m wondering how do I add two values that are set when I mark the checkbox. i made this code,It doesn’t work as I expected,I wanted it to take the number that is already in the input and add…
-
3
votes1
answer956
viewsScale of shift services in php
I intend to create a monthly shift schedule. I’ve got four shifts: T.M = Morning shift (has 11 assistants this shift, but on each day break 3) T.T = Afternoon shift (has 5 assistants this shift, but…
-
3
votes1
answer41
viewsChange properties of a single element that repeats over and over again on my page
I have a div with the same classes repeating several times on my page (only changes the content) and I want to select only the element that was clicked. Example of the code I’m using:…
-
3
votes2
answers697
viewsHow to put ALT in a Background-Image? How to make a Background-Image more accessible and semantic?
It’s a simple but objective question. We know the importance of tag ALT for semantics, accessibility and even for SEO. But how can I set these tag properties ALT in an image that is defined as…
-
3
votes1
answer139
viewsI cannot place function on inputs containing masks
Guys, I have these three fields in a product registration system. The first is the cost price, the second the profit over the first and last the selling value of the product. What happens is that to…
-
3
votes1
answer36
viewsIs it possible to assign a value different from the value acquired from an OPTION in a SELECT when submitting the form to PHP?
Well, I believe the title of this question has been confused, but I’ll try to elaborate on my problem. I’m developing a project with the Codeigniter framework (I’m a beginner) where I have a…
-
3
votes1
answer69
viewsPrevent the Element Edge from growing when using Transform:Scale
It’s a very simple question, but I couldn’t find an answer... I have an element that has a borda of 1px. But when I make one :hover on it I apply a transform:scale() but the width of borda him tb…
-
3
votes2
answers57
viewsRemove from a table and insert that same row into another table
How can I remove a row from a table by clicking on an icon check, and clicking on the icon erases the task with id="next tasks" and adds to the table with id="myTarefas" I was able to remove it from…