Getting started with HTML and JS

<!DOCTYPE html>
<html>
<head>
<title>Hi ,This is my page</title>
</head>
<body>
<h1>
<p id=”tempid”> This is a paragraph</p>
<br>
<a href=”http://mentorez.com/”&gt; Click on Mentorez </a>
</h1>
<button type=”button” onclick=’document.getElementById(“tempid”).innerHTML = “Hello JavaScript”‘> Click Me</button>
</body>
</html>

Advertisements

About qainterviews

Software Geek,QA Expert,Blogger
This entry was posted in HTML, JS, Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s