Questions tagged as 'html'

3
answers

click on a button play on YouTube iframe

I have iframe of Youtube, and a div over it, I want it when the user clicks on that div it plays in the video. My HTML: <div class="p-relative"> <div class="botaoMaior"> <div class="btplay">&l...
asked by 02.02.2015 / 11:33
3
answers

Comments weigh?

Reviews weigh? I leave comments throughout my code, will influence something on the site? I'm saying more specifically in HTML, CSS, JavaScript, PHP.     
asked by 19.04.2017 / 14:04
4
answers

What is the priority of HTML? "Id" or "class"?

I'd like to know if HTML treats id or class as priority. For example, if I'm setting up my structure and do the following: <div class="teste1" id="teste2">TESTE</div> What will he do? Accept what was stated firs...
asked by 10.11.2014 / 12:08
6
answers

Difference between absolute and relative URLs in page content

The contents of the page can be requested by entering a complete URL, relative or relative to the root of the location where our base file (usually index.php or index.html ): Full <script src="http://www.meusite.com/assets...
asked by 22.01.2014 / 20:41
2
answers

How do I do SEO?

I started a blog a short time ago, but long enough already to have visitors, 2 months already, but I have none! And I've already written 10 articles! I was told that I had to invest in website SEO unless I wanted to pay Adwords. I do not underst...
asked by 12.12.2015 / 22:32
3
answers

Why does "return false;" in a click event cancel the link opening?

Why does return false prevail over, for example, a href? We have this code as an example: <!DOCTYPE html> <html> <head> <title>Uma página linda</title> </head> <body>...
asked by 19.02.2015 / 17:03
5
answers

Why put JS, CSS and images on another server?

On most sites I noticed that they use another server to load scripts, CSS and images. Why do they use it?     
asked by 04.04.2014 / 14:14
3
answers

How to write code as an example, without executing?

I'm doing the translation of a book to an HTML page, there in the book have the codes, but how do I make my HTML display my code, HTML, PHP and JavaScript without running them?     
asked by 24.04.2015 / 15:02
2
answers

What is the purpose of alt in an img / tag?

Studying about HTML5 I came across the alt property being used in the <img /> tag. Example: <img src="https://s-media-cache-ak0.pinimg.com/736x/9e/fd/27/9efd27afef4e8127923fbce92b8c967d--minions-minions-funny-minio...
asked by 11.11.2016 / 11:32
3
answers

How to change the title of each PHP page dynamically?

I do not understand almost anything about PHP. Once a friend sent me a code that allowed me to separate my page into several parts and then get those parts back in case I change anything in the scripts and style sheets so I do not need to go pag...
asked by 16.03.2014 / 20:25