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
-
1
votes1
answer112
viewsReturn table row ID within Function JS
i have the following script below: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>A Pen by Jason</title> <link rel='stylesheet'…
-
1
votes1
answer266
viewsNavbar inside an image
Hi, I’m doing a navbar and I wanted all the buttons to stay inside an image like this: I went on a lot of website but none specifically talked about this topic, so if anyone can help me I’d…
-
1
votes1
answer79
viewsHow can I put another slide like this without conflicts and the two work?
Javascript <script type="text/javascript"> function setaImagem(){ var settings = { primeiraImg: function(){ elemento = document.querySelector("#slider a:first-child");…
-
1
votes1
answer2718
viewsJavascript calculator select operation type
I’m having a problem with this calculator, the first image works correctly, but in the second image I’m not getting the type of arithmetic operation. Follow the code from the second image. function…
-
1
votes1
answer34
viewsText leaving the table after adding images
I have a table composed of 5 rows and 3 columns in which the first and third columns are being filled by gifs, and the second column is being filled by text. My problem is this: when I add the…
-
1
votes2
answers53
viewsButtons don’t change color
The buttons were to be blue according to the .rounded-button.blue, but they’re black and only the edge works. What’s wrong? .client-buttons { position: absolute; top: 12px; left: 12px; z-index: 100;…
-
1
votes2
answers67
viewsselect input according to previous option
Eai, someone who knows jquery or js, how do I show a text field according to the option of a previous select? And if the user chooses no contact, how do I "hide" the input? Thank you !…
-
1
votes1
answer1164
viewsWhat is the appropriate use of display: table?
As its name says, the display table makes the element (Divs, sections, etc.) have a very similar behavior to a table with the tag <table>, where we can use child elements with the property…
-
1
votes2
answers171
viewsNews page | Picture and texo next door
Good afternoon I’m building a news page but I’m having a problem with not being able to add text next to the image and I’m not getting why. I am using bootstrap 4 and I already have the page like…
-
1
votes1
answer179
viewsSend several checkbox values to the database
I have a logic problem, actually and I can’t evolve what I need to do with a code. Follows description of the problem: Problem: I have a list of products and need to inform on a screen if the…
-
1
votes1
answer132
viewsAdd link in <a onclick
The page is this The menus are made with Anchors and I wanted to add a link to redirect to an external page in exactly the same place. I tried to add one but without success, I have knowledge of…
-
1
votes2
answers92
viewsHow to back a label against a Checkbox
Sorry for the simplicity of the problem, but I don’t know how to do it properly... I need to align the second label according to the image below where I indicated red. It needs to be indented and…
-
1
votes1
answer156
viewsThe radio button is behaving like a checkbox and does not allow selecting or unchecking the option
function transformar(){ var converter = parseFloat(document.getElementById('converter').value); var resposta = document.getElementById('resposta'); …
-
1
votes1
answer487
viewsChange placeholder by clicking the radio
I’m new to JS, and I would like to click on a radio and the placeholder would change according to the radio clicked, I did this way but it doesn’t work. Here is my Modal: <!-- Button to Open the…
-
1
votes1
answer272
viewsDifferent forms on the same line
I have two forms in my code, and HTML gave a line break between the two. I would like both to be printed side by side, to save screen space. I’d like to know how to do this using CSS or Bootstrap 3.…
-
1
votes2
answers157
viewsAlign button inside Alert
The needing leaves a button lining inside the boostrap "Alert" element. I tried to do this with the "pull-right" class, but half the button is outside the element. Someone can help me? <script…
-
1
votes2
answers55
viewsJavascript does not change the <div>
Hello, I have a problem with my Javascript code, I was doing an exercise but my code does not change the content of a div called "res". I already debugged the code and gave the following error: var…
-
1
votes1
answer283
viewsAdd variable inside tinymce editor
I’m using the https://www.tiny.cloud/ to create a text editor. At the time of editing, it is necessary to add variables, which at the time of printing will be exchanged for the value corresponding…
-
1
votes1
answer139
viewsError setting cookies with expiry date with javascript "When browsing session ends"
I have the following code: function createCookie(name,value) { name = "testeeee"; value = "conteudo do teseeee"; var date = new Date(); date.setTime(date.getTime()+(720*60*60*1000)); var expires =…
-
1
votes1
answer54
viewsButton continue loading while loading PHP
I have an html page, where when the button UPDATE is performed a loading action, what I would like to do is that this loading only finished running when the file PHP finished running, because the…
-
1
votes2
answers511
viewsmargin-top has no effect on text within the div
I’m trying to apply margin-top in tag p of my text with the intention that it should come down, but I do not know why it is not working. Every time I apply the margin-top, the effect ends up being…
-
1
votes1
answer49
viewsdownload by changing href dynamically
I’m hoping that by clicking the download button, js will access the endpoint that has the correct file path and start the download. What I did until it works, but it turns out he’s always "late".…
-
1
votes2
answers139
views -
1
votes0
answers17
viewsCanvas Constellation Interactive Mobile
Good afternoon, I have a code from a canvas Constellation that interacts with the mouseover pulling the links from the stars to next to the mouse, and would like to do in mobile the same thing, for…
-
1
votes1
answer802
viewsPseudoclass :not() does not work with combinator
I have this code html: <article> <p class="ola"> cafe </p> <p>Primeiro parágrafo</p> <p>Segundo parágrafo</p> <aside> <h1>Informações</h1>…
-
1
votes0
answers90
viewsiframe with problems in mobile version and resolution changed
I am developing my first website and am having some problems with a page; specifically the Portfolio page. To create a catalog menu, I used an iframe with the images and created a menu to direct the…
-
1
votes1
answer57
viewsHelp - Circular DIV with responsive background image
Dear friends, good afternoon! I need help to create a div with background image. I made that code: .this-image{ //border: 2px solid #AD235E; border-radius: 150px; width: 200px; height: 190px;…
-
1
votes1
answer606
viewsTranslation of html page
I am creating a Single page Application and in this project I am doing the translation of texts. Javascript var arrLang = {…
-
1
votes1
answer47
viewsJquery selectors - Find and swap Css class of an element
I am creating a Timeline and would like to apply an iterativity when I click on each card/node. I would like to click (expand card) on the link in the tag <a> whose css class is…
-
1
votes1
answer442
viewsInsert Html into Html without changing Styles
I am capturing emails to be shown on screen, in html. But my page has some styles already applied, so I include html extracted from the email body. The styles present in this html change the one on…
-
1
votes1
answer384
viewsSave image captured by webcam from an html page with javascript
Hello, I made a capture with my webcam of an image using javascript and made an appendchild of the url in a div tag in html. How do I save this image to my computer? webcam.js var player =…
-
1
votes1
answer55
viewsPost with jquery
My python endpoint is working perfectly, I’ve done tests using Postman. The problem is when Javascript will call the method Follow my Javascript code: $("#Submit").click(function() { var info =…
-
1
votes1
answer27
viewsImplement jquery script in modal box
My modalbox doesn’t run my jquerry script $(document).ready(function() { var audioElement = document.createElement('audio'); audioElement.setAttribute('src', '/teste/typewriter-2.mp3');…
-
1
votes1
answer188
viewsDesktop app, using Electron and nodejs
Hello, I wonder how I can pass the value of a field that is in (index.html) to a function that is (data-user.js). I have an application in nodejs using Electron, the main calls index.html, which…
-
1
votes1
answer430
viewsAdding an image to the html body of an email
I’m trying to do an automated sending scheme using c# . NET, my problem is time to add an image in the body of the email, in which the image does not appear. This icon appears in place of the image…
-
1
votes4
answers194
viewsExchange images with Jquery
Guys, I’m trying to change an image at the click of the button and I’m not getting it, jquery returns me this error: I’m trying to make the exchange using the date attribute. My Jquery code:…
-
1
votes3
answers70
viewsWhen opening a div hide the div anteiror
I will have several Ivs, and I intend to click the button to open the div of that button and close the previous one. I am doing so: function mostraDiv(obj) { var el =…
-
1
votes1
answer44
viewsClear field when selecting list
I’m still new in this area of programming and I’m hitting myself to tweak a form. I have a selection to do in a field, where if the user chooses mail, the email field "which is already filled"…
-
1
votes1
answer41
viewsValidation Input Aspnetmvc
As I do to validate in the Exit of an Input, I already have the function that returns bool, if it returns false, I can’t let go of the seller.snome field and present an alert message. <div…
-
1
votes1
answer248
viewsWrite HTML and PHP in the same line
<p> " <?=$testemunhos[$i]['testemunho']?> " <p> I want to write in the same line, but this getting so and I wanted it like this " Lorem ipsum dolor sit Amet, consectetur adipiscing…
-
1
votes1
answer26
viewsCreate a button to register in the database each day
I’m creating my table this way: <div id="spoiler8" class="esconde"> <table class="table table-responsive" id="employee_table8"> <h1 style="font-size:…
-
1
votes1
answer51
viewsJson how to present in a table
Good morning, I have a return in Json like this: { "dados": [ { "id": "1", "nome": "Geraldo", "login": "geraldo", "nivel": "1", "status": "1", "email": "[email protected]" }, { "id": "2", "nome":…
-
1
votes2
answers241
viewsDelete button crashes
I have two buttons on my table, the edit and delete button: <td><button type="button" name="edit" id="<?php echo $produto2["Id"]; ?>" data-target="#add_data_Modal2" class="btn…
-
1
votes1
answer954
viewsHow to take the value of a selected line from an html table
I would like to click on a row of the table to return the value of the selected column only. My code brings all values of the tags td however as the table will be dynamically mounted need it to…
-
1
votes2
answers2518
viewsPut navbar on the right
How to make the navbar stay on the right. It needs to be this template, because already has the logo, has the menu and when opened on mobile already appears the mobile menu. <nav class="navbar…
-
1
votes1
answer42
viewsColumns don’t line up inside Row
I’m trying to align a grid as follows: 3 columns x N rows <div class="row" style="margin-top: 150px;"> @forelse($models as $model) <div class="col-md-4" style="margin-left: 5px;">…
-
1
votes1
answer87
viewsHow to make a navbar with two logos?
I need to make a navbar that receives two Banks, one next to the other <nav class="navbar navbar-light navbar-expand-lg"> <div class="col-md-3 navbar-nav"> <a class="navbar-brand"…
-
1
votes2
answers173
viewsClick event to tag tr of a table
I have a table HTML which I fill with data I own in a database. Each tag tr of my table represents a client, disregarding tag tr header. I would like to add an event of click to the tags tr, as if…
-
1
votes3
answers654
viewsIdentify the value of a cell of the clicked line of an html table
I’m trying to identify which email tr that was clicked. My problem is that regardless of the tr that I click, always returns me the same value. Note: I would like to know the value of the cell, not…
-
1
votes2
answers153
viewsDetermine CSS property based on a javascript condition
HTML <tr class="linha"> <td class="tipoMov">Receita</td> <td>Corte de cabelo</td> <td>R$20,00</td> </tr> Javascript window.onload = function(){…