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
-
6
votes3
answers1548
viewsHow to enable and disable textarea with javascript?
After searching the site, I found this question with solution, but the solution is in jquery! When choosing option X need a field in specific is disabled and only be enabled again if another option…
-
6
votes2
answers277
viewsDifference Italic and emphasis in HTML?
What’s the difference between tags <i> and emphasis <em> in HTML? When using each of them?
-
6
votes4
answers7473
viewsHow do I display the same phone number from the OLX site?
In OLX, the advertiser’s number is partially visible and only after you click on "See number", and the full number is displayed. How do I do this in Javascript?
-
6
votes1
answer392
viewsAlign text horizontally to image
I’m trying to align the text of some products in relation to image, but I’m not succeeding in what I’m doing, what I have is this: <div class="col-md-3 portfolio-item"> <a…
-
6
votes1
answer94
viewsWhat is Accelerated Mobile Pages (AMP)?
By chance I ended up reading on an administration portal where I talked about digital marketing trends for the year 2017 and what caught my attention the most was the AMP. Which led me to the…
-
6
votes7
answers19300
viewsIncreasing modal size using bootstrap and html
I have a certain modal responsible for displaying some content of the site, however the content can not be adjusted to the modal screen, it always gets the same width regardless of the content ...…
-
6
votes1
answer74
viewsIs there a difference in creating HTML elements in javascript?
There is a difference in the creation of HTML elements in javascript ? Example: Like String: document.body.innerHTML += '<h1>foo</h1>'; And with createelement: var elemento_pai =…
-
6
votes1
answer1122
viewsHow do I use GPS Location in my WEB application?
I’m creating an application and I found a barrier, this application is for restaurants to monitor deliveries and in the same way the user, also do it, I was doing by way of checkup’s whenever he…
-
6
votes2
answers536
viewsMake an HTML checklist
Hello, I wonder if it is possible to make a checklist, as the image below, only with css (please disregard blue lines): i found the Nth-Child css function, but I was only able to do this:…
-
6
votes2
answers40270
viewsHow do I mask an input?
I’m trying to put on a mask CPF in a input, I’ve seen a lot of answers here and none of them worked, I tried to use the mask on its own input, in the jQuery and none of it worked. I use the…
-
6
votes1
answer297
viewsHow to prevent the contents of an element from being copied after Ctrl+A and Ctrl+C?
I have a page and want to allow the copy normally, but I wish specific elements were not copied after using Ctrl+To and Ctrl+C, for example forms, navigation menus and advertising banners. This is…
-
6
votes2
answers4340
viewsSend checkbox with ajax jquery php
I have the form to send/work perfectly with the other fields, but I cannot receive the checkbox selections. I need help to receive/manipulate in php: THE HTML: <div class="input-group">…
-
6
votes2
answers12979
viewsHow to apply scrollbar only to the tbody element in an HTML table?
How to apply the scrollbar (scrollbar) only in the element tbody, thus leaving the element caption and thead fixed on the table, without moving when the scrollbar moves. Below follows the HTML and…
-
6
votes1
answer2355
viewsChange the height of the div according to the screen size and adapt when adjust
Hello, I’m trying to adjust the height of my Ivs as the div that has the most text, when the page loads, works normal, but when I change the screen dimensions, it doesn’t work. HTML <div…
-
6
votes2
answers319
viewsIs it possible to create a website without markup language?
Is it possible to create a website without any markup language, programming only, for example Javascript? In general, how?
-
6
votes2
answers1008
viewsHow to scroll in Javascript?
I am at the beginning of the studies on JS, however, I am with a project, and I had the idea to make a bar Progress, however, this effect of the bar Progress will only happen, when the scroll…
-
6
votes1
answer59
viewsHow to synchronize two scrollbars based on percentage?
I have a <DIV> overflow and a <TEXTAREA>, the problem is that the element that will be synchronized ends rolling over that the expected, instead of following the basis of the percentage.…
-
6
votes2
answers16970
viewsHow to print A4 pages using CSS?
I currently use the mpdf library for reporting. However, in some reports I need to send more than 400 pdf pages and this ends up taking a long time and consuming many server resources. I even…
-
6
votes2
answers421
viewsGroup css selectors to reuse code
Given my and html and css respectively: <!DOCTYPE html> <html> <meta charset="UTF-8"> <head> <link rel="stylesheet" type="text/css" href="css/estilos.css">…
-
6
votes2
answers2605
viewsHow to insert an HTML file with [innerHtml] and maintain Angular attributes
In my Componente i receive an HTML in the form of String and use [innerHtml] to insert this HTML in the Component View. Component: test(){ alert('Teste :D'); } html_string = '<input type="button"…
-
6
votes3
answers833
viewsBalloons with tips for using the system (Tour)
What I want is to know what name is given to those tips that appear to assist in the use of a system when we first enter it. For example, I log in to the system and a little balloon appears as if it…
-
6
votes1
answer180
viewsDIV TEXT Fixed only in DIV PAI space
Hello, I’d like to do the following. <div class="pai"> <div class="form"></div> <div class="text"></div> </div> I have a div FATHER And inside of it are two divs…
-
6
votes0
answers180
viewsSpring Websocket multi user chat with sound
I’m trying to develop a real-time chat, with the following scenario. Online clerk Every user he meets is a conversation One to one An attendant sees all users on a list that he is attending. When he…
-
6
votes2
answers7757
viewsIs the for attribute of a label element good for something?
I see several code examples where the attribute "for" is set in Labels. But in practice, whether or not this attribute influences something on the page? Ex: <label…
htmlasked 6 years, 9 months ago Joao Paulo 11,760 -
6
votes2
answers3233
viewsHow to calculate parcels (R$) and fill in inputs?
I would like help to implement the plot calculation and fill/create inputs according to the number of plots. Code below and in https://jsfiddle.net/wnm3jhr7/: $(document).ready(function(e) {…
-
6
votes3
answers218
viewsIs it possible to load alternative . css links in case the primary link is not working?
Not really a problem, but a question that can solve several of my problems. Let’s say I upload this CSS file to my website: <link href='http://host-1.com/style.css' rel='stylesheet'…
-
6
votes2
answers10617
viewsHow to change image when clicking?
I have a work course and I had the following idea: There are several images that will represent the chairs of a cinema (all are the same images, the same are in my HTML file), and I want to make the…
-
6
votes3
answers42294
viewsSelect option from a select
I have the following HTML: <select id="faturamento-mes-referencia"> <option value="1">Janeiro</option> <option value="2">Fevereiro</option> <option…
-
6
votes3
answers17188
viewsApply CSS when two classes are together
How to apply a CSS setup only when a tag is with the classes nome1 and Nome2 at the same time? I tried with the following code, but it’s not working. Does anyone know how to do? .nome1 { color:…
-
6
votes1
answer376
viewsHow to specify a time when changing colors with :Hover?
<a href="#">link</a> a:hover{ color:blue; } With this script I can change the color of the text "link" when the mouse hovers over, but the color is changed instantly. I wanted the color…
-
6
votes2
answers505
viewsHow to limit the interval between two dates in the <input type="Month">?
Although there are 3 questions I believe that all apply to the same case about the "range/range" It is possible to limit the "range" between two dates in the <input type="month">? If yes,…
-
6
votes2
answers2044
viewsHow to keep Ivs aligned on top of each other?
- I am extremely new to the subject and do not know much, I am going from searches on the internet, videos and readings, I say this in case there is some code or unnecessary rule in my doubts I…
-
6
votes1
answer152
viewsWhat are Evergreen Browsers? Does this philosophy also apply to system development?
I heard that term, Evergreen Browsers in an English lecture on the evolution of browsers etc., but I didn’t quite understand what this concept would be. What would be a browser Evergreen or what is…
-
6
votes5
answers9207
viewsChange the color of the text by clicking a button
<html> <head> <meta charset="utf-8"/> <style> .alterar{ color:red; text-align: justify; } </style> <title></title> </head> <body> <h1>…
-
6
votes3
answers4549
viewsAlign span right inside div
I’m doubtful how to align a text within span as an example: This is my HTML I need to leave it like this, left text aligned on the right and left text aligned on the right, as an example: HTML:…
-
6
votes3
answers641
viewsWhat is Unobtrusive Javascript?
What is Unobtrusive Javascript and what its differential when writing Javascript functions in the HTML document?
-
6
votes3
answers246
viewsWhat is the point of using scripts in links?
I recently saw on the website of W3schools the ability to execute Javascript code in links, placing scripts within the attribute href: <a href="javascript:alert('Hello World!');">Execute…
-
6
votes2
answers991
viewsIdeal attribute not to be 'clickable'
Good afternoon. I am making a button that has the function of increasing the quantity of products in the cart. However, when you click it many times, the element is 'colored' as if it were a word or…
-
6
votes2
answers3042
viewsIncreasing/decreasing number effect
I searched the Sopt and I couldn’t find what I wanted Suppose I have one button and, when carrying out a click, he alter the value of some div or input. The initial value is 1, and to the click on,…
-
6
votes3
answers2842
viewsSwap the image on smaller screens
I have the following code: <div class="container-fluid"> <h1> Áreas de Atuação </h1> <div id="hr-atuacao"> <hr> <div class="card-columns"> <div…
-
6
votes3
answers3732
viewsHow to place two Ivs next to each other in Bootstrap
I’m still novice in web development and I’m having a doubt in my form to put the two lines of the form next to each other in responsive Bootstrap, knowing that each input will bring information…
-
6
votes3
answers14621
viewsTable does not break the line
Here’s what I’m using a table from the site: Datatables and here’s the deal: As you can see the text gets all in line which makes it difficult to read because you have to scroll my doubt is how do I…
-
6
votes1
answer172
viewsText around image/round div
I’m in doubt on how to get the text around the round/div image. Follow the example: Maybe we could start like this: html <div id="texto-esquerdo"> <p> Lorem Ipsum é simplesmente uma…
-
6
votes2
answers764
viewsAutomatic click along with full screen
I have a website, and on the site the user when logging in will enter a page and this page should be full screen automatically without the user needing to click something. I read that it is not…
-
6
votes1
answer5362
viewsCSS gradient with image
I need to develop a responsive web page, I’ll put a background image as "texture", but they can’t occupy the entire screen, only half, giving a fade transition, between the image and the white part…
-
6
votes2
answers645
viewsWhat is the <output> tag for?
I wonder what the tag is for <output>. I saw this example here on the Internet: <form onsubmit="return false" oninput="o.value = a.valueAsNumber + b.valueAsNumber"> <input name="a"…
-
6
votes3
answers1082
viewsHow to style "broken image" (when image does not load)
How would it be possible to make a CSS style for when the image is not loaded on the page? When you have the link to the image, but for some reason it is not loaded on the page, or if the link or…
-
6
votes3
answers418
viewsIs it possible to create a letter seal element with CSS?
What is the best way or way to build an element similar to a CSS-only Letter Seal? (at the moment I didn’t want to have to use SVG) I’m trying to build this shape with HTML/CSS and the option I have…
-
6
votes3
answers320
viewsOn fixed footer position only at the bottom of the page
I have a layout with menu fixed to the left, the page content occupying the rest of the space and a footer also fixed: * { margin: 0; padding: 0; text-align: center; } nav { z-index: 2; width: 25%;…
-
6
votes1
answer197
viewsWith CSS, is there any way to change the style of Text-Overflow:Ellipsis?
Imagine I have a situation where the text is bigger than the container, then I’ll use text-overflow: ellipsis to place the 3 dots ... showing that the text continues and there inside the container…