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
answer587
viewsHow do I eliminate the Focus "shadow" from a <button></button>?
After clicking the button this gets a shadow effect (bluish) around the same... I leave an image for you to understand my doubt. How to remove this outer line?…
-
5
votes1
answer2122
viewsCapture actions: Scroll Down and Scroll Up
Is there any way in jQuery to capture the events of "Scrolldown" and "Scrollup"? I tried this way: var lastScrollTop = 0; $(window).scroll(function(event){ var st = $(this).scrollTop(); if (st >…
-
5
votes1
answer356
viewsAbout size check
I’ve found several explanations about it, but none conclusive. Is it possible to determine the size (in bytes) of an image after it is loaded and using Javascript? Apparently the security of the…
-
5
votes1
answer9979
viewsCreate a "accordion" menu with CSS only?
Menus in style accordion (accordion) are useful for saving space, since you only open the parts with the content you need. Example of style menu accordion. But all of these menus usually use…
-
5
votes2
answers16197
viewsHow to print a javascript variable inside an html tag?
How to print a javascript variable inside an html tag? <script> (function() { var PORCENTAGEM = '25%'; })(); </script> <div class="progress progress-striped active"> <div…
-
5
votes1
answer227
viewsHow to avoid duplicity with Canonical link?
I have a question about the use of Link Canonical. Canonical link is a tag element <link> which aims to decrease the amount of Urls with duplicate content. Sometimes we see some Urls with the…
-
5
votes2
answers12256
viewsModal within a modal
I have a modal that opens on another modal, as I would not allow this modal that is open on the other modal not to close when I click off it. Note: I am using bootstrap, I tried using…
-
5
votes2
answers1924
viewsHow to pull content via AJAX from a site that has a menu header and a fixed audio player?
How can I create a website that uses AJAX for loading the pages ? What is the best way to do this without bugs occurring and that are really functional? I have plans to create some websites that…
-
5
votes2
answers2689
viewsHow to access an element within another HTML element with pure Javascript
I would like to know how to access an element within another element through id using pure Javascript. Currently use getElementsByTagName('a') but as in my project I will have several elements of…
-
5
votes1
answer1863
viewsDifference between using the main element versus a div with role="main"?
Thinking in terms of accessibility, described by WAI-ARIA, you need to define the element with the main content of the page with role="main", in order to improve the accessibility of the page for…
-
5
votes2
answers226
viewsVertical alignment in a div with position:Bsolute
would like to know if it is possible to carry out the vertical-align in a div with Absolute position? Follow the code to analyze: .teste { background: #F00; width: 500px; height: 100px; display:…
-
5
votes3
answers1523
viewsHow to access one selector within another in jquery?
I am trying to access the div’s of the '.contentParagraph' class specific to each of the div’s '.content', so that the events of one div do not interfere with the event of the other, follows the…
-
5
votes1
answer1042
viewsHow to get your site highlighted on the right side of Google
I Googled the term "brainstorm9," and I realized that Google featured on the right side of the page, to the G+ page of the site. I thought there was only information on Wikipedia. See the image: My…
-
5
votes1
answer214
viewsIs it currently safe to use font-face instead of Cufon and the like?
I am working on a website and I need to use fonts that the user may not have on his machine. Nowadays the most used browsers already support @font-face? From which versions? It is already possible…
-
5
votes3
answers3146
viewsTag <img>. When loading an image from the bank it appears lying down
Some photos that are loaded from the bank in my tag <img> appear lying (Landscape), but when I open the image of the PC it is correct in vertical position. This is the part that receives the…
-
5
votes2
answers124
viewsHow I give a Sort on my dropdownlist
How do I give a Sort to my dropdown? This is my dropdown. How do I give a Sort to it? Calling to the Dropdown <select class="form-control col-sm-6" name="cbxCodTipo"…
-
5
votes4
answers28473
viewsAlign text after image
Hello, I have a problem I don’t know how to solve. This is my situation: But I want it to stay this way: And like I said, I have no idea how to fix. And that’s my code: <div style=" position:…
-
5
votes4
answers1147
viewsMark checkbox if user writes input text in a table
I need it when the user writes to an input text, the checkbox of the respective table row should be marked, and if the user leaves the input text blank again, checkbox is cleared. Follow code:…
-
5
votes1
answer508
viewsTilted carousel (diagonal) in jQuery and CSS
I need to make a tilted carousel (diagonally as per image) but with transition between movements. I even prototyped something in this Jsfiddle but the movement is only working on the "back" button,…
-
5
votes1
answer2063
viewsPattern doesn’t allow accented character?
I have a form and am validating as follows: <input type="text" name="assunto" tabindex="5" pattern="[a-zA-Z0-9. - , ]{5,}" required> But if I type in some accented character (á, à, ã, ç) it…
-
5
votes2
answers2318
viewsHow to make a mysql query from an array coming from html?
I know that $cores me return the form values. What is the best way to make a query in the database with the array values $cores to pick up the cars that are present in that color? <?php //PHP…
-
5
votes1
answer537
viewsChrome and background Fixed bug
I have the following problem: I have some sections on the page separate in Ivs. Two of these Ivs get an image like background and background-position:fixed, so when scrolling the page the images…
-
5
votes2
answers1434
viewsProblem when performing XHR on the same domain (localhost)
Explanation: I have an application running on a client’s computer, it worked normally for some time, then something happened that the system could only be accessed from outside and locally no longer…
php javascript html cross-domain xmlhttprequestasked 10 years, 4 months ago Paulo Roberto Rosa 8,979 -
5
votes2
answers160
viewsHow do these sites load your HTML?
I ended up looking at source code from sites like Gmail.com and Secret.ly and noticed that HTML is embedded in Javascript, what is this technology that they use? Stay this way: <script>var…
-
5
votes2
answers6417
viewsWhat are the advantages and disadvantages of generating HTML on the client or server?
Historically, HTML has almost always been generated on the server, with Javascript being used for a few things, such as animations, validations, masks, etc. However, in recent times there was a…
-
5
votes1
answer1548
viewsHow to create a user-friendly URL on a one-page
I have a website that is one-page. I separated the screens by <div> to facilitate. However, if I click news it goes correctly to the news screen, but the URL does not change. How do I include…
htmlasked 10 years, 4 months ago Felipe Viero Goulart 3,693 -
5
votes2
answers2907
views -
5
votes1
answer324
viewsTwitter Bootstrap: Set specific CSS rule for different sizes
I would like to know how to declare a value to a CSS property according to browser resolution in Bootstrap. Example: I want an edge to be displayed only on smartphones or very small resolutions…
-
5
votes1
answer118
viewsDistinguish forms within PHP
There is a way to distinguish forms within PHP, since I want every form to be sent to the same function as it will be in charge of passing the $_GET the proper function capable of verifying the…
-
5
votes1
answer886
viewsChange url of pages with ajax and click on another browser
I have the following problem, I am developing a web application in java and I would like to know how to change the URL of a page when I click on a menu link. For example: Access a site…
-
5
votes3
answers116
views -
5
votes4
answers1991
viewsDifference between span img and div img
I’ve seen it in some source code: <span> <img="../imagens/1.jpg"></span> and in others: <div> <img="../imagens/1.jpg"></div> Is that wrong? I always thought…
-
5
votes4
answers24064
viewsSend HTML form without the Submit button
It is possible to create a form HTML to automatically upload data from form? Ex: I have one form only with radiobutton and for aesthetic reason I do not want to put the send button, it would be…
-
5
votes1
answer15614
viewsCall PHP function in onClick HTML button
I want to call a PHP function that I have on the same page, on the HTML button. My PHP function: if(isset($_POST['insert'])) { insert(); } function insert() { $requete = "INSERT INTO \"event\" (…
-
5
votes2
answers55591
viewsLimit html input
I want to put an input in html and I want to limit only to 2 numbers. <input type="text" name="Dia" maxlength="2" size="2" > I tried this but still letters appear.…
-
5
votes1
answer1497
viewsDynamically manipulating the DOM with jQuery
The system I am currently working requires a lot of AJAX and DOM manipulation, so I started learning (not long ago), jQuery. In the Feature I am currently developing, there is a jQuery plugin called…
-
5
votes1
answer1921
viewsHow to Convert RTF to HTML
I’m working on a web system that pulls a bulletin board from a system made in Delphi, which uses the format RTF to format the text. With this I need to use some Server-Side class in PHP to transform…
-
5
votes1
answer216
viewsYield does not return data
When calling the method, an HTML component enumerable should be returned. I’m using the HTML Agility Pack to read an HTML file. The same method works as expected when removing the yield and add…
-
5
votes3
answers10282
viewsHow to navigate a children and a div with Javascript?
I need a function that goes through #paicasas and leaves the background of all children "casa1,casa2...". I tried to do it but I know it’s far from right. function apagar(){ for(var i in…
-
5
votes1
answer175
viewsHow to run only one if without entering the other in PHP
I have two if parallel and I need to enter one OR the other, not both. But because I am inside one while with the first if, I couldn’t put just one else, having to do another if outside the while.…
-
5
votes1
answer11223
viewsBlocked cross-origin request
I am using an Elsevier API to fetch a book listing. To do this, I am using an example of them present at this link: http://apihtmlgen.elasticbeanstalk.com/sd_search.html I made my registration, I…
-
5
votes2
answers1405
viewsHow to make an image divide the text from within a bounded width div?
How to make a <img> break the text from within a <div> limited-width? For example, with this code: <style> #imagem { float:left; } #container { width:250px; background:#ccc; }…
-
5
votes1
answer674
viewsPercentage of ajax requests
I wonder if it is possible to create a percentage in Ajax requests. For example: When the form is submitted it starts with 0% up to 100% (when completed) My ajax: index php. <script…
-
5
votes5
answers1089
viewsProblem with <link rel="stylesheet/Less" ... >
I’ll start studying LESS, but the problem is I can’t move on to the first step. If I put the <link rel="stylesheeet/less"...> does not work. Only work if I put the <link…
-
5
votes1
answer166
viewsHow to put a text cursor to start on the right? Calculator
I’m making a basic calculator and on the calculation screen, I want the numbers to be "printed" from right to left. How can I do this?
-
5
votes2
answers1625
viewsSerriled source Firefox
How to resolve this issue in Firefox regarding fonts ? Unfortunately in Chrome it gets smooth and in Firefox serrated.…
-
5
votes2
answers326
viewsDo I need to include jQuery on every page?
It is necessary to place the script jQuery production every time you start a new encoding?
-
5
votes2
answers1341
viewsHow to make a menu that has a geometric figure in the center and is responsive?
So, I’m a beginner in Web Design, and I’m having some problems with css on a site that I’m developing. I have to make a fixed menu, which is nothing more than a normal bar, but which has a figure of…
-
5
votes1
answer202
viewsInterference of effects Hover
I’m facing a strange problem. I have some links to social networks with a border-radius and with the effect of hover edge rotation, as in the image below: When I give hover on these social media…
-
5
votes1
answer91
viewsUrls in doctype and html tags
1) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2) <html xmlns="http://www.w3.org/1999/xhtml"> HTML5 removed…