Category ‘HTML’
- TECHPULP |
How to define local links in a web page
The local links in a web page are called anchors. To define an anchor in a HTML page, create a dummy “a” link as shown below. <a id="chapter1"></a> Create a link that user can click on to go to the... - TECHPULP |
How to force a HTML link to open in a new TAB
Typically it is good to open a link which takes the user out of current website in a new window or a new TAB so that the user doesn’t leave the original site. The link target can be specified as... - TECHPULP |
How to open a new window on click of a link using JavaScript
In JavaScript, window.open method can be used to open link in a new window. This method can used to open a new window by setting JavaScript as target for a link. You might be wondering why do we need to... - TECHPULP |
How to insert special symbols in HTML
Special characters can be inserted in HTML content using ampersand symbol. The following table provides complete list. ℵ ℵ α α ∧ ∧ ∠ ∠ ≈ ≈ β β • • ∩ ∩ χ χ ♣ ♣ ≅ ≅ ↵... - TECHPULP |
How to align a HTML element like DIV or table in Center using CSS
To center align a DIV or a table, use “margin” property in CSS. Look at the example HTML file below. <html> </head> <title>DIV center align demo</title> <style> .calign { margin: 0 auto; } div { width: 60%; background-color: #fff; }...