function
funMake() {
for
(
var
i=0; i<3; i++) {
//create an element
el = document.createElement(
'p'
);
//add an element
document.getElementById(
'd1'
).appendChild(el);
}
document.getElementsByTagName(
)[0].innerHTML =
'Hello World!'
;
)[1].innerHTML =
'Привет Мир!'
)[2].innerHTML =
'To be or not to be?'
<!DOCTYPE html>
<
html
>
head
meta
charset
=
"utf-8"
/>
title
>New Page</
script
src
"js/script.js"
></
</
body
div
id
"d1"
funMake();