How-to articles, tricks, and solutions about HTML

How to Remove the Space Between Inline-block Elements

Do not know how to remove space between the inline-block elements? Read the tutorial and find the easiest techniques for the solution to your problem.

How to Add Image in the Title Bar

Make your website look more attractive by using favicons in the title bar. See how favicons are created and find more information about them.

How to Disable the Browser Autocomplete and Autofill on HTML Form and Input Fields

Learn how to prevent browsers auto filling the input fields of HTML forms. Use autocomplete="off" to specify that autocomplete is disabled. See examples.

Input Types for HTML Forms

Learn about mostly usedLearn about mostly used input types which are used when creating HTML Forms. See Syntax and examples. input types which are used when creating HTML Forms. See Syntax and examples.

How to Create Mailto Forms

Learn about how to create a Mailto forms with examples. See also the advantages that Mailto forms can have.

How to Insert Video in HTML

See how to use <video> and <iframe> tags instead of the <embed>, <frame> and <object> tags. Learn how to set video autoplay. Practice with examples.

How to Add Border to HTML Table

Learn how to create an HTML table, how to change HTML table border style using CSS. How to add border to<div>,<h2> &<p> elements. Practice with examples

How to Embed PDF in HTML

Learn how to embed PDF documents in HTML using the a and iframes tags, and make PDF files not downloadable with W3Docs. Practice with examples

How to Set Background Color with HTML and CSS

Learn how to set a background color in general, how to have gradient and changing background colors with examples.

How to Add an Anchor Link to Jump to a Specific Part of a Page

Learn how to create an anchor link to jump to a specific section of a page, and how to link to the anchor from another webpage. Also see how to style the jumping anchor link with examples.

How to Make Button onclick in HTML

If you want to make a button onclick, you need to add the onclick event attribute to the <button> element. Learn How to Make Button Onclick with Examples.

HTML Layout Templates

40 free HTML layout templates that are easy to modify or customize. Download and use them for your website.

How to Redirect a Web Page in HTML

The meta tag with the http-equiv parameter set to Refresh is used to redirect a web page in HTML. Take a look at how you should do it. Practice with examples.

How to Add an HTML Button that Acts Like a Link

There are several ways to place a clickable button on a webpage that will be linked to another page of your website. You can add inline onclick event to HTML button tag, or input tag.

How to Create Button with Line Breaks

Learn different ways of how to create buttons with line breaks. See also how to give styling to them with examples.

How to Open Hyperlink in a New Window

How to open hyperlink in a new tab using the target="_blank" attribute. Learn also how to do that by using JavaScript window.open function. See examples.

How to Create Mailto Links

Learn about how to create a Mailto link in HTML step by step with examples. See also the downsides that Mailto links can have.

HTML5 Page Structure

Learn how to create an HTML5 page step by step. From doctype to different sections. See syntax and examples and practice yourself.

1 2 3 4