<!DOCTYPE html>
<html>
<body>
<form name=myform>
<input type=button value="Try it now"
onClick="
s=prompt('Enter your first name','Name');
n=prompt('Enter your first name','Name');
document.write('hello'+s +n+' !')">
</form>
</body>
</html> '
上記のコードでは、「hello」を以下のコードに置き換えたいと思います。helloの代わりにこのコードを入れてください:
<div class="hreview">
<span class="item">
Reviewed by <span class="reviewer">john paul</span>
Rating:
<span class="rating">5</span>
</div>
helloの代わりに私が書いたコードをフォーマットせずにコードを表示する必要があります。