Playing Sound In Hidden Tag

I agree with the sentiment in the comments above — this can be pretty annoying. We can only hope you give the user the option to turn the music off. However…  Run code snippetExpand snippet The css hides the audio element, and the autoplay=”true” plays it automatically.

CSS max-height not working

The problem is your browser. Maybe you could wrap this div in another div that has the fixed height of 25px. Of course this wouldn’t be exactly the same as max-height. An article about a solution. Edit: According to Microsoft it should work in IE7+. Have you set an appropriate doctype? If not IE7 uses an old … Read more

How do I embed a Vimeo video in HTML?

If you are signed in on Vimeo, an go to your video settings, there should be an menu “Embed”. Click this item and you will get various embedding options. At the right side of the window (below your profile icon) there will be a button Embed code. Clicking this will give you the Embed code. Here … Read more

Favicon not working

To place a Favicon on your site you would use the following in the <head> tag You need to be sure that the path is correct for the icon. If the path is not correct it will not appear. I have also seen caching issues that makes it seem that the icon isn’t working. Always try to … Read more

How to view an HTML file in the browser with Visual Studio Code

For Windows – Open your Default Browser – Tested on VS Code v 1.1.0 Answer to both opening a specific file (name is hard-coded) OR opening ANY other file. Steps: Use ctrl + shift + p (or F1) to open the Command Palette. Type in Tasks: Configure Task or on older versions Configure Task Runner. Selecting it will open the tasks.json file. Delete the script displayed and … Read more