Questions tagged as 'html'

3
answers

Is there a performance difference between "echo" of content and content in HTML?

Does using PHP echo to display any content on the screen differs in performance from using that same direct content in HTML? For example, if I use a PHP file: <?php echo "<p>Seja bem-vindo ao Stack Overflow!</p>";...
asked by 29.01.2016 / 18:15
4
answers

How do I enable a button only when all inputs are filled?

I have a <button> that is rendered as disabled (disabled) when the page is initially loaded. I would like it to be enabled (enabled) when all data is filled in <input> 's. How could I do this using jQue...
asked by 21.02.2014 / 12:41
1
answer

Building a "3D" building with HTML, CSS and JS

How can I reproduce the image below using HTML, CSS and JS (maybe images)? The numbers of "floors" are unpredictable and each "floor" should be "clickable," a <a href="#"></a> , or something like that. Is it possible to...
asked by 18.02.2015 / 16:38
2
answers

When should I use fields that are disabled, read-only, or hidden?

If I have a form where some fields are fixed, what is the best way to present these fields to the user, from UX's point of view? A common field, disabled : <label>Foo: <select name="foo" disabled> <option value="1...
asked by 13.08.2016 / 06:34
1
answer

What is the purpose of the "return true" command at the end of a function?

I noticed that in many functions in javascript I see at the end a return true . function EscreveDados(){ document.getElementById("divData").value = 'texto'; return true; } In HTML we have the tag which calls the function fol...
asked by 30.09.2015 / 18:19
1
answer

Mount tree - JSTREE

I was reading about JSTree and saw that it understands a Json that can be placed in the tree without recursion, ie, it needs the default id,parent,text according to documentation . I created a self referenced table called...
asked by 10.12.2014 / 01:34
4
answers

Get TAG value from external HTML link

I need to get the value (or values, if I have more than one) of TAG <link> of an HTML from another site. Attempt: $url = 'http://localhost/teste/'; $content = trim(file_get_contents($url)); preg_match("/<link(.*?)>/i",$co...
asked by 11.02.2014 / 20:28
3
answers

How do I know if I am on an anonymous or normal chrome page?

I'm making a page html to use locally on my PC with Windows , but I needed some way to know how I'm in the browser Chrome . I wanted to present a phrase that would change depending on the way I was. Example: Incognito...
asked by 02.08.2017 / 12:09
3
answers

Insert video or HTML or external JS into a div

In the site I'm developing, I'd like to call an external video within a div , just using the video ID. Example: https://www.youtube.com/watch?v=UJAwNkhbYWM In case the video ID is this: UJAwNkhbYWM . Whenever you create...
asked by 06.08.2014 / 23:23
2
answers

Use "left: -9999px" instead of "display: none"? But why?

I began to wonder about this subject a short time ago. I read in some article, which I can not remember what it is, that by "visibility issue" instead of using display: none or visibility: hidden should be used left: -9999px...
asked by 21.11.2017 / 18:03