Questions tagged as 'html5'

6
answers

How to make a custom ScrollBar?

How to modify the scrollbar of a div , to appear as in the example of the image below (Hangouts) instead of the default operating system scrollbar?     
asked by 07.01.2014 / 04:18
3
answers

A base64 image loads faster than a url?

I'm developing a page where I need to have the images displayed only after loading them. And, in order to keep the space of the images empty, I thought of using some image of "loader". So, I thought it would not do any good to display imag...
asked by 28.10.2015 / 16:48
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
1
answer

About the boolean attribute defer and async vs optimization

The use of async and defer for optimization is a good subject to play when we want pages loaded faster and also without blocking problems. Questions: Using async , if the browser does not support it, it ignores the att...
asked by 10.01.2015 / 21:53
4
answers

What is the modern alternative to framesets?

I know that the frame that used to load a few pages into one is no longer used, on the internet there is a lot of content saying that this is obsolete. But what would be the ideal alternative for this purpose? Load a page in a given size and...
asked by 08.05.2014 / 06:46
3
answers

When should I use the / img tag or the CSS background property?

When should I use a </img> HTML tag to display an image? And% of% CSS? Factors such as accessibility and browser support can influence the choice?     
asked by 16.03.2017 / 15:12
3
answers

What is the difference between div and section?

I was reading here about the element <section> . I have read the specification, read some articles on, and still can not understand what benefit this element brings is no longer covered by the <div> element. I saw t...
asked by 27.05.2014 / 14:20
3
answers

How to observe an error in the iframe element with attribute "sandbox"

I have in my document a iframe with the sandbox attribute. With javasript I read a Markdown file and parse using the showdonwjs library and add this result to attribute srcdoc of iframe and result is expe...
asked by 26.10.2016 / 08:39
3
answers

Why is it wrong / bad to repeat an HTML ID?

I think the title says it all, why is it wrong to repeat HTML IDs? I notice lots of people doing things like: <div id="foo">bar</div> <div id="foo">baz</div> To apply CSS and understand the problems that this caus...
asked by 27.07.2018 / 17:10
2
answers

Working with websockets

I'm trying to use WebSockets in PHP and Javascript and I'm confused, it uses the ws: // and wss: // protocol and the hostgator ) do not have these protocols enabled (I think!) and I can not connect, does anyone know if I need to enable these...
asked by 05.06.2014 / 21:39