-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtut42.html
45 lines (35 loc) · 1.38 KB
/
tut42.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>string and string methods </title>
<script>
// var string='this'
// var name ="harry"
// var channel="code with harry"
// var message ="few people are good like "
// var temp=`${message}harry but only few people like ${name}`;
// console.log(temp)
// var nam1e= message.length;
// console.log(`the lenght of message is ${nam1e}`)
// console.log("this is \\n shravan")
// var y = new String ("this");
// console.log(y);
// document.getElementById('content').innerHTML = '<p>this is inner HTML</p>';
document.getElementById('content').innerHTML = '<p>This is inner HTML</p>';
// console.log(string+name+message)
// console.log(string+name+messa)
</script>
</head>
<body>
<div id="content">
<!-- Initial content here -->
</div>
<div class="container">
<h1>am shravan kumar from planet earth</h1>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Cum nostrum dolorum cupiditate ipsa id voluptatibus quia rerum minus, consequuntur ducimus provident, maxime ex officiis rem perspiciatis</p>
</div>
</body>
</html>