#webtech1

Thread

Nityesh Agarwal September 24, 2019 at 07:43 PM

semester last yr

Nityesh Agarwal September 24, 2019 at 08:03 PM

1.b.1
https://www.w3schools.com/tags/att_input_type_hidden.asp

Nityesh Agarwal September 24, 2019 at 08:05 PM

1.b.2

Nityesh Agarwal September 24, 2019 at 08:07 PM

2.b.1
https://stackoverflow.com/a/19030857

Nityesh Agarwal September 24, 2019 at 08:10 PM

3.a.1
https://stackoverflow.com/a/47177536

Nityesh Agarwal September 25, 2019 at 06:05 AM

Meta tag

Nityesh Agarwal December 19, 2019 at 10:38 AM

1a 2
https://www.techopedia.com/definition/288/web-browser

Nityesh Agarwal December 19, 2019 at 11:18 AM

1.b.3

Nityesh Agarwal December 19, 2019 at 11:30 AM

2.a.ii)

<button type="button" onclick="alert('Google Chrome!')">Click Me!</button>

<font color="red">This is some text!</font>

&lt;script language = "JavaScript"&gt;
function handCursor(o) {
o.style.cursor='hand';
o.style.color='red';
var x = document.getElementByTag("a");
x.style.color = "red";
}
function normalCursor(o) {
o.style.color='black';
}
&lt;/script&gt;
&lt;a onMouseOver="handCursor(this)" onMouseOut="normalCursor(this)"
style = "color:blue"&gt;Browser Name&lt;/a&gt;

Nityesh Agarwal December 19, 2019 at 11:56 AM

2.a.iii)
<style>
/* Style the element with the id "myHeader" /
*#myHeader
 {
 background-color: lightblue;
 color: black;
  padding: 40px;
  text-align: center;
}

/* Style all elements with the class name "city" /
*.city
 {
 background-color: tomato;
  color: white;
  padding: 10px;
}
</style>

<!-- A unique element -->
<h1 id="myHeader">My Cities</h1>

<!-- Multiple similar elements -->
<h2 class="city">London</h2>
<p>London is the capital of England.</p>

<h2 class="city">Paris</h2>
<p>Paris is the capital of France.</p>

<h2 class="city">Tokyo</h2>
<p>Tokyo is the capital of Japan.</p>

Nityesh Agarwal December 19, 2019 at 01:47 PM

2b. ii.
https://www.w3schools.com/css/css_howto.asp

Nityesh Agarwal December 19, 2019 at 02:07 PM

Ajax 4
https://www.w3schools.com/xml/ajax_intro.asp

Nityesh Agarwal December 19, 2019 at 02:09 PM

4.b.iii

Nityesh Agarwal December 19, 2019 at 02:25 PM

3.a.i
https://stackoverflow.com/a/47177536/7082018

Nityesh Agarwal December 19, 2019 at 02:39 PM

3.b.ii)
```

var ptr points to the br node

var p_node = ptr.parentNode.parentNode;
p_title = p_node.getAttribute("title");
alert(p_title);```

Nityesh Agarwal December 19, 2019 at 06:57 PM

3 a ii.

Nityesh Agarwal December 19, 2019 at 07:07 PM

3a iii.
var elems = document.body.getElementsByTagName("p");
for (i of elems)
elems.documenteditor.editor.toggleTextAlignment('Justify');

Nityesh Agarwal December 19, 2019 at 07:18 PM

4a iii.
function isNumber(str) {
isprice = /^\d*.?\d+$/;
return isprice.test( str );
}

Nityesh Agarwal December 19, 2019 at 07:23 PM

4a i.
<!DOCTYPE html>
<html>
<body>

<h2>JavaScript new Date()</h2>

<p>Using new Date(), creates a new date object with the current date and time:</p>

<p id="demo"></p>

<script>
var d = new Date();
document.getElementById("demo").innerHTML = d;
</script>

</body>
</html>

Nityesh Agarwal December 19, 2019 at 07:24 PM

output:
JavaScript new Date()
Using new Date(), creates a new date object with the current date and time:
Fri Dec 20 2019 0017 GMT+0530 (India Standard Time)