Interchangeable to the <em> emphasis tag. Using <i> or <em> does not guarantee that the enclosed text will be in italic, visitors can customise many browsers to use alternative methods of rendering tags like <i>, <em>, <b> and <strong>. To be certain of how a tag will render text you must use CSS.
Top
Under HTML4, all elements can be given a unique id - an alphanumerical reference to that element that is not shared with any other element in the document but which can be reused in other documents. (I would suggest that for the purposes of CSS you refrain from giving different elements in separate pages the same ID.)
If you have pages that are often viewed using older browsers you would need to be using browser identification. If not, you can use the id as an anchor reference. Just add an id to any tag - like the <p> or <h2> types - to make it into an anchor and use with a link
<a href="#id">LINK_TEXT</a>.
Top
To assign settings in your stylesheet to an element using the id,
use the id selector # in the stylesheet:
#mailgif {border-style:none;}
Remember: id names must be
unique to that document. If you want to reuse the style information with a different
element in the same page, use a class.
Top
Iframe is part of HTML4 but is only supported by IE3, 4 or 5. There are ways to simulate an iframe in Netscape4 (and other frame capable browsers). For more information on iframe and how to simulate an iframe, see Web Design in a Nutshell by Niederst
Top

<img src="../images/spot.png" border="0" alt="test image"
width="30" height="10">var myimage = new Image(30,`0);myimage.border myimage.complete myimage.height
myimage.width myimage.hspace
myimage.vspace myimage.src="../images/spot.png";
myimage.src
myimage.lowsrc <img src="../images/spot.png" onabort="myhandler();">
or
myimage.onabort=myhandler();<img src="../images/spot.png" onerror="myhandler2();">
or
myimage.onerror=myhandler2();<img src="../images/spot.png" onload="myhandler3();">
or
myimage.onload=myhandler3();The <img> tag must include a src attribute (the location of the image) and the alternate text. Specifying the height and width in pixels can save time when the page is viewed, especially if tables are used, but border, and align are deprecated in HTML4 - use stylesheets.
Top
CodeHelp.co.uk uses only two stylesheets for the whole site, one to control the positioning and transparency of the navigation bar and one to control all the other content. Despite Netscape v4 not fully supporting CSS, the site uses the same stylesheets for both v4 browsers. Single stylesheets can be imported using
<link rel="stylesheet"
href="URL" type="text/css">
but if you need to split your stylesheet files into more sections and then need to import more than one stylesheet into any one document, use @import.
<style type="text/css"> Note: the URL must be absolute and is NOT enclosed in " marks. Also, the stylesheet file must have a .css extension.
@import url(http://mypath/cssfile.css);
</style>
Top
The <ol> and <ul> tags do not specify the indent to be used by the browser but the stylesheet allows the designer to ensure that lists use consistent and predictable formats. The value inside vertically aligns the start of each subsequent line with the list marker. The value outside vertically aligns with the first word of the list item itself, isolating the list marker, making it more noticeable and forming a hanging indent.
Top
<form method=post action="/cgi-bin/dummy.pl">
form.elements[0];
form.inputname;var checked = document.formname.elementname.checked;var checked = document.formname.boxname.defaultChecked;var inputtext = document.formname.element.defaultValue;var myform = document.forms[0].elements[0].form.name;var myname = document.demo.elements[1].name;var mytype = document.demo.elements[2].type;var myvalue = document.demo.inputselect.value;document.demo.text1.focus();
document.demo.text1.blur();document.demo.check3.click();document.demo.area1.select();
<input type="text" name="ID" onblur="my_checkfunc();">blur() events mean that the data has neccessarily changed, so use onchange()<input type="text" name="ID" onchange="my_checkfunc();"><input type="text" name="ID" onfocus="my_checkfunc();">