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
-
5
votes1
answer4890
viewsIs there any way to remove CSS and JS codes not used by the application?
I wonder if there are any transpilator analysing the classes and ids used in an HTML page and removes all classes and ids not used in CSS and Javascript. This would be interesting to further…
-
5
votes5
answers721
viewsElement with different end size than width and height definition in CSS?
Code: div { width: 300px; height: 100px; border: 1px solid red; padding: 50px; } <div> Contéudo da div. </div> I would like to understand why while inspecting the div that’s in the code…
-
5
votes1
answer1030
viewsWhat is the difference between :first-Child and :first-of-type in CSS?
I was writing a line of code and I was ready to type :first-of-type to change a certain element. That’s when I got the doubt: I must use first-of-type or first-child? Since both present the same…
-
5
votes1
answer458
viewsWhat is the difference between innerHTML and appendchild in JS?
What’s the difference between innerHTML and the appendChild? In my opinion they are very similar.
-
5
votes1
answer951
viewsGif to load while website loads!
I am developing a website (MVC), where there is a user option to select an Excel file, and all table data is sent to the database and only then appears a warning of success or failure when recording…
-
5
votes1
answer310
viewsHow to implement a pagination using PHP and Ajax
I make a query in the database through PHP that receives the data from an AJAX. (And then returns the query data to AJAX) So far so good. The problem is that I would like to paginate these data…
-
5
votes1
answer92
views.clone() not registering Select value in cloned DIV
Good afternoon guys, I think it may be something really stupid, but I can’t identify why the clone that I make of my page to be able to print 2 ways, is not capturing SELECT value of my products, it…
-
5
votes1
answer438
viewsHow to lock cursor drive in Masked input?
I’m using the plugin jQuery Masked Input. <input name="dueDate" class="form-control input-mask-date" type="text" placeholder="Data de Vencimento" data-parsley-trigger="keyup" required=""> And…
-
5
votes2
answers2626
viewsAdjust image inside canvas
I have a page that allows you to insert an image inside the canvas element and works perfectly. Now, what I need is a way to limit the positioning of the image within the canvas, not allowing it to…
-
5
votes3
answers1419
viewsClicking on <li> the <a> link also work
I always have that question, look at that: I have a menu, with ul and li: <ul> <li><a href="/inicio">Inicio</a></li> <li><a…
-
5
votes1
answer708
viewsWhy does it declare a class or id in the script and link tags?
Several times I see coding in tags <script>/<link> who possess class: <script type="text/javascript" language="javascript" class="init"> <link rel="stylesheet"…
-
5
votes2
answers35879
viewsNo 'Access-Control-Allow-Origin' header is present on the requested Resource. Origin 'null' is therefore not allowed access. - Phonegap
I’ve been reading about this json method and I just don’t understand and don’t know what to fix, I’m using another domain to get the json. Here is my code: $(function(){ var url =…
-
5
votes3
answers3914
viewsHow to put the value of a PHP variable inside an input?
How to put the value of a variable (already calculated in PHP) inside a input? <form method="post" action="calculos.php"> <div id="circulantes"> <div class="ativocirculante"…
-
5
votes2
answers37
viewsPut my email to receive the contact messages
Where I add my email to receive the contact form messages? <form name='contact-form'> <div class='fm_namer'> <input class='contact-form-name' id='ContactForm1_contact-form-name'…
-
5
votes6
answers4895
viewsSuccess message after completing the PHP form
I’m trying to create a simple form for logging a visit at a location. However, I am unable to place a "Data Successfully Sent" message on the same page of this form. The validation of this form,…
-
5
votes1
answer149
viewsConfigure HTML variable inside Nodemailer html
I need to send an email using Nodemailer, and I need to send email with html, but I’m not able to set the variables directly inside the email HTML, I’ve tried the replace() and did not succeed.…
-
5
votes4
answers3300
viewsHow to make Youtube embed responsive on the site, when opening want Width appear 100%
I already have several embed on my site but do not want to go there and change 1 by 1. what I want is a code to change all Iframes, with 100% width and height adjust responsively. .conteudo{…
-
5
votes5
answers47771
viewsCentralize a table (HTML)
I made a table in mine HTML, but I couldn’t center it in the middle of the screen. She’s vertical and I’ve tried putting the text-align:center but it didn’t help. td, th { padding: .7em; margin: 0;…
-
5
votes1
answer853
viewsHow to add an external source in an SVG?
I have a logo that I made in SVG, on file .svgexternal, which uses has a text with the name of the company, whose source is Open Sans Light. On my machine works normally due to the fact that I have…
-
5
votes1
answer80
viewsWhy is the Codeview plugin not highlighting colors?
I’m using the plugin Froala in a textarea, in this way: <textarea name="fDescription" class="form-control" rows="4"></textarea> And then activating the plugin with jQuery:…
-
5
votes4
answers169
viewsWhich way can I use regular expression to capture just a few link attributes
I need a basic example(s) of how I can make a tiny script to pick up only the contents of(s) attribute href. I’ll simplify the explanation into two groups, it’s them: To and B In the Group A we have…
-
5
votes3
answers1217
viewsFloat half of the Dropdown Menu list to another position
How to do for in the sixth cell of Dropdown menu float left as in the image example below: I tried unsuccessfully something like: <style> #main-navigation-2 .dropdown-menu :nth-child(6),…
-
5
votes0
answers419
viewsMonthly hours per shift
I have to create a php button so when clicking generate a monthly turn time, but I don’t see how to do it. Can anyone suggest an idea? What I’m thinking of is randomly choosing the contributions I…
-
5
votes2
answers1483
viewsHow to create a toggle button with input=checkbox without using the <label> element?
Is to create/transform a <input type="checkbox"> on a toggle button without needing the element <label> as in these examples: How to create a toggle on and toggle off button? An example…
-
5
votes1
answer322
viewsError rendering with jQuery Ajax
Quick information on how this code should work: Ajax takes an html, compiles with Handlebars, the same ajax takes a json from an api, packages everything and renders an index with an append. var…
-
5
votes3
answers555
viewsCreate an "opacity" on top of a <tr>
I have a dynamically generated table: I would like to create a class in CSS to make a "layer" on top, with transparency. Example: If I use the background-color, it will only change the background,…
-
5
votes2
answers1042
viewsHow to create a Datatable that has a dynamic column structure?
Hello, I need to create a Datatable in my MVC project that will not have predefined columns. The amount of columns should be defined from the amount of data existing in a BD field. I have a field in…
-
5
votes1
answer950
viewsHow to put a <div> inside an iframe?
So, I’m trying to get only one part of my HTML page updated, every "X" time. I was trying to accomplish this through AJAX, but it was giving many problems. So I decided to change the plan. This is…
-
5
votes1
answer205
viewsWhat is the size limit of Indexeddb technology?
Today at work they mentioned the technology IndexedDB to solve a problem here in the company, but Between several questions arose me, being one of them: What is the data limit that can be stored in…
-
5
votes2
answers188
viewsInclude html fields in the title panel
I’m using bootstrap, and I use a panel title at the beginning of the form, which informs the name of the form I’m in right I would like to put in the case the current date if it is a new…
-
5
votes2
answers6999
viewsLink href to id div
Well I know we can make links by directing the click href for a page id using #. #content1, #content2, #content3, #content4 { height: 50vh; border: 1px solid red; } <a href="#content1">…
-
5
votes1
answer122
viewsIs there any way to use a "custom-attribute" as the value of a CSS property?
I would like to know if there is a possibility of using a custom-attribute of the kind data-*=" " as value for a CSS style or even use this custom date as a value for a variable in the CSS. To…
-
5
votes1
answer1383
viewsIn HTML how to increase the space between Tds without using cellspacing cellpadding?
My idea is to make a table where it has a spacing between cells, as in the image: But according to the Mozilla documentation for example, it is possible to confirm that the attributes cellspacing=""…
-
5
votes2
answers2346
viewsAlign image next to text while respecting vertical spacing
I’m trying to get the images aligned to the right, respecting the spacing between the tags <p>, but it’s getting like this: I need something like that: My HTML code is as follows:…
-
5
votes2
answers259
viewsThe UL LI losing formatting after I put it on line... Why did the "balls" of my LI disappear?
I have an unordered list <ul><li> I wish it to stay horizontal, not vertical, but when I put it to stay in line with display: inline-block my indicative "balls" are gone! Note that the…
-
5
votes2
answers215
views"Leak" text behind <th> using Sticky CSS position
I’m using position: sticky; in the <thead> of a table where I assign a background color to <th>. My intention is that, when scrolling the page, the header remains visible because the…
-
5
votes1
answer166
viewsCarousel content harms SEO? Is the hidden Carousel content indexed?
I have a question about Carrousel and how its content is indexed or not by crawlers search. First, I believe that most Carousels are not so friendly from the point of view of Accessibility. This…
-
5
votes4
answers110
viewsMaintain select element value when cloning with jQuery and deleting Labels
Test scenario function addReg(){ var reg = $('#registro').clone().removeAttr('id'); reg.children('label').remove(); $('#formX').append(reg); } <link…
-
5
votes2
answers1140
viewsHow do you input one input into the other?
Hello I’m new here and I’m having a big doubt... I have this code: <!DOCTYPE html> <html> <head> <title></title> </head> <body> <h2>Este campo é…
-
5
votes2
answers504
viewsPop up an icon in the middle of my image by hovering the mouse
I am trying to bring up a zoom icon on top of an image while passing the mouse over it (The screen has several images, the icon should appear only in the image that the user passed the mouse) I…
-
5
votes3
answers1025
viewsDropdown with click
I created an HTML and CSS from a menu but I can’t create Dropdown with click, only when you hover your mouse the menu collects or expands and I would like to do it with one click. Thanks in advance…
-
5
votes1
answer268
viewsHow to make filter Blur pick up the whole element. Prevent Blur from ending before the end of the element background
I have a div who is with filter:blur(), but I noticed that the blur means it is inside the element. What I mean is that when you reach the box-model boundary the image of background begins to…
-
5
votes1
answer947
viewsWhat is the effect that the overflow property: Hidden is doing on the code?
I have this very simple code down there. Only the problem is that if I take the property overflow of the code simply, add the background color and putting it again it appears because this is…
-
5
votes1
answer235
viewsHow to switch a CSS style sheet and maintain its state in Web Storage?
I need to change a whole sheet of CSS style, I’ve done both, one, the main and the other with accessibility (high contrast, larger letters etc.) <link rel="stylesheet" type="text/css"…
-
5
votes2
answers401
viewsHow to disable emoji rendering inside an HTML tag
I have a platform (Website ) where any individual can create content (images and text), however would like to control the rendering of HTML symbols in particular the Emoji within a specific tag (in…
-
5
votes1
answer125
viewsFormatting Titles in Table of Contents Rmarkdown (R)
That’s my code in Rmarkdown: --- title: "Formatando Table of Contents" author: "Laura" date: "`r Sys.Date()`" output: pagedown::html_paged: toc: true toc_depth: 3 self_contained: false --- #…
-
5
votes3
answers204
viewsIs it possible to save a used browser object localstorage?
I made a Todo list with 3 features: add an item, delete and clean the input field. I would like the added items to be saved after reloading the page, it is possible to do this using the…
-
5
votes1
answer194
viewsHow is the scope of an Event Listener defined in any attribute in HTML created?
According to the documentation, when the Listener event is assigned as an HTML attribute, the specified code (in the attribute value) is wrapped in a function, with the following parameters: event -…
-
5
votes0
answers90
viewsWhat is the Utility-first standard in CSS?
In CSS, there are patterns like WELL for the organisation of the nomenclature of the HSC classes. Recently, with the rise of libraries like the Tailwind CSS, I realized the existence of a new* CSS…
-
5
votes1
answer90
viewsHow to use Beautifulsoup’s "find" to find a script tag with a specific type?
For a while I have been studying how to use Beautifulsoup to be able to find tag content etc. But I came across a problem where the content I want to find is inside a tag <script…