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
answer62
viewsconvert content into input
Galera use a javascript script to convert everything I type, inside the input to uppercase. But I have a specific input where I can’t change its content. How can I do this? Follows the code: //…
-
2
votes1
answer857
viewsCSS Style input range
I need to do an input range for age group definition this way: I thought I’d do the "big" bar with this 20-by-20 fixed strip, or a non-standard bar like in this example, but I’m new and I don’t…
-
2
votes1
answer435
viewsRemove "scratches" from a textarea
I have a textarea and would like to know how to remove these "scratches":…
-
2
votes1
answer1575
viewsOpen Input File with Javascript
I have a form with only one input of the kind file and a button submit. I want to get the contents of that file txt and save in a variable, this without giving refresh and without doing upload from…
-
2
votes3
answers16590
viewsAlign side-by-side fields in a form
I’m having trouble aligning 2 fields side by side in a form, the first case would be a select next to an input and, the other, two inputs. Ex: HTML: <li> <label>Selecione…
-
2
votes1
answer1874
viewsScheduling System by Date
I have a scheduling system, where I have to return the dates and times available (not registered at the bank obviously) for a new schedule with those available dates and times. I don’t have a sense…
-
2
votes1
answer1940
viewsReal-time password verification with javascript and html
Good night I would like a help of what would be a real-time password check in javascript and html, I think of two text boxes and a message below that would indicate something like "divergent…
-
2
votes1
answer556
viewsText box execute function when it is externally assigned a value to it in Javascript and HTML
I wanted to make a text box run a function when I assign a value to it by code, without user interaction. I’ve tried the events onChange, onInput, onKeypress, but they all depend on the user’s…
-
2
votes2
answers78
viewsHow to Style a Video Duration in Screenshot
How Can I Create CSS Rule to Show Video Duration in Screenshot Example This is the effect I try to give on my thumbnails. Assign An Markup on Screen Shot displaying the duration of a video I don’t…
-
2
votes0
answers25
viewsRender a directive
I have a directive that when I load the page it is rendered, the content of this directive will undergo some changes during use. I wanted a way that by pressing a button to reload this directive to…
-
2
votes1
answer1773
viewsHow do I place social media links to share a post link?
I have a question. I don’t know much about ASP.Net, but a friend of mine asked for help to implement some social networking buttons on his TCC site. His TCC is a news portal, like any other. He…
-
2
votes0
answers27
viewsProblem with php special character
I have this script that separates a string by character. <?php $key = "VÔMITOS"; for( $i=0; $i < $n_caracteres ; $i++ ){ print $key[$i]."\n"; } ?> And it returns the following error: V M I…
-
2
votes3
answers126
viewsTransition from Javascript Evolution to Cross Browser
I see this need, that people like me self-taught, try to understand. The point is - Nowadays some Features are already supported by major browsers HTML5, CSS3, DOM, Apis and Ecmascript... being very…
-
2
votes2
answers3898
viewsHow to make a date field containing only Month and Year Html
I need a date field containing only Month and Year Html preference that enables on the screen something like a calendar containing only months and years. Obs: I’m using Angularjs, javascript…
-
2
votes4
answers4366
viewsHow to ensure an image is centralized and responsive
Good morning! I wonder how I can do with CSS so that an image is centered in a way that is responsive in all monitors.
-
2
votes2
answers6493
viewsAlign DIVS in CENTER
I’m working with bootstrap + codeigniter and I can’t align the products in the center of a div. I would like the blue items in the center to be aligned by the center. HTML/PHP <div…
-
2
votes2
answers96
viewsSave a page from an Htmlpage (java)
I have a method that generates an Htmlpage, I would like to save to disk. public void gerarPaginaIndex() { try { final HtmlPage paginaIndex = WebClientFactory.getInstance().getPage(URL_INICIAL);…
-
2
votes1
answer2945
viewsHow to take the value of a select and fill in an input?
<?php $con=mysql_connect("localhost","root","") or die("Failed to connect with database!!!!"); mysql_select_db("bancoteste", $con); $sth = mysql_query("SELECT * FROM pessoa"); ?> <!DOCTYPE…
-
2
votes2
answers1465
viewsHow do I locate the right origin of an event in a complex object via Javascript?
If I create a button... <button id="btn" value="fui eu">Clique Aqui</button> the event... document.getElementById("btn").onclick = function(e){ console.log("Quem clicou "+e.target.value)…
-
2
votes1
answer1073
viewsExport Datatables
I use the plugin Jquery Datatables, and would like to export the data (CSV, Excel, PDF...) of the tables through custom buttons, instead of the buttons that the plugin itself offers, will it be…
-
2
votes1
answer556
viewsPassing BD query by Node for Array in Javascript Front-end
Hello, recently I’m studying a little web programming (I’m very early) and I ended up falling into Node.js, I’m finding everything amazing I’m just having a certain problem, I want to access mysql…
-
2
votes1
answer6846
viewsCreate a textarea with text editing options
I need to put a textarea where the person can edit the text. Ex: choose font size, apply bold, change text color, add photos along with text (one paragraph, 1 photo, plus a paragraph, 2 photos). Can…
-
2
votes3
answers404
viewsAjax Requests - Tips
The thing is, I’d like a suggestion and tip to make a correct system. For example, today I use jquery and many requests $.ajax, this is to popular some data, to send form data and etc. But I…
-
2
votes1
answer1071
viewsHow to save data from an HTML page to a file through Javascript?
I don’t know anything about this, and an application has come up here in the service where I need to get the data from a page HTML, and generate a TXT, or a PDF , the save will be on the machine…
-
2
votes2
answers4123
viewsHow to make google reCAPTCHA mandatory "required"
Well, I implemented google reCAPTCHA in the forms of my site, working normal, but it is possible to send the forms without selecting the captcha, as I make it a mandatory field before Submit as a…
-
2
votes1
answer64
viewsAutosize divs with div overflow Hide between them
I have 3 inline-flex Ivs, one on the other side, I need the left and right to be the content size (autosize) and the center to be the size that remains, but with overflow Id, I searched in…
-
2
votes2
answers612
viewsJoin equal records in an HTML table
I have a table that returns several records. Table Code: <table> <thead> <tr> <th>N° Prog</th> <th>Data Opr</th> <th>Origem</th>…
-
2
votes3
answers1523
viewsHow to print Javascript variable value in HTML tag?
I’d like to limit the selection of input date this way, but it’s not working. <script type="text/javascript"> var data = new Date(); var dia = data.getDate(); var mes = data.getMonth(); var…
-
2
votes2
answers8130
viewsIs it possible to read a. txt file in Javascript?
If possible, how would I do that? I have a file called version., and I need Javascript to read it and show its content on the screen. Does anyone have any idea how they would do that? PS: Please…
-
2
votes2
answers1689
viewsChange the color of a word in a still-editing textarea
How do I make sure that every time the browser finds a "reserved word" in textarea, it automatically changes her color. I want to know to make a syntax highlight.
-
2
votes1
answer2057
viewsCall php file without leaving the page with HTML
I would like to make a button with the < a > html tag to call an external php code. Example <a href="arquivo.php"> In which the.php file would be just a few commands, which I would like…
-
2
votes1
answer4421
viewsTag thead pinned at the top and tbody with scroll bar in table in HTML
I want a table with the tag thead fixed at the top and tbody with a scroll vertically, I found some solutions that use only CSS, but use the property display, removing the default behavior from the…
-
2
votes2
answers6499
viewsHow to make it impossible to select other checkboxes when selecting a checkbox?
I have these 3 checkbox <td style="background-color: #D6FAFA"><input type="checkbox" name="box2" id="ok" /></td> <td style="background-color: #D6FAFA"><input…
-
2
votes1
answer121
viewsMounting an html frame from a php array
The tables: Ciencias (ex: Mathematics, Biology, Chemistry). Areas (e.g.: Algebra I, Biochemistry, Botany, Chemical Bonding). Exercises (e.g.: Water, Algae, Bryophytes, Progressions, Chemical Bonds).…
-
2
votes1
answer40
viewsShould I create a form for each row/record of that datatable?
In a hypothetical situation with a datatable, asynchronously will be made a swith of ativo/inativo for the record. I must create a form for each row/record of this datatable? Is it semantically…
htmlasked 8 years, 7 months ago Marcelo de Andrade 7,261 -
2
votes2
answers285
viewsHow to align text with the image when the image has a vertical format
I have the following CSS: .logos { max-width:1024px; vertical-align:middle; align-items: center; justify-content: center; margin:auto; } .logos img { max-width: 100%; max-height: 100%; } .logos…
-
2
votes2
answers2094
viewsHow to create a search box?
I wish to put on my website a search box of words and I don’t know how to do it, I’ve tried several examples and none worked! I need this search box because my site is very extensive and would…
-
2
votes1
answer1172
viewsHow to place an image next to each other in a gallery?
I am creating a gallery on my site using html and formatting in css, I put each image in a div and used the tag float so that in the gallery view one image would be next to the other. But this…
-
2
votes0
answers256
viewsMount a javascript ruler with array
I need to assemble a ruler like the drawing. I’m having trouble finding a logic so I’d like a help. Setting: There are two arrays (one with temperature data and the other with pressure data). I need…
-
2
votes1
answer118
viewsReact.js Failure Manipulating Events
I’m starting to learn React.js by watching some videos, tutorials and documentation. However, I am having a problem with my code in Google Chrome appears like this: And in Firefox neither appears…
-
2
votes1
answer756
viewsHow to open pdf that is located in a folder in the project in html?
I’m trying to open a pdf file that is located in a folder within the project, but it’s not working. I followed some suggestions and tried that: <a…
-
2
votes1
answer862
viewsGet SRC attribute value of an image in a string
I have a text where there are several registered images and the problem is this: only this tag img I know the name of id and through this id I need to know the address of the image on src. Example:…
-
2
votes2
answers83
viewsCount options disabled from a select with jquery
Boas, how can I count options with the disabled option selected and efficiently with jquery?
-
2
votes1
answer59
viewsWorking with <tr><td> to optimize Jquery
I want to study more about <table> <tr> <td> etc, to optimize my projects. Example: I have 4 <tr> with 2 <td> each, when applying a formula in jQuery for example, add…
-
2
votes1
answer255
viewsHow do I make the notification appear to allow Flash Player?
I have a site in PHP, and in some directories I need the user to be with the Flash Player enabled, so I seek to do something like this. Any place I click on the image field and the button causes the…
htmlasked 7 years, 4 months ago Giovany Henrique 59 -
2
votes1
answer507
viewsHow to Format Each HTML Tag with Its Attributes in Assorted Colors?
A "picture" says more than many words is not true!? Then I invite you to see the: Example In this image we see some "tags" formatted in colors "red(red), brown(Maroon) and blue(Skyblue)" What I want…
-
2
votes2
answers282
viewsHow to execute a function in ajax when opening the page?
I have the following function in Ajax: $.ajax({ type: "POST", url: "tra.php", data: {}, dataType: 'json', suceess: function(Last) { line.originalData[0].push(Last); line.originalData[0].shift();…
-
2
votes2
answers631
viewsUpdate div with checkbox value marked
I have these checkboxes on my page <input type="checkbox" name="dezenas[]" value="01" /> <input type="checkbox" name="dezenas[]" value="02" /> <input type="checkbox" name="dezenas[]"…
-
2
votes1
answer535
viewsDate Picker does not appear
Is the following I am trying to show a date Picker in a form but it does not appear my question is the following is possible to put the date Picker in a bootstrap modal? is that I outside the modal…
-
2
votes2
answers824
viewsDisabled HTML and Jquery property
Someone knows why they are not disabling the (disabled) property in jquery. That is, when you click the button.I want you to be (disabled=false) $(document).ready(function(){…