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
votes1
answer99
viewsSimilar shadow effect on gmail login screen
How to do for the same shadow effect when clicking on the show/hide equal password button has on the screen login google. Already tried to do with the pseudo-element :before using :phocus but I was…
-
3
votes1
answer419
viewsSlide content with HTML and CSS
I’d like to make a slide content with HTML and CSS, the slide that I need contains everything below the header. I will explain further... Normally you use the menu to navigate through the pages, so…
-
3
votes1
answer81
viewsHow to run a Javascript Hide from one side of the page to the other:
Sorry for the confusing question, I’ll try to explain it better: I’m making a website, and I’ve used pages that take up the entire screen, and center the content, one below the other. There is also…
-
3
votes3
answers236
viewsCheck if array contains specific character
I need to check if an array has a specific character (this: | ). If it does, that character should be deleted and the next word that would be after that character (which is actually an item…
-
3
votes2
answers5045
viewsClose modal when you click the button
Hello, I have this following modal, whenever I click on the button "Refused sale" it opens, however I wanted to close this same modal every time he clicked on the button "Send", that in the case is…
-
3
votes2
answers199
viewsCheck if HTML is visually filled
I have this div: <div class="listagem-usuarios"> //Aqui eu deixo vazio e insiro algo quando necessário através do append </div> I’d like to check if there’s nothing inside that div. I…
-
3
votes1
answer189
viewsWhy Button inside Label does not work. Button does not work as expected not to activate Checkbox
I was making a Menu that only appears when a checkbox is checked. And to change the state of that checkbox I need to click on label of it, since the input:checkbox is actually hidden. What happens…
-
3
votes2
answers226
viewsHTML5 Dynamic Drawer
Good morning! I rode several blocks with a div that through Javascript, it interacts as if it were opening a drawer (block) with a click and closing it with two clicks through a function. But when…
-
3
votes2
answers278
viewsChange the size of a chart with JS
I have the following chart: window.onload = function() { var can = document.getElementById('canvas'), spanProcent = document.getElementById('procent'), c = can.getContext('2d'); var posX = can.width…
-
3
votes1
answer107
viewsWhy is iframe not being printed in the input?
I’m putting the contents of an iframe in an input, only it does not appear complete, just this in the input text: <iframe width= And it appears on the bottom line: " type="text"/> Look at the…
-
3
votes1
answer113
viewsDoes my Select custom with Fontawesome not open when you click the arrow?
I made that select customized using FontAwesome, but it doesn’t open when you click on the arrow. Follows code referring to image above: .x { width: 50%; background-color: #fefefe; border-radius:…
-
3
votes2
answers1399
viewsFind element in HTML and add a class with pure Javascript
I need to locate a class called uk-slideshow inside the HTML, after locating, I need to check inside the uk-slideshow image, if you have, add a class in this img. PS: It’s more of an image. The…
-
3
votes3
answers3139
viewsVideo unavailable
I’m learning HTML5 and I’m having trouble incorporating two videos. All of them worked but the last to press "play" says the video is unavailable. <iframe width="280" height="130"…
-
3
votes1
answer359
viewsHow to use back-end information on the front end with Python and Django?
In my code Python I create an object called status as follows: In Forms/status.py class StatusForm(forms.ModelForm): class Meta: model = Status fields = ('status', 'posicao') widget = { 'status':…
-
3
votes2
answers1851
viewsHow to assign a function to a button in Django Python
I am doing a Jango course and I would like to know if it is possible to assign a function to a button. For example: <form> <label for="word">Digite uma palavra:</label> <input…
-
3
votes3
answers769
viewsTable button to update the row
I have a table, in the last column of each row I add a button. I need to click the update button, my question is: How I will reference the line with the button? For example a table with the…
-
3
votes1
answer49
viewsAdd Class if it matches a pattern
I’m trying to get you to add a Class is an element through its ID if it is a certain kind of pattern. if (/^([0-9]{4}[\-]?[0-9]{3})$/.test('#codigoPost')) {…
-
3
votes3
answers60
viewsJavascript - Show function result in class
I have a Javascript function that returns today’s date: function getData(){ var dataAtual = document.getElementsByClassName("dataAtual"); var today = new Date(); var dd = today.getDate(); var mm =…
-
3
votes3
answers2246
viewsHow to disable a link semantically while maintaining accessibility?
I noticed some elements like select, input and button has the attribute disable, but the element of link <a> does not seem to recognize this attribute and is not disabled. Is there any way to…
-
3
votes1
answer320
viewsHow to align the content of a Nav Bar so that it is in the center of the screen?
I have a Nav bar that I need to put your content in the center of the screen, I’ve tried several codes but it always stays to the left, follow my current code <nav class="navbar navbar-inverse…
-
3
votes3
answers48
viewsEmail sending problem like Ajax
I’m developing a website where on the main page it has a section with a form. This form is for registering emails for sending newsletters. The other pages of the site also have other forms and all…
-
3
votes2
answers94
viewsJquery event in the first input runs on all others
Hello, I have a problem with inputs, see the code below: // fixar descrição do campo var campo = $('.campo-formulario'); var descricao = $('.descricao-campo'); campo.on('input',function(){…
-
3
votes1
answer58
viewsRotate spans in the LI
I have the code down that works normally. But it contains a flaw. If you’ll notice, the first and the third div’s are without class. Does that mean that don’t want rotate your spans. But, not…
-
3
votes2
answers1470
viewsNew Google Sites - Embed HTML, Javascript and Google Sheets
I’m trying to use the object "Embed" from the new Google Sites I select "Enter Code" option and put the code below and when executed the following error message appears: "Referenceerror:…
-
3
votes1
answer2422
viewsHow to move a button in CSS?
Good morning! I am facing problems with positioning a CSS button. I wanted to move each of these four buttons to a specific side, but I don’t know how. .button { background-color: #4CAF50; /* Green…
-
3
votes2
answers186
viewsHow to place zigzag edge on an image using css?
I would like to add a zig-zag edge transparent for images on my website. In this image I made a mere demo in Photoshop: Note: the pink border of the image I want it to be transparent. For now this…
-
3
votes1
answer77
viewsFunction createelement
Looking at the code below I have 3 buttons with the function "content()" right? This function creates a div in which you will receive the value of the text field next to the button. When I click on…
-
3
votes2
answers688
viewsCreation of buttons with bootstrap
I need to create buttons with the bootstrap style similar to the image below. You can find the buttons: https://fontawesome.com/ However I can arrive only in this result: I use the following code:…
-
3
votes1
answer48
viewsCreate div among others instead of at the end with Javascript
I managed to create the new div at the end of div id pai with .appendChild: <div id="pai"> <div id="filho1">texto qualquer 1</div> <div id="filho2">texto qualquer…
-
3
votes0
answers240
viewsWhat am I doing wrong?
Hello, good(a) day, afternoon or night, I would like you to help me answer what I am doing wrong in my code, because, I have already tried to redo and do everything and more, and I am not…
-
3
votes2
answers1765
viewsPosition an image correctly within a div
Good morning, I’m trying to solve a problem: I have a circular div and when I insert an image it gets cropped: html <div class="side-menu-user-info"> <div class="side-menu-user-photo">…
-
3
votes3
answers1959
viewsHow to determine which characters can enter the input?
I have a login form and I have to limit the input to receive characters with the following conditions: A capital letter A number A Special Character A minimum of 8 characters Special characters can…
-
3
votes2
answers90
viewsVertical alignment of a div
Hello, I’m mounting a screen that for now is as follows: However, for this "vertical alignment" this div is, I am using a margin-top with percentage to help, but I believe that is not the right way…
-
3
votes1
answer847
viewsHow to add an image next to another HTML usage
I would like to make a website with the image template below. I started the code and managed to formulate the first column, but I’m not able to add the second column at the top of the site. The code…
-
3
votes1
answer1038
viewsHow to insert this "burger" menu into my already made retractable menu
I’m having trouble inserting an animated hamburger side menu on my already ready site. I have the base of a site with a fixed header and a retractable menu that opens laterally, and the icon to open…
-
3
votes4
answers231
viewsHow many times should I use the Strong element to highlight a word as important?
I’m studying HTML got the following question: <h2>Elemento <strong>div</strong></h2> O elemento <strong>div</strong> também define uma sessão genérica de uma…
-
3
votes1
answer864
viewsChange the position of text only in html
I would like to do something like a media screen in html, I would like on the phone the button to appear the filters appear below the whistle but not on computer, how can I do this? CELL PHONE:…
-
3
votes1
answer389
viewsGeometric shape with css
I have researched on the subject, but I don’t know much about css and I’m having doubts about how to make this way. One of the ways I found it was this way HTML and CSS .coracao { position:…
-
3
votes1
answer61
viewsRolling footer (overflow Hidden)
Hello, I am creating an html code with bootstrap in which I am adding a footer, but when I put the footer, my page adds a scrollbar to be able to view the footer... it is just a copyright and I…
-
3
votes1
answer317
viewsSelect multiple options in select
I have this select: <div> <label for="Indicar">Colaborador: </label> <select class="form-control" name="Notas" id="Notas26"> <option></option> <?php $sql =…
-
3
votes1
answer99
views"For" 'lagando' interface
I have a JSON I’m using to generate an HTML in a app Cordova as follows: function gerarLista(lista) { strHtml = ""; for(item in lista) { strHtml += '<div class="item">'; strHtml += '<div…
-
3
votes1
answer1548
viewsHow do I place Text inside a Shape made with CSS? Is it possible to place text inside a circle?
I know CSS evolves slowly, but I’ve seen a lot of new things out there, especially with the more modern browsers that accept very new properties. My question is whether there is already any way to…
-
3
votes3
answers93
viewsAlignment of photons
I’m trying to align my form this way: But I can’t get the inputs Yes and No to line up on the right. I tried to use bootstrap and split it into cols but unsuccessfully as well. Follows html and css…
-
3
votes1
answer47
viewsWhat is the difference between 'CSS Filter Effects' and 'CSS filter() Function'?
I’m researching about browser support for the property filter of CSS and the tag <filter> of SVG. My search link: https://caniuse.com/#search=filter What’s the difference between CSS Filter…
-
3
votes2
answers37
viewsDoubt as to whether to exclude specific elements of the clone() function
I have a doubt about the exclusion of specific elements when I use the function clone(). I wonder if I can rule out the elements <b> when I call the function. That is, what is written "Item",…
-
3
votes0
answers98
viewsProblem when displaying image inside modal
I need to display a list of selected images in a modal, but it is displayed only after clicking (focusing) somewhere in the modal. Excerpts from the code: HTML: <label>Imagens: </label>…
-
3
votes2
answers689
viewsDisable link with jquery
Good afternoon, you guys, I’m having a problem trying to disable a link using jquery. The problem is this, There is a table that lists the types of roles a user can have in the system that presents…
-
3
votes2
answers2705
viewsHow to store an input value in a variable and show it
I’m trying to get a value from some inputs with Javascript to show them in a specific order. <form id="formulario" name="" method="" action=""> <p><h2 id="titulo-form">Dados do…
-
3
votes1
answer82
viewsMake if in an HTML tag to add or not attribute "checked"
I’m developing with the .Net Core Razor and I’m setting a string in my GET and I need that, according to what this string (in the case of "true" or "false"), checkbox whether or not marked. To…
-
3
votes2
answers119
viewsCalendar showing the difference between two dates
I want to make a difference calculator between dates. One that can make a difference in days, hours, etc. Example: Initial - 07/17/2019 for Final - 07/29/2020. How long (in days) is the starting…