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

How to make a div 100% height of the browser window

There are a couple of CSS 3 measurement units called: Viewport-Percentage (or Viewport-Relative) Lengths What are Viewport-Percentage Lengths? From the linked W3 Candidate Recommendation above: The viewport-percentage lengths are relative to the size of the initial containing block. When the height or width of the initial containing block is changed, they are scaled accordingly. These units are vh (viewport … Read more

Can I apply a CSS style to an element name?

You can use the attribute selector,  Run code snippetExpand snippet Be aware that it isn’t supported in IE6. Update: In 2016 you can pretty much use them as you want, since IE6 is dead. http://quirksmode.org/css/selectors/ http://reference.sitepoint.com/css/attributeselector

Is there a vr (vertical rule) in html?

No, there is no vertical rule. EDIT: It’s 2021 (twelve years after I answered this question), and I no longer think my original explanation is true: (original explanation) It does not make logical sense to have one. HTML is parsed sequentially, meaning you lay out your HTML code from top to bottom, left to right … Read more