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
-
-2
votes1
answer25
viewsScroll only works on a div
<html> <head> <meta charset="UTF-8" /> <title>Astro</title> <link rel="stylesheet" type="text/css" href="styles.css" media="screen" /> </head> <body>…
-
-2
votes2
answers75
viewsHow to create three inputs with the same line?
HTML <div id="main-container"> <form id="register-form" action=""> <div class="half-box"> <input type="text" name="cc" id="cc" placeholder="Numero do cartao"> </div>…
-
-2
votes1
answer38
viewsTo make div appear is to disappear after a while
I have a code that generates a random number is to appear in div = value, right away. But I wanted this div to become invisible and after I click on the button it appears speak the value and…
-
-2
votes1
answer36
viewshtml/css - image alignment
Hi, I’m starting now with html and css and I’m running some tests. I would like help to leave the image on the right side of the browser and leave a list on the left side. html <!DOCTYPE html>…
-
-2
votes3
answers44
viewsI want the main tag not to be affected by the margin
I’m trying to put a second background on my site using the main tag, but I wanted the background to stay next to the text on the sides (without this empty space of margin, in the case of this space…
-
-2
votes1
answer228
viewsWhat is the difference between using classname, classList.toggle() and classList.add()?
I tested and the result was the same using the property className and the method classList.toggle: So what is the advantage and disadvantage of using? Using the className: var btnSignin =…
-
-2
votes1
answer36
viewsCount checked checkboxes and perform operation
I have the following codes: the first checkbox is equivalent to the additional ones that are worth 2 real and the second to those that are worth 4 real. Additional 2 reais: <input type="checkbox"…
-
-2
votes2
answers111
viewsHow to block special characters in a textarea field
The thing is, I applied a mask on all inputs, which denies the entry of any character not allowed, so far so good, the problem is the textarea fields, I have already researched a lot and have not…
-
-2
votes1
answer149
viewsHow to redirect from one page to another in Laravel?
I would like to say that I am extremely lay in PHP and Laravel, but I am trying to learn for a job. I’ve done a basic CRUD before with the tool but I have a question on a current project. I created…
-
-2
votes3
answers56
viewsHow do you put a div that’s inside a container under each other?
I’m having the following problem, my Divs are getting online, I’ve tried several ways to try to insert one under the other, but it still doesn’t work. The correct would be to stay in the format…
-
-2
votes1
answer32
viewsHow can I change the behavior of an active button according to time or clock?
Minha dúvida é como automatizar esse processo. Os botões ativarem de maneira automática de acordo com o time ou relógio do computador. <html> <head> <meta name="viewport"…
-
-2
votes1
answer64
viewsHow to check if an element is visible with Javascript?
I hid a div using a CSS file and then tried to check if the div was visible or not with Javascript, my code did not return anything. Code used:…
-
-2
votes1
answer33
viewsHow to import libraries directly from index
I’ve been reading up on some topics on how to do this, but I haven’t found any to explain it. What I’d like to do is, instead of using: <script src="node_modules/php/index.js"> </script>…
-
-2
votes1
answer57
viewsHow can I add these numbers that are going through the foreach?
I need to add these numbers to get the final result that would be the conversion of binaries to decimals this all pretty much "right" even at the base of the kkkk gambiarra... Numbers I need to add…
-
-2
votes1
answer32
viewsEvent Click, take the value of line input dynamically
I have the following code below <body> <table> <tr> <th>Company</th> <th>Contact</th> <th>Country</th> </tr> <tr class='item'>…
-
-2
votes2
answers51
viewsHow to remove spacing between main tag and header? (solved)
When I place an element H2 within the tag Section who is the daughter of main, a spacing appears blank between the main and the header. The problem also occurs if the H2 tag is placed inside the…
-
-2
votes1
answer48
viewsHow to call menu inside another file
I want to call a menu file done in html, inside another html file to reuse the code without having to type everything again for each module of the menu. Do I have to use PHP to do this? Follow the…
-
-2
votes2
answers101
viewsHOW DO I SELECT A DIV WITH PHP?
I’m stuck in an exercise in the following exercise. Create a loop with do...while which displays within an element <div> the current index, but when the repeat index is 2, 6 and 10, change the…
-
-2
votes1
answer65
viewsHow to capture data-tooltip using Selenium in Python
Hello, is the following my problem: I am making a web scraping in the following URL > https://www.maze.com.br/produto/tenis-nike-air-jordan-ma2-ultramarine-branco/4749595. I came across a slight…
-
-2
votes2
answers38
viewsHow to align 4 Divs with image
How do I align my texts and images side by side as this way below: I researched and tested several ways to align and could not. Currently it is like this: The code I used to do this is this: <div…
-
-2
votes2
answers54
viewsConditional If inside map() with Function
Hello! I have a line of code like this: if (searchQuery.length != 0) { return ( <Row hidden> {searchQuery.map((res) => ( In this snippet of code, I’m trying to add a if shortly after the…
-
-2
votes2
answers28
viewsFor all input, is it always necessary to add a value? And how do I make value not change the placeholder?
I’m creating a simple form with pure HTML from what I learned in Freecodecamp. But I was a little confused on the question of whether or not it is necessary to put value on every input because, in…
-
-2
votes1
answer43
views -
-2
votes1
answer51
viewsIntermittent CSS icons when reloading page
I am having problems loading icons, but it is rare and difficult to reproduce the problem, as it occurs from time to time in the update with F5. Only occurs in bootstrap css icons or any css font…
-
-2
votes2
answers44
viewsI’m not being able to print javascript
Well I’m trying to make a simple html page where the user type a number and then the page shows the Full of it. Only I’m not getting the page to type Abuda, someone can help me?…
-
-2
votes1
answer31
viewsError picking up a BD result and giving an Hide in a javascript option
Good evening, I’m making a mini point system where I want the system to do a search and if the result is true (in my case it returns that has 1 line) I wanted the javascript to give an Hide in the…
-
-2
votes2
answers31
viewsadjust border bottom top
opa, so I’m making a menu and I put a border-bottom on :Hover it but I think q this very tight with the menu wanted to give a space between them but I’m not getting, I tried to increase the height…
-
-2
votes1
answer59
viewsHow to highlight the menu option for the current page?
Hello. I am making a site with tabs, and would like to know how to make the section (word) of the menu highlighted according to the image. I managed to put, but it only stays on the menu Beginning,…
-
-2
votes1
answer47
viewsSave button
Hello, I need someone to tell me how to make a system to save my points in java script, I will provide my html css and javascript, here are mine codigos: let add =…
-
-2
votes1
answer27
views -
-2
votes1
answer74
viewsPython | Selenium | Looking for html element
Hello guys I am beginner in python and little knowledge in html, I’m trying to do makes a search for information on a dvr Intelbras via web page. until a certain point I manage to do what was…
-
-2
votes1
answer36
viewslist publications of friends
i am making a query in the database to list my publications and the people I follow on my Timeline, the more the query just this bringing my publications. <?php $tipo_news = "SELECT * FROM…
-
-2
votes2
answers72
viewsCenter an element with css
I’m trying to make a pop-up with a login screen, however the div of class="form-login-div" is not being automatically centralized at all. Any idea? CSS: .form-login-div-parent{ width: 100vw;…
-
-2
votes1
answer50
viewsHow do I stop the POP-UP video when closing the page window?
Well, I don’t have much HTML experience, I’ve tried and I can’t get the video to stop playing when closing the POP-UP window. If anyone can help or give a hint thank you. <!DOCTYPE html>…
-
-2
votes1
answer28
viewsError after calling Event
After calling the Event click on the button, the calculation appears with no result and the HTML that entered through the JS disappears from the screen right after the call. PS: Ignore developing…
-
-2
votes1
answer47
viewsI want to do a css animation
In my project, I would like to make an animation ,when a box increases in size, a text appears inside the box. CSS .dvabout{ opacity:1; float:left; margin-top:50px; width: 300px; height: 100px;…
-
-2
votes1
answer62
viewsHow to read <br/> in HTML files and print as line breaks?
I made a web scraper using the modules BeautifulSoup and requests, that takes the definition and example of concepts in Urban Dictionary. This is code, using the word "reparation" as an example.…
-
-2
votes1
answer29
viewsProblem with Alert
Good afternoon, I’m starting with Javascript/Jquery I’m having some problem in my project’s Alert. It may be a logic problem, but because I’m starting out, I can’t see where the error is. It is a…
-
-2
votes1
answer54
viewsHow to check if a variable is string or number?
I made a "mini site" to ask the name of the person and send a alert but somehow I want to send a alert error if the person places numbers instead of the characters in the name. <h2…
-
-2
votes2
answers65
viewsOn the Javascript part, how do I convert a number? Nan’s It
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport"…
-
-2
votes1
answer22
viewsReverse for 'add' with keyword Arguments '{'product_id': 2}' not found. 1 Pattern(s) tried: ['Cart/add/<int:product_id>/']
Hello I’m studying Django and following a tutorial I got to the part of adding a product to my shopping bag, but when I click the add button in the bag it returns this error: Traceback takes me to…
-
-2
votes1
answer33
viewsHow to put CSS in more than one LI (list/html)
good afternoon. I am participating in a course where our challenge is to make a simple "visit" card. Well, I almost finished, but I can’t put the logos next to the sites. First I made the UL list…
-
-2
votes1
answer24
viewsMy php code doesn’t let him log in, (I think it’s because of the $_POST method)
Good evening, I’m making a code in php to confirm if the user exists in the database to enter another page Home, for that I remove the data by the $_POST method from the form, but from what I saw…
-
-2
votes2
answers72
viewsSpace between text and table borders
How I remove or reduce the space between the text and the upper and lower table edges? I need to be closer to the text because I have a large form and with these spaces does not fit in a sheet for…
-
-2
votes1
answer40
viewsHow can I hide information in php?
I have the following structure $tabDados = "<table id='cabTabela' border='3'> <tr> <td id='cabCelula'> <br>nome completo</td> <td id='cabCelula'> <br>numero…
-
-2
votes1
answer34
viewsinput type="time" delete value when checkbox is unchecked
Good afternoon everyone. I have the following HTML code <input type="checkbox" id="checkmarcacao1" name="checkmarcacao1" value="checkmarcacao1"> <input type="time" id="hora101"…
-
-2
votes1
answer25
viewsReturn the date value selected in the datapicker in a variable
Good afternoon community, first question here. I have a datepicker fixed on a div in my code, not an input!! and I’m not able to take the selected value and store a variable because I need to later…
-
-2
votes1
answer32
viewsHow to place Tagas ''a' in the banner corner?
I want to schedule the time and contact in the right corner of the banner and it’s like this : https://prnt.sc/1gnnx6b code: .banner { background-image: url(../img/banner-barbearia.jpg);…
-
-2
votes1
answer54
viewsHow to create a button to change a text in my html with data coming from Django’s models.py?
I’m starting to work with Django and I’m starting a test to solidify what I’ve been learning. The idea is a single page, which displays a phrase as soon as the site opens. Below the phrase, there is…
-
-2
votes1
answer15
viewsPHP+File uploading error
Good morning, everyone. I’m trying to do a simple PHP video upload. My HTML code is here: <html> <head> <title>Aproveite o site</title> </head> <body> <form…