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
-
9
votes2
answers29287
viewsTake JSON data array and print with jQuery
I have a JSON in the following format: { "representantes": [ { "nome": "Foo LTDA", "endereco": "Alameda dos Anjos", "cep": "12345-000", "telefone": "(11) 1234-1234", "site": "www.foo.com.br",…
-
9
votes3
answers740
viewsIs sending data to the same form a good method?
I have a login form, which after given submit he is sent to himself with the information via POST, and if it is wrong, it displays an error message and shows the same form again. I did so to avoid…
-
9
votes3
answers1752
viewsHow to take the current position of a div by his class?
For example: <div class="container"> <div class="position"></div> <!-- Essa tinha que ser position [0]--> <div class="position"></div> <!-- Essa tinha que ser…
-
9
votes3
answers465
viewsHide image generated by Javascript
I am using the sharethis plugin to share content on social networks. For this I am making the following call: <script type="text/javascript"…
-
9
votes2
answers991
viewsHow to select element in the lowest hierarchical level?
I need to select the ul parent of the element li that is being clicked. But as a li is inside the other javascript understands that I am clicking on li and in all li parents. <ul…
-
9
votes2
answers835
viewsHow to make an effect by adding a new item to a list
I have a list that updates from time to time and would like to add an effect equal to this site: Website It’s the list that’s in the middle of the site. Where, when a new item enters the list, the…
-
9
votes1
answer666
viewsMulti-step form, losing values of variables when page changes
We have three PHP pages with html form. In the first page we have the fields showing the values of the variables and the fields Hidden containing the values of the variables like this: <input…
-
9
votes1
answer478
viewsProblem with Background Html/Css
I created a id in css with a background. When I put the div in html the background looks beautiful, but when I put a <form>, the part he occupies turns white. Note: when I put the text in bold…
-
9
votes2
answers9737
viewsHow to send email with PHP?
I have a site under construction that people have the possibility to insert an email, I would like as soon as they insert their email and click on the "sign up" button, be sent an automatic reply…
-
9
votes3
answers3926
viewsWhat is XHTML and when should it be used?
What I know is that XHTML needs to be valid XML. This implies, for example, that all tags need to be closed. For example: Errado: <br> Certo: <br/> But what is the use of it? What is it…
-
9
votes2
answers55209
viewsSet OPTION as SELECTED based on database values
I am preparing a form where I am setting the values of the fields with the database data. I’m having trouble setting the chosen option as selected to the <select/> in the code below: PHP…
-
9
votes3
answers17316
viewsRun external application with Javascript
What code should I use to launch an external application from a computer from an HTML page? Another time I was told that this code would be in Javascript: var shwll = new ShellObject(); var…
-
9
votes1
answer619
viewsCalculate the number of elements with CSS
I’m making a numbered list of regressive counters using the counter-reset. Currently I put the number of items in the list manually: .faq { counter-reset:my-counter 2; } .faq dt { counter-increment:…
-
9
votes2
answers3515
viewsRemove more than one item from an array
It is possible to remove more than one item from an array at a time. Follows the code: var teste = [6,4,5]; //meu objectivo é remover os itens 4, 5 por ex //removendo o item 4 teste.splice(1, 1)…
-
9
votes3
answers1588
viewsHow to filter data entries in PHP
Good evening, I have a form serving data entry that is displayed on the screen. The problem is that this data can be html tags or scripts, if someone puts this code in my form, the page will be…
-
9
votes1
answer280
viewsSearch tool for my site on Google
How to include a search within the Google search engine? It would have to include a meta tag in my website for this to appear on Google? A little difficult to explain, so I will illustrate with…
-
9
votes3
answers14735
viewsHow to break a line of a Mysql field into an HTML page
I need to save a value with a line break in the table For example, instead of keeping: 0 anos, 3 dias Keep: 0 Anos 3 Dias I tried the following process: INSERT INTO tabela (tempo) VALUES ('0 Anos\n3…
-
9
votes2
answers5484
viewsApply css to all elements except some specific ones
How to apply padding to all a. button except those who have a span, I don’t know how to do it, but an example: a.button:not(span)
-
9
votes7
answers4205
viewsCount elements on the screen
I wonder if there is the possibility of me counting the elements on the screen, for example a function that lists the amount of <li> arranged on my website. How could I do that? And how would…
-
9
votes2
answers2637
viewsWhat is the point and difference of using <![CDATA[]]> inside a <script> tag?
What is the point, or what is the difference of using or not the content of the script with this CDATA? <script type="text/javascript"> //<![CDATA ... //]] </script>…
-
9
votes2
answers1708
viewsIs it correct to concatenate PHP in Javascript?
I often use this method, but do not know if it is appropriate, to rescue the id in JS I use echo php <script type="text/javascript" src ="js/jquery.js"></ script> <script type…
-
9
votes3
answers2808
viewsHow to block Adblock?
I’m setting up a site that works with ads and so I can’t allow a user to log in with Adblock, I tried using the www.antiblock.org script but it only works on one page, on another page where I work…
-
9
votes2
answers742
viewsIs it possible to integrate Paypal into my website without the user logging in or creating an account?
I was looking for and reading about it, but what I see is only put the pay button with Paypal, which requires who is buying to login to Paypal. Is there any way to do this, some example code light?…
-
9
votes4
answers31971
viewsCan I write Javascript in PHP?
I can write in php the tag html<script> and inside write the Javascript script </script> using echo? If I do for example echo("<script> var a = 'texto';</script>"); This is…
-
9
votes3
answers7332
viewsHow to put scroll at the end of the div?
I have the following div <div style="height:300px;overflow-y:auto;"> ... </div> Inside it will have several texts and will make the scroll appear. When you refresh the page the scroll is…
-
9
votes1
answer2058
viewsProgressive and cumulative hour counter with days
I have a project where I must accumulate hours worked of a service in a project, it must store in the bank the hours/days. So when started, if there is no previous time starts from scratch, but if…
-
9
votes1
answer51550
viewsScroll in div if necessary
I have the following div on my page html <div id="divContent" class='content'> Bem vindo ao meu site <br /> 1 index index index index index index index index <br /> 2 index index…
-
9
votes2
answers4807
viewsWhen should I use the class attribute in HTML elements?
I myself feel irresponsible for using so many class at will, without limits, at any time in any situation, whether to make use of CSS, or for use with Javascript. So I ask myself: am I right or, in…
htmlasked 9 years, 1 month ago Ingrid Farabulini 1,002 -
9
votes2
answers1038
viewsHow to remove tags in Python text?
In PHP we have a function called strip_tagsthat remove HTML tags from a given text. Example: $text = "meu nome é <strong>Wallace</strong>"; strip_tags($text); // 'meu nome é Wallace' How…
-
9
votes1
answer3600
viewsHow to put subtitles (subtitles) in videos?
How can I add subtitles/Subtitles to the video tag: <video> <source src="video/video.mp4" type="video/mp4"> </video>
-
9
votes3
answers2079
viewsHow do I activate the Caps Lock key warning?
How to make a warning for when the Caps Lock key is enabled in the password field? At first I would like solutions in pure Javascript, but using jQuery and related will be accepted.…
-
9
votes4
answers2928
viewsUppercase HTML vs CSS
I’d like to know the difference between using text-transform: uppercase in CSS and use uppercase letters directly in HTML. Is there any difference between the two? Which is the most recommended?…
-
9
votes1
answer328
viewsWhat is the difference between using appendchild and insertAdjacentHTML?
In a code from which I will have to add an element within a DIV. What’s the difference between first creating the element and adding it to div through the appendchild and doing…
-
9
votes1
answer1343
viewsFullscreen Video on Android Webview
I have an application made on Android Studio using webview and runs a remote web application. The video is displayed perfectly on the webview. However, the option to fullscreen is not available in…
-
9
votes2
answers211
views -
9
votes3
answers2563
viewsIs it possible to apply sound effects to Hover or click css?
Can you transmit a sound effect by touching the mouse to an object, text, etc.? wanted that when you hover over some object with effect 'Hover' that a sound effect, being any type of sound that…
-
9
votes3
answers412
viewsHow to make a DIV with a crossed text. Type a text passing through a DIV
Is there any way to transpose a text div, like coming in from one side and coming out from the other? My idea would be something like these images. Where the text starts on one side and goes through…
-
9
votes3
answers2835
viewsWhat is the difference between <q>, <blockquote> and <cite> tags in HTML? And how to use them correctly?
What’s the difference between <q> and <blockquote> and <cite>, because everything seems to be for quote. Is there any good practice or correct way to use these tags correctly? We…
-
9
votes1
answer205
viewsHow to make the button outline follow the curvature of the elements?
I know that the outline is very important for usability and especially for the accessibility of the page, including here is a very interesting Webaim article about it:…
-
9
votes2
answers130
viewsHow does the interpretation of HTML code work?
I’m making a tree to derive an HTML code. And I’m treating some particular cases. And one of those cases is just when someone opens a tag and doesn’t close it: <html> <body> <div>…
-
9
votes2
answers813
viewsDraw circle in Html5
I’d like to draw that circle But that’s all I got here yet function draw() { var canvas = document.getElementById('circle'); if (canvas.getContext) { var ctx = canvas.getContext('2d'); var X =…
-
9
votes2
answers307
viewsChange color of the scenery with button
I am creating a scenario with Parallax and wanted to simulate color change in the mountains, for that, the color will be chosen by the user. I have 3 buttons for the effect. My problem is I don’t…
-
8
votes3
answers1076
viewsIs anchoring a TR possible?
It is possible outside an element tr link some address as below? <a href="www.enderecodesejado.com.br"></a> If it is not possible, Javascript would solve this or better forget? I have…
-
8
votes3
answers7789
viewsBuilt-in form action parameter is not passed via GET
I have the following HTML code, and in the action Seto the address obeying my query string: <form name="searchCard" class="serachCard" method="get" action="painel.php?spv=nav/buscarCard">…
-
8
votes1
answer655
viewsProblem with printing HTML elements on the screen
I’m making a software (minigame) that works with a deck. In the administrative panel of the same I need to view and consult the game deck. I perform a query in the database and, with the results…
-
8
votes5
answers48166
viewsHow to increase or decrease the div proportional to 720x540?
I’m trying to solve this question because I have a slide on. ppt with dimensions of 720w and 540h and my page is net, so the reason for increasing or decreasing proportionally. Example:…
-
8
votes6
answers52587
viewsHow do I use a database on an HTML site?
I am interested in making a site that will use a database, many told me they use Mysql to do this, but I have no knowledge about it, installation, use etc. I have knowledge in PHP, HTML, CSS and…
-
8
votes3
answers2494
viewsTable css type excel
I am creating a table for insertion/query of data that is the closest to the format of an excel sheet. My table: Problem: As the image above shows, when placing a input in a td, it does not occupy…
-
8
votes3
answers7891
viewsHow to create a click event that is only called when clicking outside a div?
I need you to click off a div (is a registration screen), the same if close. What selector should I use so that clicking anywhere outside the div that div closes? $(????).on("click", function(){…
-
8
votes5
answers35057
viewsHow to define the border color of a table without CSS?
Is there any way? I don’t want CSS either external or internal, only pure html. Follow my code. <table widths="30;60" cellpadding="1.5" border="1"> <tr> <td> <p…
htmlasked 11 years ago Joao Paulo 11,760