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
answer604
viewsStore Variable within a While
I’m having a simple doubt but it’s cracking my head: I have a form where there are several checkbox, the checkbox value is an id number, I would like to create something that when the user selects a…
-
2
votes1
answer661
viewsReplace text with HTML when it contains value in DIV
I got the divs: <div class="mensagem"> <div class="texto-mensagem">:D, :( Olá Mundo!</div> </div> I want the results to print this: <div class="mensagem"> <div…
-
2
votes3
answers4198
viewsAlign image with text
How can I have a result like this? I need to add those lines like in the image, and leave Tags (which is an image) aligned with the text, as in the example. <div> <img src="<?php echo…
-
2
votes1
answer255
viewsView HTML with TWIG
I’m using TWIG in a project of mine but I’m not able to display a string that has Bold or Italic, it simply ignores. Other HTML commands are normally displayed. Example: {{ 'Ao…
-
2
votes3
answers98
viewsSearch by selection field
I am creating filters to search for products, having all the products visible, I would like to know how I can make a selection field and by the category that the user chose would only appear…
-
2
votes3
answers13476
viewsHow to feed an input with a get variable in php
Hello everyone all right I hope so, I’m with a relatively simple doubt, what I’m wanting is to use a file to make insertion and also change in php regarding the insertion is trackilo, well what I…
-
2
votes1
answer771
viewsHow to change the menu position using the scrollTo function?
I’m making a site and created a menu with anchor that has the effect of scroll with Javascript. So far so good, the only problem is that I need that when Javascript goes into action the content…
-
2
votes1
answer334
viewsCheck all just selects the first foreach value
Good people, I have the following code, and he was supposed to select all the values inside the foreach, but instead of doing it just selects the first value.. I tried to make a test of Submit that…
-
2
votes1
answer1983
viewsInternet Explorer restricted script execution
Whenever I open the HTML page in IE the following message appears to me: internet explorer has restricted the execution of activex scripts or controls For the page to appear correctly I have to…
-
2
votes1
answer1528
viewsCarousel Bootstrap
Hello, I wanted to know how to exchange these indicators, instead of buttons for texts, follow the code below: <div id="myCarousel" class="carousel slide" data-interval="3000"…
-
2
votes2
answers1030
viewsWhat are the meta tags that should not be missing in the header of a good site?
What are the meta tags that should not be missing in the header of a good site and why? Note: I’m not asking what is meta tags, but what are. The question What are <head> meta tags and what…
htmlasked 9 years, 11 months ago Guilherme de Jesus Santos 6,566 -
2
votes3
answers55998
viewsRun php function with onclick
I want to know how I can run a php function with the onclick event on an element a, taking as an example: <a href="">Teste onclick</a> And the function: function testeOnclick() { echo…
-
2
votes3
answers145
viewsProblems when displaying javascript string
I have the following code: $(function(){ var curso = controller.getNomeCurso(); $("#curso").text(curso); }); The problem is in line 18, because I cannot display values with special characters…
-
2
votes1
answer66
viewsInherit text from element
Without using JS I need a simple example of how to use variables in HTML5 elements to present their content. In the Hover action, the pointed element should be highlighted and pass the text to the…
-
2
votes1
answer228
viewsSort data with google Chart
I have the following google chart Chart: https://jsfiddle.net/ektcghyk/ I wanted to sort the left columns as follows: Basic, Below Basic, Proficient and Advanced. Currently it is out of order, there…
-
2
votes1
answer1307
viewsDifficulties connecting Javascript with HTML
A few months ago I took a course to insert myself in the job market as "Front End", I learned what was necessary, but now to put into practice Javascript is complicated, because in theory I know a…
-
2
votes2
answers122
viewsAdapt script that uses checkbox for radio
Good morning, I have the following code: function exibe() { var tipo = "${mainForm.tipo}"; var man_tipo = "${mainForm.man_tipo}"; if ((man_tipo == 'B' && tipo.search('V').toFixed(0) < 0))…
-
2
votes1
answer350
viewsDesktop applications developed in HTML CSS and Javascript
I have a MVC web application on .Net. I need to migrate there to desktop. However I would like to keep my application with Web Views. I know that for Android app and IOS it is possible to reuse the…
javascript c# html css desktop-applicationasked 9 years, 10 months ago Luã Govinda Mendes Souza 1,072 -
2
votes2
answers159
views -
2
votes1
answer269
viewsScript to Calculate By Dropdown without onclick
I need that in the script below, when selecting the dropdown it makes the calculation automatically without having to click the button calcular. Another thing I wanted is when I marked the checkbox…
-
2
votes1
answer797
viewsError printing echo php in div
I’m an amateur programmer and I’m having a problem printing an eco php inside a div. I have a file that when accessed (only once) will start the database installation:…
-
2
votes2
answers415
viewsHTML file download Excel
I have a problem with downloading excel. In PDF I have so: <a href="RH/Exemplo.PDF"> tried to put the same way in excel and does not work. <a href="RH/Exemplo.xlsx"><img…
-
2
votes5
answers17869
viewsHow to align the Left fields of an Html table?
I cannot align my Labels (Razor) to the left of my html table with Visual Studio! <table cellspacing="6"> <tr > <td > @Html.Label("Cep: ") </td> <td >…
-
2
votes4
answers6560
viewsTelephone and CPF masks in Textfield
How can I put masks for phone and CPF on text_field? In app/views/layouts/application: <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript"…
-
2
votes0
answers125
viewsMulti-platform mobile development
I am developer . Net (MVC, WPF, MCF) and need to develop a project mobile cross-platform, I did a search and verified that there are several framework’s that resolve the issue as Phonegap, Apache…
-
2
votes1
answer97
viewsDecrease physical size when displaying image
I need a way to compress the size of an image that I receive from a third party, that is, I receive the link with the path of an image and I have to show it on my website. The main problem is that…
-
2
votes2
answers11175
viewsHow to open a screen with a pre-filled form with PHP and HTML?
Good night to you all, i would like to know how to open a form whose fields are already pre-filled with user data (resulting from a search in the database), being in charge of it only edit the…
-
2
votes1
answer1943
viewsWhat is the use of window.history.replaceState?
Hi, I’d like to know what the following code does: window.history.replaceState
-
2
votes3
answers3573
viewsHow to display only half of the div background-color
I need you to show only 50% of the DIV’s BG, so? #coberturas legend{ font-family: 'Open Sans', Arial, Helvetica, sans-serif; padding:10px 20px; display:block; position:absolute; bottom:0;…
-
2
votes1
answer2301
viewsNot receiving negative numbers in an input
I have the following code: http://jsfiddle.net/ntywf/1987/ $(document).ready(function () { $('input').keyup(function() { var $th = $(this).val(); $th = $th.replace(/[-]/g, ""); $(this).val($th)…
-
2
votes2
answers7718
viewsView html and css alert by javascript
Good Morning, I am creating a form in html and javascript for validation, my idea is to create a success or failure alert with html and css (cute and etc), but I do not know how to "call" give a…
-
2
votes2
answers83
viewsDisplay None helps resolve slowness on an onepage site?
The site is onepage and is separated by the respective article and Section. When scrolling, elements that are not needed (article) continue on stage but outside the limits of the browser. Due to the…
-
2
votes1
answer50
viewsHow to get variable from an HTML form?
I have an HTML file (html1) to fill user and pass, and call a PHP file (php1) to authenticate the values. But I need the user in another PHP file (php2) how to call the value of user in the php2…
-
2
votes2
answers141
viewsHow to hide a div only in firefox
Hello, In what way is it possible to hide a <div> only in Firefox and display in other browsers?
-
2
votes1
answer95
viewsOne of the page elements moves by clicking on the other!
It is not Javascript that is doing this that I will quote below with my page, but yes, the CSS itself, I do not know what this is, I tried to solve 'without gambiarras', but it did not work :( See…
-
2
votes3
answers7203
viewsPass Javascript parameter to PHP
I want to pass 2 (two) parameters from my javascript page to a PHP page. I’ve searched the net, and only find this logic when PHP is on the same javascript page. Does anyone know if this is…
-
2
votes1
answer1024
viewsChange the background of a Scroll div
Hello, I’ve tried several ways but so far I haven’t been able to create a bar similar to the one on the site http://www.socket.io that moves as the page goes down. *I mean the galaxy bar at the top…
-
2
votes4
answers306
viewsHow to link to table?
I have a Table in PHP and in each tr I need a link <?php $con = mysqli_connect("localhost","root","", "saber"); mysqli_set_charset($con,"utf8"); $result = mysqli_query($con,"select id,nome,vista…
-
2
votes1
answer589
viewsHow to upload PHP data from a Form with text and image support?
In my project I have on a page a form for data collection that will be inserted in the database and in a folder of the server. My problem is that in this form I have a support for uploading images.…
-
2
votes2
answers810
viewsWhich jQuery event to use for database query?
jQuery(function($){ // Chamando as funções $('#busca-cidades').keyup(function(){ ... I am making a query in the database and returning this query formatted with html/css and the query is in…
-
2
votes2
answers1985
viewsDynamic data display with PHP
I am developing a website, in which I have several products, for example and a button for each of them. When I click the button, it opens a modal (Bootstrap). But, I want to generate the content of…
-
2
votes1
answer229
viewsOpen a <span> when the image loaded by Jquery is loaded
This is the Jquery code: What I want is that when I click the loaded image it displays a span with text at the end of the image. (function(){ /* Private variables */ var overlay = $('<div…
-
2
votes2
answers898
viewsFormat tabs from an HTML menu
I created a tab but I would like to make a few minor changes that I cannot. I would like to replace this area for example with circles instead of text: How can I do it? $(document).ready(function()…
-
2
votes1
answer515
viewsProblem with svg background
I’m studying a little bit about svg And I found the giant shapes on the sites amazing, but I’m having a really hard time reproducing correctly. I created a 693x768 shape that will cut a page, but I…
-
2
votes3
answers1636
viewsDownload Counter
I wonder if someone could help me do the following: I have a download site where I want to do a download counter for each page and when clicked, update the number of downloads on the page…
-
2
votes1
answer292
viewsTabulation via Jquery
I have a field with the class "codigoBarra" where will be used barcode reader to fill it, at the end of reading with the reader it generates an n, I already managed to capture this and treat,…
-
2
votes4
answers3635
viewsHow to center a div with variable size and position Absolute?
I have a question that is consuming me a lot of time, next: I need to center the counter of the image below, but it needs to be at the bottom of the screen (with position:absolute) and the div of it…
-
2
votes1
answer391
viewsProblem with include.php positioning
I’m having a problem with the positioning of the footer I made with include.php. I created a file include.php, for now the only thing that has in it is a box where the footer will be, because I’m…
-
2
votes2
answers1084
viewsHow to loop posts in Wordpress?
Guys I need to create that provision of articles in my Wordpress loop and do not know how I could do. I know it will require some instructions in PHP and some implementations of Bootstrap, I’m using…
-
2
votes1
answer7098
viewsHow to go to an anchor on a page with little content?
I’m creating a page using Bootstrap and would like to put some anchors in specific locations, it turns out that as the page has little content, the element that represents the anchor does not go to…