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
-
7
votes5
answers6090
viewsAutofocus: position the cursor at the end of the value
When I Gero a input having set value (value="teste") and define the autofocus="true", the autofocus back the cursor at the beginning of the content: <form> <div> <input type="text"…
-
7
votes2
answers542
viewsMove div while hovering
How I create the effect similar to this site: http://www.amgrconstrucoes.com.br/lancamento When passing the mouse over the div that contains the image of the enterprise appears another div on it by…
-
7
votes3
answers1368
viewsHow to make a burger menu open from right to left?
I have a menu hamburguer which opens from left to right however, I would like it to open backwards, from right to left, as I do this? Next down my code: /* * Open the drawer when the menu ison is…
-
7
votes1
answer307
viewsConvert Excel (.xls) to (.htm)?
I made a system for a school, where from the Excel file, where are stored all school newsletters, I export to .htm, where it generates some files with this extension and from there I can cut the…
-
7
votes3
answers1160
viewsMeta tag for geolocation
I was looking for meta tags for geolocation, to help search engines know that the information on my site refers to a specific city. I found this website which generates the following tags for an…
-
7
votes2
answers190
viewsEdit the style of the external div tag of a box in Shiny
I’m developing an app on R’s Shiny, and I’m having trouble editing the tag out of a box. When I turn the remote: box( title = 'Teste', width = 4 ) the corresponding HTML it creates is: <div…
-
7
votes1
answer9661
viewshtmlspecialchars() expects Parameter 1 to be string, Object Given
I’m trying to make a button select in the Blade with @foreach to get the list of all Mysql databases. Only the @foreach works, I can get the values, but I’m not getting to put the bases inside a…
-
7
votes2
answers1995
viewsWhat does "== $0" represent when inspecting a page?
When inspecting a page, I realized it appears == $0 that is not part of HTML. What does this code mean? It is part of Javascript?…
-
7
votes2
answers366
viewsDoes using "Document.open" and "Document.close" make a difference?
I saw in a certain answer from SOEN a question about printing iframe content. I ended up encountering an excerpt of code where I had the following: var newWin = window.frames["printf"];…
-
7
votes1
answer207
viewsjquery.iframetracker Does not work on Mozilla Firefox, can you fix it?
i have a script that records a cookie with ajax when you click on a Google ad (iframe), works in Google Chrome good.. but not firefox.. does anyone know why ? Or if you have another solution to do…
-
7
votes1
answer443
viewsSome of the real solutions to render lock error and improve performance
Well, lately I’ve seen, in articles about performance, some Angouts, and also in groups on social networks, about such a "blocking of rendering content above the edge". But what is this mistake ?…
-
7
votes2
answers56156
viewsHow to center all content of a div - Bootstrap
Hello. I am learning how to use the bootstrap. In my studies I had a question. If there’s any way to centralize the entire contents of a div. I have sample codes... <!DOCTYPE html>…
-
7
votes3
answers1301
viewsHow to catch the element where my cursor is?
I’m creating some functions for the text editor Alloyeditor. Then I came across the need to acquire the element in Jquery that the cursor is present. I just don’t know if there is any way through…
-
7
votes1
answer1874
viewsWhat are the differences between properties and attributes in HTML?
When trying to use this code: $(document).ready(function(){ $("#selectAllBoxes").on("click", function(){ if(this.checked){ $('.checkBoxes').each(function(){ $(this).attr("checked", true); }); } else…
-
7
votes2
answers175
viewsRemove HTML snippet between specific comments
I have a class called Page(page.class.php) that "mounts" the page, and one of the functions of that class is to censor content by user level. <?php class Page(){ //(...) static function…
-
7
votes3
answers1068
viewsHow to implement a "scroll Hijacking"
I have noticed in several modern pages a scroll behavior that goes up to certain interest part of the content, researching, I found that this type of behavior is called "Hijacking". The term…
-
7
votes3
answers340
viewsPosition caption above div
I am using the bootstrap Carousel with caption. Between the slide image and the caption there is a div with the image of an orange triangle. I need the caption to be above the triangle. I’ve used…
-
7
votes1
answer82
viewsHow important is it really to validate codes by W3C?
I understand that validating code can be important and mainly help those who are starting to correct errors and be more informed about obsolete elements in current language versions. But how much…
-
7
votes6
answers1015
viewsHow could I highlight the radio button that is selected?
I own this radio group which serves to specify the severity level of a given occurrence, using the colors to classify the level. Behold: <html lang="en"> <head> <meta…
-
7
votes2
answers3051
viewsOpen link in a new tab without target or window.open
I have a function that does a redirect: vm.pagarUpload = function() { $http({ method: 'POST', url: API.url + 'app/service.php?t=pagarUpload', data: { nome: vm.nomeUpload, email: vm.emailUpload, cpf:…
-
7
votes3
answers520
viewsWhy do line breaks between elements cause space between them?
I was doing a few code organization here before commiting and realized that an indentation in HTML caused a problem in my layout, so I went to inspect to find out what I had done wrong besides…
-
7
votes1
answer3418
viewsphoto album with HTML and CSS
I have a folder on the site called PHOTOS , by clicking on the folder PHOTOS I thought I’d put several < article > splitting each photo album type: < article > album de fotos 01 <…
-
7
votes2
answers191
viewsHow to force justified size?
Example scenario I have a dynamically generated table (php), and one of the columns are vehicle boards. The problem is you get one a certain difference as the letters and numbers are "larger" and/or…
-
7
votes1
answer132
viewsHow to prevent pseudo-element (:before or ::after) within a <a> tag from being clickable?
Is there any way to prevent pseudo-element ::after or ::before one-link <a> become part of the link itself? My idea was to use one ::after in a link tag <a>, that ::after would be used…
-
7
votes1
answer570
viewsHow to prevent an Input Required from starting with the CSS style :invalid
When I have a input required that has some CSS style when it is :invalid, even before the user interacts with the input it is already stylized as invalid. How can I avoid this? Take the example:…
-
7
votes1
answer399
viewsHow do you make Scroll center on the elements inside the container?
Imagine that I have an image gallery that is inside a container. But each image in the gallery has a size according to the image: What I’d like to do is a snap, so that at the time of scroll at a…
-
7
votes1
answer481
viewsIn CSS, how do I align Numbers with Text in Classic Fonts?
I’m wearing a Font-Face that has the old typographical style in the numerals is want to align them with the text. Note that the numbers of this source follow the old pattern, where the digit is…
-
7
votes1
answer676
viewsHow to make a marble background with CSS?
I was wanting to do a dotted bottom, like a bunch of balls to make the background of a website, Example of what I’m trying to do. You can get to this result with CSS only without needing an image? I…
-
7
votes1
answer325
viewsHow to read a JSON file to render HTML list
I am having a difficulty in an application that reads a json file and renders in HTML, I am not able to access the object correctly, the variable products is as Undefined. Could someone help me? if…
-
7
votes1
answer1065
viewsIs it possible to use Input Value as the CSS selector?
Look at the examples below. I’m trying to style my CSS through value that he has, but it’s not working. I’ve put together three examples, one for input has the [value="red"] it should stick with a…
-
7
votes2
answers232
viewsAbaloada shape with CSS how to do? How to make a Shape in this kind of aredondado format?
I would like to make an element half round, it is not an ellipse, nor a circle, nor an element with border-radius. It’s a kind of rounded shape as you can see in the image below and I couldn’t do it…
-
7
votes1
answer487
viewsWith CSS is it possible to make a hollow circle in an image?
I wanted to put a "leaked" area on the image, so that the image has an empty area and I can see the background that is behind that image. Example. I managed to get here, but I can’t place the image…
-
7
votes1
answer103
viewsHow can I define line breaks between elements of a layout?
I’m adding CSS and HTML and one of the doubts that always arise to me is in the way I should define the line break between elements of a layout. For example: <p>Nome</p> <input…
-
7
votes2
answers80
viewsWhy does image transparency on the Firefox Button not work?
I have this code that is nothing more than an image with opacity inside a button. Chrome works normally, but Firefox is bugged, as you can see. Follow the code for the image above: button { padding:…
-
7
votes3
answers547
viewsWhy does the "text-align: center" property work in image?
I don’t understand why text-align: center is centering the image because this property is not used to center text? because it centralizes the image too? I created an example. @charset "utf-8";…
-
7
votes1
answer136
viewsWho regulates W3C or WHATWG web standards? Or neither?
I always thought that whoever ran the standards was just the W3C, but it seems that’s not quite it... I saw that there is also the WHATWG (The Web Hypertext Application Technology Working Group)…
-
7
votes1
answer92
viewsHow to detect when the textarea has more than one line?
I’m doing a chat, and I came across the following problem, my textarea when breaking a line, whether the user press enter or not have enough space and jump to the next line, my textearea does not…
-
6
votes2
answers750
viewsStretched image in Internet Explorer
On a page I’m developing, a web page where I have an image that fits itself according to the field space. to do this, I used the property max-width:100% that is advised on the web to make this kind…
-
6
votes3
answers946
viewsRun function for each class you find
I’m creating a mural of images inside thumbnails adjusting them automatically, where I use the calculation below: if($('.thumb img').width()<$('.thumb img').height()){//portrait $('.thumb…
-
6
votes1
answer806
viewsHow to get values from a column of multiple tables displayed on a web page?
On a web page, there are one or more tables with information that I need to get in the form of a list. Specifically, I need to get a list of the values of the 2nd column of a table of the web page I…
-
6
votes1
answer517
viewsIs there a safe way to check the loading of frames in an HTML page?
Some time ago I built a tool with HTML and Javascript to help debug a family of web applications. Basically, the tool consists of a static HTML page and a collection of scripts that load a given…
-
6
votes2
answers2183
viewsHow to set the cursor position in an editable element?
I have the following structure: <pre id="editor" contenteditable="true"> “Always pass on what you have learned.” - Yoda > {|} -- X </pre> I want when someone clicks on a button I put…
-
6
votes2
answers2482
viewsI can’t define margin-top/bottom/right for block element, why?
I have an element <p> within a <div>, thus: HTML <div> <p>texto</p> </div> CSS div { width: 30px; height:30px; background-color: green; } p { width: 30px;…
-
6
votes1
answer2385
viewsLoad content dynamically with AJAX
I have the following HTML code: <label id="meuTemplate" for="criaAssoc" class="instAssoc" style="display:none"> <strong>ID:</strong> <input name="idInstrucao" type="text">…
-
6
votes3
answers5281
viewsNavigation without a refresh!
I’m developing a website that has a div where I have a script that lists results of an SQL query. These are images, in this case. The site was developed on just one page, so by clicking on the…
-
6
votes2
answers1256
viewsMake a site with multiple pages offline
Assuming I have a site with multiple pages - for example a blog - I want to put an option for those who visit it to have access to it without internet. Since not every device has constant internet…
-
6
votes3
answers331
viewsUnknown cause error: "Syntaxerror: invalid range in Character class"
Situation: I have a page that contains a <iframe> another, on this other page, I have a simple HTML element input: <input type="text" required="" pattern="[a-Z]{2,35}" tabindex="6"…
-
6
votes4
answers6021
viewsExchange text by clicking on it to display/hide an element
I have the following example done in Javascript, of which is a text written "See more", that when you click on it you can see more text: Example in Jsfiddle Code <head> <title>…
-
6
votes1
answer533
viewsDifferent multiple select rendering for each browser
I have the following code: <select multiple="multiple" id="carros" size="1" name="carros"> <option value="volvo">Volvo</option> <option value="saab">Saab</option>…
html internet-explorer google-chrome firefox cross-browserasked 10 years, 11 months ago Philippe Gioseffi 3,202 -
6
votes3
answers691
viewsHow to leave Facebook comment plugin with 100% width?
Is there any possibility to leave the facebook plugin with 100 width%? I think his default is 550px wide.