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
-
11
votes5
answers1091
viewsPros and cons of a 100% HTML/Javascript web application
I am seriously thinking of developing a web application, using only HTML/Javascript on client-side for performance gain and by which, any and all necessary communication with the server is made…
javascript html web-service web-application single-page-applicationasked 9 years, 5 months ago Iago Correia Guimarães 799 -
11
votes5
answers1015
viewsLine with image in the middle
I wanted to style a hr to support an image in the middle. Type: ------ image ------ I thought of making the image already with line ready in Photoshop, but this makes it difficult to be responsive.…
-
11
votes3
answers26056
viewsHow to block special characters in the field
How not to allow the user to enter special characters such as *-/+.,:;[]{}ªº^~?<> in the field of question?
-
11
votes2
answers496
viewsWhat exactly is hypertext?
I searched and couldn’t find an answer on this: CSS is considered hypertext? I have this doubt because PHP, which is hypertext preprocessor, can also pre-process CSS and even JS.
-
11
votes3
answers1147
viewsAdd and remove styles of a particular selection by clicking a button
I have a javascript function that applies a certain style in some classes, and would like to know how to take this style by clicking the same button. var botao = document.getElementById("troca");…
-
11
votes3
answers147
viewsHow to put Html snippet on all child elements except the last one?
I have a dynamically generated table, and I want to put a input within each td. I can get the id of the tr, then I do: $("#id").children().html("<input type='text' value='" + valor + "' />");…
-
11
votes2
answers4778
viewsHow to load default image if src="" does not find?
Is there any way to upload a standard image, using only HTML, case the first src="" can’t find the file? <img src="ola_mundo.png" alt="Olá Mundo"> // Existe algum atributo para isso?…
-
11
votes3
answers347
viewsDifference between validation and mask
I am making form validations. As for validation, everything goes well, but how to format the fields according to the data entered? Example: in a date field, bars are added automatically, in a phone…
-
11
votes3
answers179
viewsWhy does CSS work with "fake" HTML elements?
I saw some examples like this on the internet, showing that html elements with custom names work in relation to the application of css styles. elementofake { color:red; font-size:30px;…
-
11
votes3
answers17994
viewsWhat is the Difference Between HTML.Actionlink vs Url.Action?
Reading some tutorials of ASP.NET MVC I found these two helpers being used to do basically the same thing, which was to direct the user to a new view. So I wonder if there’s any more remarkable…
-
11
votes2
answers2875
viewsWhen should I use disabled, read-only or hidden fields?
If I have a form where some fields are fixed, what is the best way to present these fields to the user, from the UX point of view? A common field, disabled: <label>Foo: <select name="foo"…
-
11
votes3
answers432
viewsCSS operators with @
As I had asked about the operator @media, I was curious, because I saw other operators that started with @and I would like to understand what they serve operators like this, and which ones exist.…
-
11
votes1
answer293
viewsWhat is and how does CSS Post-processing work?
What would be a CSS post-processing? I’ve heard of pre-processed CSS, like Gulp does when it compiles a SASS in CSS. But recently I heard the term post-processed CSS and I didn’t really understand…
-
11
votes2
answers458
viewsCircle with curved edge
I’ve been tasked to make a website, and I’m having trouble making a detail in CSS I need to make a round edge that has a curved ending, so you understand better, I’ll show you photo and post my code…
-
11
votes3
answers1622
viewsWhat are the allowed elements within the <P> tag?
I’ve been through some trouble and I could still contemplate in that reply that the tag <p> does not accept any element as a child. It seems to me that there are exceptions to some tags, IE,…
-
11
votes3
answers7823
viewsWhat is the semantic difference between Section and article?
Searching, I found some questions related to HTML5 tags: What is the difference between <div> and <Section>? How to use such semantic tags? HTML5: difference of Section and article MDN…
-
11
votes2
answers680
viewsIn HTML what is an Undetermined Checkbox and how to use this status along with CSS?
As far as I knew a input of the kind Checkbox could have three states, checked, unchecked and disabled. But it seems he has a fourth state which is the undetermined. See in the image a comparison of…
-
11
votes2
answers295
viewsDoes Google index images in SVG (inline) or Base64?
I was thinking of turning the logo of a site to SVG, but I was thinking of using it in a way inline as code within tags <svg>. To be inline, I can interact as the SVG directly through the CSS,…
-
10
votes5
answers62952
viewsHow to remove edge of input and textarea from all browsers when clicked?
Just look at the image to get an idea: When clicked this edge with blue shadow becomes visible. I think it is standard of all browser. Some solution?…
-
10
votes4
answers4814
viewsGet value from external HTML TAG "<link>"
I need to take the value (or values if you have more than one) from the TAG <link> of an HTML from another site. Trying: $url = 'http://localhost/teste/'; $content =…
-
10
votes3
answers4291
viewsWhat is the best way to select an option by the text and not by the value in jQuery?
I have a select and would like to select a value according to the text of another field that the user clicked. For example. By clicking a "p" tag with the "April" text I want to select the "April"…
-
10
votes4
answers1193
viewsColor loop in text
I have the following HTML structure: <font class="a">J</font> <font class="b">o</font> <font class="c">ã</font> <font class="d">o</font> <font…
-
10
votes2
answers1100
viewsWhat is the difference between Meter and Progress in HTML5?
What is the difference of these two html tags, only the appearance(layout,color) is different? <meter min="0" max="100" value="22"></meter> <progress value="22" max="100">…
-
10
votes3
answers265
viewsW3C HTML validator accuses "Empty Heading"
I’m trying to validate my html and it’s giving me the following message: Line 328, Column 34: Empty heading. <h3 class="titulo-chamada">A internet no controle</h3> He hinted that the…
-
10
votes2
answers146605
viewsHow to get input using HTML and Javascript
As a beginner in the language 'JS', I would like to know how to simply pick up text from a <form> (without forwarding to another page and without changing the URL) and passing to a function…
-
10
votes3
answers1415
viewsWhen should I use elements '<ul>'?
Recently I was thinking about the structure of a component for a project in which we are trying to follow the outlines of the W3C semantics, but I ended up with a certain doubt. Here is the…
-
10
votes6
answers4316
viewsKnow number of checkbox selected
How many checkboxes is being selected and count. Selected 1, mark 1, selected another mark +1, took 1 mark -1. I would like to count.
-
10
votes2
answers4983
viewsHow do I let the bottom of the page degrade with Javascript?
It would be something like the image below; I have no idea how to do this. I don’t want to use image, I want to generate with code.…
-
10
votes1
answer3152
viewsupload without refresh with Formdata, jquery
I need to update my script and I want to adapt my upload formats to be upados without the need to refresh. I didn’t enjoy using third party script so I researched and came across this function of…
-
10
votes2
answers1019
viewsHow to avoid HTML Injection and XSS on . JSP pages?
In the PHP have seen uses of htmlspecialchars and mysqli. But in Java there is some way to avoid XSS and HTML Injection? I would also like to know what would be the best way (the safest): Escaping…
-
10
votes4
answers11586
viewsText that you type little by little?
Guys, I see an effect on the sites. The Text will appear (as if someone were typing it). Automatically I related to Mom, but the effect is not cool. You know how to do?
-
10
votes6
answers4502
viewsHow to use two CSS attributes at the same time?
The code: <!DOCTYPE html> <html> <body> <h1 style="color:#CC0099">Um dia eu aprendo</h1> <p style="color:red">This is a paragraph.</p> </body>…
-
10
votes3
answers11643
viewsHow to convert code block into single line?
I need to convert certain blocks of code into a single line. How can I do that? I’m using Notepad++
-
10
votes3
answers3580
viewsHow to use double and single quotes?
Let’s imagine the following example: $color = "red"; echo ("<button onclick='change_background("/red"/);'>$color</button>"); What should I use when I have 3 levels using the example in…
-
10
votes3
answers1011
viewsPerformance with Multipart/form-data
Regardless of the language used on the server side (php, Asp, jsf, etc), there is some problem with adding the attribute enctype="multipart/form-data" whether or not on page forms nay upload?…
htmlasked 8 years, 12 months ago Fernando Camillo 147 -
10
votes2
answers124
viewsMinified pages and processing for each request
If I want to minify an HTML page from PHP I will be more winning or losing? More clearly: I want to keep the formatting and practicality for when editing the page, preserving the edentation. But I…
-
10
votes2
answers29411
viewsHow to export a DIV HTML to PDF by rederizing CSS?
Does anyone have a code that can export a DIV to PDF by rendering all the CSS of this DIV? Is it better to do this in the backend (Java) or in the frontend (Javascript)? If anyone can help, thank…
-
10
votes2
answers28807
viewsHow to insert a first line indent with css?
I don’t know if the name is even indent, but how do I apply this space as in the image below in my paragraphs with css? Have some class in bootstrap?…
-
10
votes2
answers781
viewsWhat functions are form tags in HTML5?
The question refers to tags not so commonly used, for example, <fieldset>, <legend>, <label> and <optgroup>. Recently I had to do extensive work involving registration forms…
-
10
votes5
answers3128
viewsWhat is CDN and how do I enable it in my Javascript files?
On a performance verification site I received the message "Use CDN for all Static Assets" for my Javascript files. What are CDN and how to implement them?
-
10
votes1
answer8714
viewsInformation Protection when inspecting code via browser
I would like to know if there is any way to hide the visible code in the inspect/Ctrl+U or make it difficult. Why I’ve been researching PHP makes it difficult to query the code, check it? What…
-
10
votes2
answers1616
viewsWhat is the use of the pseudo class :root?
I’m learning about pseudo structural classes, but I haven’t found an article about this pseudo class yet, and I only find it in English.
-
10
votes2
answers7290
viewsWhat is the importance of Integrity and Crossorigin attributes?
I have been doing some research, but I still have this doubt. Currently some frameworks, your link and script are coming with attributes integrity and crossorigin. Ex.: <link rel="stylesheet"…
-
10
votes1
answer338
viewsWhat is the purpose of the "Image" input?
Only now have I realized these days that there is one input with the attribute type equal to "image". I saw this being used on some site (very old by the way) to submit a form. I have the following…
-
10
votes3
answers228
viewsWhat is the default value for the "resize" attribute in a textarea?
How to leave a textarea adjustable after it was set "resize: None"? For example, I have a textarea which has a value defined as resize:none in CSS, but I want to leave the default value by placing…
-
10
votes2
answers256
viewsHow to print only the first 5 characters?
I need it to be displayed up to a maximum of 5 characters of the contents of each table cell in a specific resolution. I don’t know if there are any Pseudo Elemento do what I need, something like:…
-
10
votes3
answers2456
viewsHow do I know if I’m on an anonymous or normal Chrome page?
I’m making a page html for use locally on my PC with Windows, but I needed some way to know which way I am in the browser Chrome. I wanted to present a phrase that would change according to the way…
-
10
votes1
answer729
viewsWhen should an ordered list actually be an ordered list in HTML?
In HTML there are two basic elements to define a list: <ol>, representing an ordered list; <ul>, which represents a disorderly list; But when, in fact, it makes sense to represent an…
-
10
votes3
answers645
viewsWith CSS to cut text? Type a cut text effect or broken font?
I was wanting to create a text to use as a tag <h2> on the site. The idea is that the element continues as a text, I don’t want an image, because I want to keep the text semantic and…
-
10
votes4
answers94
viewsHow do I make the CSS class not affect anyone who has a particular class?
I have a ul where it is a menu in which items that are not inside a ul son have the tag dropdown-toggle. The items that are in ul son doesn’t have that tag. The class .navbar-solid is applied to…