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
votes3
answers2080
viewsavoid Ubmit of a form with barcode reader
Well I have the following form: <form name="produto" method="post" action="cadastra.php"> <input name="cod" type='text'> <button type='submit'>FINALIZAR</button>…
-
2
votes1
answer1062
viewsCalculate space between Div and Body
I want to know the space between Div A’s bottom and Body’s bottom. I read about the $.offset(), but this always returns me 0. PS: I only want what appears on the screen. If the body is larger than…
-
2
votes3
answers1993
viewsExchanging TAG with Javascript
Is there a way in JS/Jquery to change a tag in HTML? For example, I have a: <div></div> And I want, let’s say I want it to become a span: <span></span> In short, to change:…
-
2
votes1
answer138
viewsI can’t place a new column inside a table
I wish you could help me to place a column (painted in yellow) as follows which is in the attached image. I leave here also my code at the moment so I can give a help: <?php $database…
-
2
votes3
answers681
viewsHow to check the ID value of a tag and how often does it repeat with Jquery?
Personal I have an excerpt of a code referring to image below In the first div shows a list of students. In the second the students that the user chooses for his group, as he clicks on each student…
-
2
votes3
answers2817
viewsview var Javascript in div html
The code <section class="content"> <span></span> <span></span> <script type="text/javascript" src="../js/purl.js"></script> <script> var vars =…
-
2
votes1
answer71
viewsCan Controller have private methods?
I have a question and wanted to hear more people’s opinion. Following the MVC, one Controller can have private methods? This doubt came to me because in my context, I have a Controller JS, and my…
-
2
votes3
answers278
viewsHow to fire a message every click in jquery?
I have a`form`to calculate the IMC index, and every click on a button displays a div message with the result of the calculation, but I want the message to be displayed a only time per click. This…
-
2
votes2
answers56
viewsField of type time or decimal, how to solve?
I have in the system that I am developing a field called flow, which can be filled either with a decimal value like 0.5 and 2.4 or with a value of time, like 15 min and 5 h. What is the best…
-
2
votes2
answers77
viewsDiv does not line up with the text
I’m trying to align the div and text side by side, but it doesn’t work at all, I’ve tried float, tb, align and nothing works someone please can give me a help. #sobre { width: 100%; height: 100%;…
-
2
votes2
answers195
viewsHow to make menu with different drawing?
Good stack galley I need to do this menu that is in wireframe, but I do not know which commands I use to leave the line diagonal. Follow the image below: NOTE: I need to do only with HTML and CSS,…
-
2
votes3
answers2104
viewsSend message after clicking Submit button
How do I identify with PHP if a Submit button was clicked? and after the click I want to send a click confirmation message. Detail all in PHP.!!! So it’s not working not <form method="POST">…
-
2
votes2
answers833
viewsFooter does not appear on the first page - Laravel Dompdf
I have the following code in my application to generate a PDF report: $head = '<html><head>' . '<title>Relatório</title><style type="text/css">' . '@page {margin: 120px…
-
2
votes1
answer62
viewsHTML5 form validations behave differently in Firefox
I was trying to find a better title for this question, but I still don’t quite know how to explain it, but come on. I have a simple form with three fields, if I miss one of them will be shown a…
-
2
votes0
answers338
viewsNavigation by Arrows in Div
I’m doing an autocomplete on jquery and ajax, the results obtained by ajax I’ll put in <div>. I wish the user could navigate with the arrow for the results, leaving the <input> and…
-
2
votes2
answers334
viewsform read database
Hello Folks I am trying to make a form read Mysql database options, however the code line below shows me only the word "Array". What is my mistake in this line? Can anyone help me. <form…
-
2
votes1
answer297
viewsOpen email client with attachment file
I am trying to open my email client (for example Outlook) with the following: <a href="mailto:[email protected]?subject=Assundo email&body=Corpo de email"> Send mail</a> Now I’d…
-
2
votes2
answers234
viewsPass menu from "normal" to "hamburger"
Hello! My question is: What is the best way to go from a normal menu, with inline-block for example, to a hamburger menu, that when you click on the icon it opens the menu items, when the resolution…
-
2
votes1
answer292
views -
2
votes1
answer270
viewsHow to create a clickable image valid for W3C?
According to the reply of question I did here, the W3C discourages the use of a tag img within a link (<a>); But this imposition of the W3C sounded a little controversial, because since I…
-
2
votes3
answers372
viewsHow to catch a class with Jquery array?
For example, in HTML, I have this: <ul class="benefits"> <li>Finalização rápida e fácil</li> <li>Múltiplos endereços de envio</li> <li>Acesso fácil a seu…
-
2
votes3
answers706
viewsHow to select value in Select
How to select a value that is not the first according to an ASP.NET variable Razor C#. <select id="MeetingFrequency" name="MeetingFrequency"> <option value="0" selected…
-
2
votes1
answer1477
viewsHow do I rotate an image with jquery?
Good is the following I have the following code: <head> <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script> </head> <img…
-
2
votes4
answers8374
viewsChange image with CSS Hover
I have two images in html and they are both in the same place on the page. What I want to do is touch the images with Hover. I hid an image with display:None and when Hover the display becomes…
-
2
votes2
answers2338
viewspass parameter to another html page
good night need help in html.... I’m not getting the parameter passed correctly to another html page. page 1 is a table that is the vacancy list. By clicking the vacancy button, make the request for…
-
2
votes1
answer2757
viewsRead JSON and print to html with Angularjs
I am trying to print the data of a JSON file in html using Angularjs, running everything through XAMPP and in my htdocs/test folder there are 3 files (index.html, main.js, test.json). The console…
-
2
votes1
answer309
viewsAccess javascript object in html form
Hello, I am facing a difficulty with my javascript code, because I can’t imagine a way in which it is possible to access the constructor functions of my Javascrip object in the HTML form. I wonder…
-
2
votes2
answers5191
viewsHTML and SQL connection
I’m designing a database where I have a table with calculated data indices from other tables. I am also designing an HTML Dashboard to expose these indexes. My database is stored on a Mysql server.…
-
2
votes0
answers33
viewsWhen using the <figure> tag
I only know that it serves to give more semantics to visual elements. My doubts are: When should we use? What are the best practices? Are there alternatives to it? When should I use them?…
htmlasked 7 years, 7 months ago Gilmar Santos 1,371 -
2
votes2
answers361
viewsApply filter to only part of image
I have an image in the background of my site and would like to apply the filter brightness throughout the image with the exception of a part as shown in the image: Any tips on how to do this? I’ve…
-
2
votes3
answers3043
viewsAssign $.ajax received value to variable
It is possible to associate a value received by $.ajax a global variable, because from these values, I need to add them and show them in another table. I tried but always interprets with local…
-
2
votes1
answer76
viewsSave page settings when reloading it
Hello, I made a web page with a night mode option through a switch. I wonder if it is possible to store the status of the switch to that person who is on the page when they enter a subpage etc.…
-
2
votes0
answers569
viewsAngular 2 mask directive does not put the mask on the screen start
Hi, I made a directive on Angular 2 to put masks on some fields, one of them the zip code. It works right, the only thing I could not do is that when loading the data in the fields of the screen the…
-
2
votes3
answers754
views<form action = ". /"> where will you go?
I am passing an ASP page to PHP and found a form where the action attribute had the following value: <form action="./">. This action value works as a <form action="#">? That is, directs…
-
2
votes1
answer92
viewsOpacity in everything except a certain DIV
Good afternoon. I need help with something. However, I don’t have a code yet. I needed something similar to an ad popup. That is, the whole screen gets 'dark' while only the div has focus. I would…
-
2
votes1
answer164
viewsHow to stack Bootstrap modals with the backdrop above the previous modal?
How would it be possible to modify the Bootstrap modal so that when there is a stack of open modals, the backdrop of each one is above the others? what I’ve observed so far? when opening a Modal,…
-
2
votes2
answers459
viewsJavascript concatenated into input name
Is there any way to concatenate a variable javascript next to a input? That one input hidden i would submit together to an HTML form For example: <script type="text/javascript"> var…
-
2
votes1
answer1566
viewsNode.js does not load js or css scripts
I’m making a chat app and I can get the page I want but this page does not load the corresponding css or js scripts, does anyone have a solution for this please? So far I’ve got this: Code:…
-
2
votes2
answers794
viewsRadio button check with BD data
I’m having trouble taking the data from the database and passing via Session to my form, all the input data is coming correctly, I just can’t pass it as check for my radios... I tested in various…
-
2
votes2
answers303
viewsHow to make a page with full blocks using bootstrap?
I need to do something with the image, using bootstrap. Has anyone ever been through it? Have any idea how to do it?…
-
2
votes3
answers1667
viewsShow input when user selects option
How do I show the name label and the name input only when the user selects the inactive option? <div> <label>Status</label> <select name="status"> <option…
-
2
votes3
answers450
viewsSocket.io chat, setting url
I would like a help with chat using socket.io, I would like to define a URL, I am not getting, I can only access through localhost:3000. For example I wanted the chat to be on the homepage of my…
-
2
votes3
answers611
viewsCalculating in Table Fields with JS
I have a table with two fields: "Product Value" and "Sale Price". Another field to define a calculation for the "Sale Price". The function only works for the first row of the table. I would like to…
-
2
votes2
answers796
viewsHow to put a json code in textarea html?
I am developing a page that displays snippets of code in JSON in a textarea, but I have seen on some sites that there is some kind of plugin for this type of display as in the "Errors / Exceptions"…
-
2
votes1
answer2702
viewsHow to change CSS style of table column when passing mouse?
How to change style CSS (backgrounc-color) of an entire column when passing the mouse, using only CSS? The table in question is as follows:: <table class="un table"> <caption>Título da…
-
2
votes2
answers1238
viewsI can’t type in input
I’m having a problem on a Landing page that I’m developing. I’m not a professional developer and I’ve never had a similar problem. I can’t type in any of the inputs you have on the page. I saw some…
-
2
votes1
answer923
viewsGenerate dynamic HTML with ASP.NET
Good people, I have a project, and I need to generate a card with dynamic HTML, pulling from an sql server. The case is as follows, I have an html CARD, all stylized. Which in this case is the code…
-
2
votes2
answers1077
viewsHow to calculate Video Time by getTime()
Hello, everybody! In the Javascript exists method so-called getTime(); as well as the getDuration(); which gives us the duration of a video in question if aggregated to the <object/> and…
-
2
votes1
answer526
viewsFunction return jQuery
Hello, I’m picking up on something very simple. I have a jQuery function that checks if there is any modal open on the page. For that he checks the class of <body> and returns 1 if there is an…
-
2
votes2
answers50
viewsOpen window 1 single time
I’m hoping that by clicking on the page a window opens and I’m using this code <script> document.onclick = function( e ){ myFunction(); } function myFunction() {…