20230112 0759 

 

Ref

[1] "https://kb.iu.edu/d/abai"

[2] "https://www.w3schools.com/html/tryit.asp?filename=tryhtml_form_text"

[3] "https://stackoverflow.com/questions/32540044/display-current-date-in-dd-mm-yyyy-format/32540196#32540196"

 

Font 키우기 [1]

 <font size="+2">This is bigger text.</font>
 <font size="+2">This is bigger text.</font>
 <font size="+2">This is bigger text.</font>

inputbox [2]

<form>
  <label for="fname">First name:</label><br>
  <input type="text" id="fname" name="fname" value="John"><br>
  <label for="lname">Last name:</label><br>
  <input type="text" id="lname" name="lname" value="Doe">
</form>

 

Display current date in dd/mm/yyyy format [3]

n =  new Date();
y = n.getFullYear();
m = n.getMonth() + 1;
d = n.getDate();
document.getElementById("date").innerHTML = m + "/" + d + "/" + y;
<p>
<script> document.write(new Date().toLocaleDateString()); </script>
</p>
<p>Date/Time: 
  <span id="datetime"></span>
</p>
<script>var dt = new Date();
  document.getElementById("datetime").innerHTML=dt.toLocaleString();
</script>
Posted by Weneedu
,


출처: https://privatedevelopnote.tistory.com/81 [개인노트]