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
-
0
votes2
answers47
viewsHow to check the id of an item in a class in Javascript?
Basically I have a class, and every item in this class has a id, how do I check this id is equal to a specific value? and, if it detects such value, how to change to a different image? My code is…
-
0
votes1
answer24
viewsFor each field that is created add a value
Hello I am trying to create inputs and in them I would like to put the values that have in my array. <div id="guias"> <div class="form-row"> <div class="col-md-6 mb-3" id="origem">…
-
0
votes1
answer43
viewsHow to send dynamic image in the body of the email with VBA
I created a macro to send different images in the body of the email to different people. The problem is that I am not able to leave the dynamic image in the body of the email. It is attaching right,…
-
0
votes0
answers20
viewsSite Javascript stops working when using history.push for another page
When using the; <a href onClick={() => history.push(`/about`)}> Javascript stops working by locking the page slides and other objects that depend on it. I put javascript in public/js and…
-
0
votes1
answer60
viewsHTML table inside another table in a foreach in PHP
I wonder if it is possible to Add a Table HTML within another table in a foreach. Explanation why I need this: I have the budgets in the database and each budget can have many composition items. I…
-
0
votes0
answers32
viewsProblem with responsiveness in a div with reactjs and Slick Carousel
EN I’m having trouble getting the background of my div responsive, when I lower the screen horizontally and increase vertically, the background is "stretched", making the title and content below…
-
0
votes0
answers16
viewsonclick lasting 1 second
Man onclick this one lasting only 1 second. Ex: I click the right button and take the value of the input and return to div, but the value is only lasting 1 second on the screen: function teste() {…
-
0
votes1
answer35
viewsStoring an input field value in a localStorage
I’m trying to get the content of an input field in html: <!DOCTYPE html> <html lang="pt-BR"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible"…
-
0
votes1
answer24
viewsHow to change the width of this H3 so it is responsive and centralized vertically and horizontally?
I’m trying to center both horizontally and vertically this H3 but it’s bigger than the image, so when it changes the size of the device being seen it ends up leaving the center: The images have a…
-
0
votes2
answers57
viewsAdd and remove rows in a table
I created my table this way with button to add and delete lines: function addAgregado(){ $("#riscos").append("<div>"+$("#riscoform").html()+"</div>"); } $("#tbUser").on('click',…
-
0
votes0
answers66
viewsOpen and close menu button
Good evening guys, I’m new to programming and I’m trying to put on my web page an open and close menu button. I apologize if it’s repeated, because I couldn’t find one that looked like mine, so I…
-
0
votes0
answers33
viewsHow to create a simple HTML page with Python
Good night. I’m solving all the Pythonbrasil lists, I’m on Listadeexerciciosprojetos 1. I managed to solve the problems but I’m not able to assemble the HTML page, I haven’t programmed for a long…
-
0
votes0
answers14
viewsInput type "reset" calls password save option in Google Chrome
Hello, everybody. I have a problem/bug and would like your help. I have a user registration form. I put a input type="reset" to clear the data if necessary. However, every time I click on this…
-
0
votes1
answer47
viewsHow to position the text on the right side of this Section? I used"float: right;", but keep this white space, I’m using Bootstrap for the texts
//Caso aja algum script que me ajude, adoraria saber. Obrigado //pela atenção pessoal :) body{ background: #24282f; } /*GALERIA DE IMAGEM*/ .galeria-second{ width: 42%; height: 530px; overflow:…
-
0
votes1
answer49
viewsHow to send a Javascript parameter to Python?
How I send a parameter to be read by a function in Python? I have the following function in Python: @app.route("/add") def add(book_id): """Atribui o ID de um livro ao ID do usuário"""…
-
0
votes1
answer23
viewshow to make a horizontal scrollbar without using white-space: nowrap;
I’m using white-space: nowrap; in a mother div to make a scrollbar horizontal. Only the elements inside the mother div for example <p>tag p ela não cair para abaixa ficar em uma linha…
-
0
votes2
answers41
viewsDisplay json in different locations of my html statico
Hello I have a json : http://mulher.store/clara/admin/api/empresa.php?e=8 this api data needs to appear in several places of my html page: example: <div id="community-members-member-top-title"…
-
0
votes1
answer49
viewsHow to apply a CSS style only to devices that do not have a mouse?
I need to hide an "X" icon when the device is in a web resolution with the pointer cursor and keep on touch devices (e.g., tablet and mobile). I don’t know if I need to use the media pointer, to…
-
0
votes2
answers51
viewsAlign Divs, with or without Bootstrap
Hello, I need a centralized grid using bootstrap, I managed to do this using flex and justify-content-center: .item { border: dashed 1px blue; padding: 5px; } .container { border: solid 1px black;…
-
0
votes0
answers25
viewsRemove the overlap
I am using the React-Burguer-menu and it is over all the content. I would like to get all the content to the side when opening the menu. Follow code in the Burger import React from "react"; import {…
-
0
votes1
answer39
viewsWrite to file . txt using Javascript
I have a form HTML very simple (I am using it only for testing) <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible"…
-
0
votes0
answers25
viewsTouch in dropdown list does not work
I created a dropdown menu using HTML and CSS and made a configuration with Jquery, for when I pass the mouse over, this dropdown menu opens. But on mobile this doesn’t work, how to set up to have a…
-
0
votes1
answer54
viewsHow to add an HTML element with line breaks by Javascript?
I’m trying to put a modal inside a .append(), but I’m not getting it. As HTML is very large, it ends up breaking lines before reaching the end of the complete block. So, because it is not in a…
-
0
votes1
answer25
viewsSelection of Recipes by Specific Ingredients
Well, I’m creating a recipes website and one of the searches is a search for selected ingredients. My table in the database is this: CREATE TABLE Receita( idReceita INT NOT NULL auto_increment,…
-
0
votes1
answer21
viewsDjango - How to interact 2
In Form1 I have this entry "name_car". This form saves normally in the database. In form2 I have the same field "name_car" to put the "pieces". Question: How to bring the Form1 car name to the form2…
-
0
votes1
answer24
viewsWith Javascript is it possible to automatically execute a function on another part of the file?
I have two separate pages: The first contains a form with two fields input of the kind date, among other information. The second page receives a data from the form information that I mentioned…
-
0
votes1
answer77
viewsSum checkbox with predefined values. Javascript
I’m trying to add value values that were selected via checkbox with pure Javascript. What I’m missing ? Follow the line of code I rationed ... HTML <h2>Escolha seus destinos:</h2>…
-
0
votes1
answer50
viewsLoad multiple functions on main page using Django
I’m having a problem trying to load some data from mysql database using Django, type functions only work if I assign in the file: py. the following attribute: path('', views.countregistered) But…
-
0
votes1
answer37
viewsAngular11/HTML - Problem with autofocus
Hello, everyone. I’m having problems with autofocus. I have a login form with user and password. autofocus is in the user input. After the first login, save user and password to not need to type…
-
0
votes0
answers27
viewsHow to scroll through one or more table html and your table html daughters?
How to go through all the tables and their daughter tables, because I need to make a sum of the columns "Value"? Tables are created dynamically according to the return of the Ajax function. I can…
-
0
votes1
answer20
viewsWhy `position: Sticky;` of an element stops working when it reaches the `margin-bottom` of the next element?
I’m doing an exercise in CSS and I have a header stylized with position: sticky. This style works correctly until the scroll of the page finds the margin-bottom of the next element (div), when the…
-
0
votes1
answer18
viewsInline formsets Django
Hello, I am until that experienced in Django but I am having an error that I am not able to solve, well the error is this, I have an inlineformset_factory and when I go to save it not saved and says…
-
0
votes1
answer31
viewsAlignment does not work in a div
I’m trying to line up a div in the center, but it’s on the left. I’ve tried using <div align="center">, tried to use text-align and align-items in css, but nothing works. #json {…
-
0
votes1
answer35
viewsPHP - Return database value - specific value
need a light to return only a specific value according to the login done. Example: if the database username is "Amora" returns the value of the column Name whose username is Amora. I believe it is…
-
0
votes0
answers25
viewsHow to assign different colors to each node in a Sunburst?
I am creating Sunburst that has a lot of data, to have a more readable reading I want to assign to each node a color. I am using the D3.js library, I found in the documentation the following code.…
-
0
votes0
answers40
viewsMy site is made of animated images with javascript. How do I make it responsive?
First of all: I started programming not a week ago, I’m very interested in learning, so while I wait for the answer I’ll be endeavoring to turn me around, but a little help wouldn’t be too bad :) As…
-
0
votes0
answers38
viewsHow to load the Page and Image using jQuery
I already have the code to load the page itself but the image of the pages are in a different folder then does not click next to the page, that’s the problem. <html> <head>…
-
0
votes2
answers31
viewsHow to remove lateral white space from div’s
Problems with the Newbie. There’s a blank space in my div’s: I didn’t even bother because it looks like it’s going nowhere, but: This affects the site on mobile, making this space blank throughout…
-
0
votes1
answer39
viewsHow to use a multi-page script without giving the eventListener error in the console?
Here is a simple example to demonstrate the doubt. There are two pages and a script. I know it works by importing the script on both pages, but when I use the eventListener, it shows the error…
javascript html javascript-events events event-listenerasked 3 years, 3 months ago Glebson Santos 13 -
0
votes0
answers37
viewsIframe connection refused
I want to implement an android app from my online site, make a webview, however when trying to pass the link from my site to iframe from Appe try to show the content of the site in the refused…
-
0
votes2
answers46
viewsWhy can’t I reverse aside my aside and Section:
I’m trying to make the box2 get float:left and box1 with float:right but even setting the options HTML does not play what I need. This needs to happen without using grid or flexbox or anything other…
-
0
votes1
answer32
viewsRemove list item
How do I remove the item from the list that is generated after the event that creates it? I am trying to place an event that has the function of removing the item, but when I run the code it turns…
-
0
votes1
answer78
viewsHow to make a dark mode button?
I tried to create a simple code from a button that, when clicked, leaves the bottom of the page in dark mode. const btn = document.querySelector(".button"); btn.addEventListener("click", (evt) =>…
-
0
votes0
answers46
viewsHow to choose only a few items from a . map
I’m making an app similar to facebook, all posts are on a . map: {datapost !== undefined && datapost.map(item => { return ( <div className="publicacao"> <div…
-
0
votes1
answer43
viewsElement overlapping all the rest
I’m creating a project binary decoder, wanted to "decorate" putting a Matrix style background, but it overlaps all other elements present in html // geting canvas by Boujjou Achraf var c =…
-
0
votes0
answers27
viewsPage navigation by AJAX does not work
I have the following Menu on my page Index.php <nav class="navbar navbar-expand-lg navbar-light bg-light"> <div class="container-fluid"> <a class="navbar-brand"…
-
0
votes0
answers26
viewsWhen clicking the buttons access the corresponding tab
I took a model of W3schools and I modified it so that it had 3 buttons, one for each city. In the current form, any button to be clicked will show the modal in the tab "London", that is, the first!…
-
0
votes1
answer39
viewsResponsivel layout with image
I have an area with a title, text , list and image. I need to leave the image next to the text area, as in the figure below: However, when decreasing the screen resolution I need the image to be…
-
0
votes0
answers17
viewsDjango does not display database images after filtering posts
I have a blog in Jango that separates your posts by category and each post has a thumbnail referring to it. On the blog homepage each image is displayed normally, but when changing the page to the…
-
0
votes1
answer29
viewsAutocomplete dropdown menu
I implemented a Autocomplete system in one of my form inputs and wanted to know if I can return the result of several arrays. The system serves for scheduling bath of a pet shop and I wanted to…