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
-
4
votes2
answers1241
viewsStore multiple select in a single column with PHP/javascript + Mysql
I’m having trouble storing multiple select in the same table field. In this case, when filling the form and marking more than one select, it stores only one and the input quantity field that is in…
-
4
votes2
answers812
viewsInsert points into a map with an array that passes through the database
I’m creating a site where I need a map, and users fill in forms with latitude and longitude to create a point on that same map. Everything is stored in the database but I needed the name of the…
-
4
votes2
answers1054
viewsHow to identify changed value in input
How to identify if a determining value has been changed in input? I have the prototype below, however alert will be displayed according to the number of times the class="ultimo-valor" appears in the…
-
4
votes3
answers4343
viewsHow to download file without back-end
I want to force the download of a file and I’m trying these two ways. downloading on the same page: var docLocation = window.location.href + 'docs/apresentacao.pdf'; var iframe = $('<iframe…
-
4
votes3
answers21853
viewsHow to select an option in <select> via text using jQuery?
I have a <select> created in this way: <select id="animal"> <option value="0">Novilha</option> <option value="1">Bezerro</option> <option…
-
4
votes3
answers937
viewsHow to add a div or <p> inside a table
Well I have a table that I’ve assembled with css. I need to add an observation within a few lines, IE will not be in all lines. The problem is that I am not succeeding, I tried to post the doubt…
-
4
votes1
answer4550
viewsHow to zoom in on the image when the mouse hovers over it?
Like the one on that site -> https://flamengomaior.com.br/ A smooth zoom made from this site. What is the simplest way to do this? If possible in CSS/Html.…
-
4
votes2
answers37
viewsNavbar does not hide the div title when item is clicked
How do I make the fixed header not hide the elements? I’m using bootstrap 4 for a navbar. Here, for example, I have a fixed header and some Divs with titles. When I click on an item, it redirects…
-
4
votes3
answers2670
viewsTable with horizontal scrollbar
I set up a table with CSS, but I’m having a problem when reports are opened on mobile or tablet. The table gets flattened, or data gets confused. It has how to place a scroll bar horizontally, and…
-
4
votes1
answer81
viewsExcel tabs that were saved in html: how to take up
I made a spreadsheet in excel with several tabs and then saved in html because I want to use in my site. The spreadsheet tabs are at the bottom, the site user would have to scroll down to change the…
-
4
votes3
answers134
viewsExplanation of name in php
Could someone explain to me the difference and where I can change it.: $nome=$_POST['nome']; That one $nome I know it’s standard in case I use <input type="text" name="nome"> More in this…
-
4
votes3
answers3702
viewsNotice : Array to String Conversion in
I have a problem with the following code : <select name="tipoPessoa" class="form-control"> <?php $tipos = array("Pessoa Fisica","Pessoa Juridica"); $tipoSemEspaco = str_replace("…
-
4
votes2
answers7271
viewsDivs daughters extrapolam Div father
I’m trying to get the DIV father to be filled by all the DIVS daughters, but I’ve tried several things and it doesn’t work. Always ends the father DIV being extrapolated by the daughters. EDIT: I…
-
4
votes1
answer777
viewsHow to transform a string into HTML C#
I am using a component and need to load it with HTML snippet that comes in a variable. For this I created this Jquery: $(document).ready(function(){…
-
4
votes1
answer1001
viewsDo not allow insertion of a date after another date already inserted
I have an HTML form in which I give the user the possibility to enter a start date and an end date and, of course, I do not want the end date to be earlier than the start date. The inputs for the…
-
4
votes1
answer276
viewsHow to control the thickness/thickness of the tag 'strike, del, s', the famous line above the text
Today I was developing a project and I reached a point that for the first time in my life I decided to make use of the tag <strike> html. I don’t know if it was the font style I was using, but…
-
4
votes1
answer520
viewsDiagram of responsive hexagons
I found a code that assembles a set of hexagons (like a beehive) in a way that is responsive. I’ve made some adaptations to suit my purpose as a result, which is not exactly a grid. I simply added a…
-
4
votes1
answer2187
viewsconsultation of mobile operators
I started a query to know which mobile operator is pulling from a site. But I can only do it once. I would like help so that I could paste a list and it was sending requests and printing the…
-
4
votes1
answer74
viewsWhat is rel="noopener"? Should I use it on all links on my site? Can it affect SEO?
I recently noticed that the property rel of link may receive the tribute noopener, but I didn’t quite understand the advantages of using it... <a href="http://example.com" target="_blank"…
-
4
votes1
answer1936
viewsHow to create a scrolling menu?
As is done this fixed menu at the top of the page that when the user scrolls down the screen when arriving at a particular page location the menu decreases getting compact. And by turning the screen…
-
4
votes1
answer587
viewsWhat is Quirks Mode and Browser Standards Mode?
Time and again I hear the term Quirks Mode, but I never really understood what it means or what it implies in rendering the HTML / CSS document. What happens for the page to enter Quirks Mode, and…
-
4
votes3
answers2746
viewsHow to write HTML as text within a div?
For example I have the div: <div class="option" id="resposta-1" onclick="mudaConteudo()"></div> I would like to write without html recognizing as a tag but rather a text: <div…
-
4
votes2
answers624
viewsWhat is the function of the <embed> and <Object> tags in HTML5?
In the explanation on the website https://www.w3schools.com/html/html_object.asp explains how to use these tags but both do the same things, so why use one or the other they have something…
htmlasked 5 years, 11 months ago user139915 -
4
votes1
answer65
viewsHow do I make a script work in a specific browser?
How do I make a script work only in a specific browser, for example: that works only in Chrome? And the opposite: block the script from working in a specific browser? What do I have to add to the…
-
4
votes1
answer1092
viewsDownload Javascript Array on a Combobox
I would like help in this small problem, I have to do a combobox shows 5 states being loaded by an array in javascript, my code is like this. HTML <select > <option…
-
4
votes1
answer3003
viewsPrint contents of the HTML page
I would like to print a page of this format But when I print it is in this format I have a function in JS, but do not know how to solve this formatting problem CODE <!DOCTYPE html> <html…
-
4
votes2
answers187
viewsHow to remove characters q, ç and g from the HTML <u> tag in Regex?
I am converting HTML to doc, and I came across a very specific problem. Words that contain the letters q, g and ç when underlined, are getting an unwanted result. I thought I’d settle this way:…
-
4
votes1
answer1661
viewsRedirect HTTP to HTTPS on . htaccess with Let’s Encrypt
I cannot in any way test whether my address is in https when Let’s Encrypt is installed... Some charitable soul could help me redirect to https? I have installed in my hosting Uolhost (Platform:…
-
4
votes2
answers284
viewsIs it safe to leave crucial information in an Hidden input in HTML?
I can leave, for example, the ID of a user q I will do select in the hidden, and use it (the id) without having to confirm that that ID belongs to the logged in user? In other words, the user can…
-
4
votes1
answer59
viewsProblems to add element to HTML with jQuery
Everybody, good morning! All right ?! I’m going through a problem with jQuery and HTML in which I’m trying to add the elements when the mouse click is out of certain field[input]. This procedure…
-
4
votes2
answers213
views -
4
votes2
answers305
viewsConcatenate URL(Search)
Guys, I’m not very good at logic, I’m more of the design area. My question is the following: I would like when the user typed in the search, it concatenates at the end of the url...for example:…
htmlasked 5 years, 5 months ago Thiago lourenço 89 -
4
votes2
answers189
viewsHow to avoid repeating code that does the same thing for different Ids?
There is a function onClick Javascript for each "Show more". This function changes the visibility of the div to Visible to which the default is Hidden. However simple it is, the code is too big. Is…
-
4
votes4
answers1049
viewsChanging HTML does not reflect on page - Asp . NET Core 3.0
I recently decided to test the ASP .Net core 3.0, I always changed HTML without the need to recompile the project, but in this version, I can’t change anything in HTML without the need to recompile…
-
4
votes1
answer107
viewsCondition to check null variables does not work
I’m developing a page ASP (Classic) and on that page I have this: <%if(textocontrato) = "NULL" Then%> <td >Texto Contrato</td> <td ><input type="text" name="textocontrato"…
-
4
votes2
answers528
viewsWhat is the difference between tag and element and html document and page?
I would like to know the differences between an element for a tag in HTML. Example 1 The example below is an element or a tag? <p></p> Example 2 And in the example below is tag or…
htmlasked 5 years ago joão batista 75 -
4
votes1
answer56
viewsContent with code points (Entity) or Unicode characters
On the website w3schools has the reference of all characters - specials, symbols, alphanumerics. I did not understand the purpose of having this representation of characters. In the example below…
-
4
votes1
answer67
viewsWhat is the difference between sanitizers and validators in PHP
What’s the difference between FILTER_VALIDATE And FILTER_SANITIZE, in PHP.
-
4
votes0
answers318
viewsI make a change in CSS but after Reload it goes back to normal
I have the following View: I want to, change the position of CheckBox, then on View we have a div: <div class="form-group"> <div class="col-md-offset-2 col-md-10"> <div…
-
4
votes1
answer1925
viewsCan I apply HTML/CSS to a pure C program?
The programming club I’m attending has completed a program that works as a stock controller and shows things that are available and things borrowed. It was made in pure C, so the display is quite…
-
4
votes4
answers14424
viewsValidate form before sending
I have an HTML page with an email submission form. I need to check on the same page if the fields were filled in or not at the moment the user clicks the Submit button. Apparently he is ignoring the…
-
4
votes3
answers169
viewsWhat is the loading="Lazy" attribute for images and iframes?
To help with my site’s SEO, I use an extension in Chrome called Meta SEO Inspector. After an update, she began to indicate that my site needed to add the attribute loading="lazy" in tags…
-
4
votes1
answer86
viewsHow to handle ids with php?
while ($row = mysqli_fetch_array($result)) { echo "<li class='list-inline-item'><a href='news.php?id=" .$row['id']. "'>". $row['titulo'] ."</a></li>"; echo "<br>"; } I…
-
4
votes1
answer390
viewsSave cropped image with JCROP pro Bank
Hello! I am creating a user profile and to crop the image I am using JCROP. He cuts normally for me, but wanted to know how I do to save this result in the image and the bank accept this cut that…
-
4
votes0
answers51
viewsGrid with different height
Hello, I was making a table with some information about chefs, but the text is too long so I decided to put a "continue reading" button, when the text opens, the body of the box increases and drags…
-
4
votes1
answer49
viewsDoes the <Section> tag replace the <main>?
I’m starting to use HTML5 and still not sure how to choose between tags <main> and <section>. I see people using after the header <main>, while others already use the…
-
4
votes1
answer863
viewsMake a select and checkbox to have a behavior similar to radio button
Knockoutjs I’m having a hard time getting values from input within a table to compare it would have to be like a radio button, but there are two checkbox as can be seen in html down below: function…
-
4
votes3
answers2608
viewsProblem using include php different folders
First I apologize for not being able to express myself correctly, I am learning php yet and I came across the following problem. I’m setting up a site for studies and at the root I created the…
-
4
votes1
answer125
viewsIs it correct to use PHP code in the view layer along with HTML?
I’m starting now in the area and I have a college job to do and it is necessary to use the MVC standard, I have even separated things well, but I came across the following code in a file of my layer…
-
4
votes3
answers6672
viewsValidate file extension
I have a code that checks the size before sending the file, I would like to know how to check the file extension together, for example, I need these extensions .jpg, png, .gif, .pdf, .txt, .doc,…