need your help about HTML.

jackdalson's Avatar, Join Date: Apr 2010
Newbie Member
Hi Friends,

i am a fresher for I.T field. i have some questions for HTML. if you know about it please help me.
1> is it possible to display current time and date in my document? if yes explain me how?
2> is it possible to get my visitor's email address?How?
3> What is the difference between TT, KBD, SAMP?

help me for question.

Thanks in advanced.


Last edited by shabbir; 19Apr2010 at 15:37.. Reason: Confine links to signatures.
satyedra pal's Avatar, Join Date: Mar 2010
For displaying current date and time in html we will use javascript without javascript it is difficult and done by the following:
HTML Code:
<script > 

function clock() 

var d = new Date()
var hours = d.getHours()
var minutes = d.getMinutes()
var seconds = d.getSeconds()
var tm = "AM";
if (hours > 11) 
tm = "PM";
if (hours > 12) 
hours = hours - 12;
if (hours == 0) 
hours = 12;
if (minutes <= 9) 
minutes = "0" + minutes;
if (seconds <= 9) 
seconds = "0" + seconds;
var dispTime = "the time is :" +hours + ":" + minutes + ":" + seconds + " " + tm;
var dte = "<Br>Date of today is :" +d.getDate()+ "/" +d.getMonth()+ "/" +d.getFullYear();
<body onload=clock()>
Problem with visitor E-mail address:
When any visitor is visiting on our profile or anywhere then we can find the record of all visitor for example name of the visitor or other view
information but we will find difficulty to find the Email address of that visitor, it is hide and can not be access by other.

Difference between TT,SAMP and KBD:-
TT=> This is a tag that use to display "teletype text or font" .
SAMP=> This is also a tag .It is used for showing program output in a monoscope font style.
KBD=> This tag is used for entering the text in a bold or special monoscope style.

Last edited by shabbir; 21Apr2010 at 15:09.. Reason: Code blocks
ManzZup's Avatar, Join Date: May 2009
Skilled contributor
2) Problem with visitor e-mail:

You can use a guestbook or a commenting section, or at least a subscribe widget to get the email
BUT the email is given voluntarily by the user, not just collecting like the ip