76. Write about inserting link and images tag with attributes and examples in HTML. Inserting link How to insert a link Inserting? T he tags used to produce links are the <a> and </a> . T he <a> tells where the link should start and the </a> indicates where the link ends. E verything between these two will work as a link. T he target of the link is added to the <a> tag using the href=" http://www.whateverpage.com " setting. Note: to link to a certain point on a page, you must create an anchor point on that page. To insert an anchor point, simply insert the following code: <A name=insert name>Insert some text here</A> Attribute Links: This creates a link to another page or an e-mail. Using the # sign links to a defined spot on the current page or another page. Examples <a name="tips">Useful Tips Section</a> <a href="#tips">Visit the Useful Tips ...
WAP to enter any number and display: 1. Sum of digits. Ans à REM CLS S: 0 INPUT “ENTER A NUMBER”;N WHILE N <> 0 R = N MOD 10 S = S + R N = N \10 WEND PRINT “SUM OF DIGITS IS” ; S END 2. Sum of even digits. Ans à REM CLS S: 0 INPUT “ENTER A NUMBER”;N WHILE N <> 0 R = N MOD 10 IF R MOD 2 = 0 THEN S = S + R N = N \10 WEND PRINT “SUM OF EVEN DIGITS IS ” ; S END 3. Sum of odd digits. Ans à REM CLS S: 0 INPUT “ENTER A NUMBER”;N WHILE N <> 0 R = N MOD 10 IF R MOD 2 = 1 THEN S = S + R N = N \10 WEND PRINT “SUM OF ODD DIGITS IS” ; S END 4. Sum of square of digits. Ans à REM CLS S=0 INPUT “ENTER A NUMBER”; N WHILE N<>0 R= N MOD 10 S = S+R^2...
WAP to enter any number and display: 1. To reverse the given digits . Ans à REM CLS S=0 INPUT “Enter a number”; N WHILE N<>0 R=N MOD 10 S=S * 10 + R N=N\10 WEND PRINT “The reverse number is”; S END 2. To display product of entered digits. Ans à REM CLS P=1 INPUT “ENTER A NUMBER”; N WHILE N<>0 R= N MOD 10 P= P *R N= N\10 WEND PRINT “THE PRODUCT OF ENTERED DIGITS IS”; P END 3. To display product of even digits. Ans à REM CLS P=1 INPUT “ENTER A NUMBER”; N WHILE N<>0 R= N MOD 10 IF R MOD 2=0 THEN P= P*R N=N\10 WEND PRINT “THE PRODUCT OF EVEN DIGITS IS”; P END 4. To display product of odd digits. Ans à REM CLS P=1 INPUT “ENTER A NUMBER”; N WHILE N<>0 R= N MOD 10 IF R MOD 2=1 THEN P= P*R N=N\10 WEND PRINT “THE...
Comments
Post a Comment