html

 

   1. Write HTML codes to display the following output:

         Computer System

·                  Pakistan

..............................................................................................................................

Tourists Spot of Nepal

 

 

< html >

    < head >

        < title > Computer System < / title >

< / head >

< body >

< ul >

< li > SAARC COUNTRY < / li >

< li > Nepal < / li >

< li > Bhutan </li>

< li > Bangladesh < / li >

< li > India < / li >

< li > Sri Lanka < / li >

< li > Maldives </li>

< li > Pakistan </li>

</ul>

< h2 > Tourist spot of Nepal < / h2 >

<ol type = "a">

< li > Kathmandu < / li >

< li > Patan< / li >

< li > Bhaktapur< / li >

<li> Pokhara< / li >

< li > Lumbini< / li >

< / ol >

< / html >

 2.Make a HTML document which shows following contents:

    1. (a+b)2 = a2+ 2ab + b2
    2. (a-b)2 = a2-2ab + b2
    3. (a+b)3= a3-3a2b + 3ab2+ b3
    4. (a-b)3= a3-3a2 b + 3ab2 -b3
    5. (a+b)4=a4+4a3b+6a2b2+4ab3+b4
    6. 2H2+O2→2H2O
    7. CH4+O2→CO2+2H2O
    8. Zn+H2SO4→ZnSO4+H2
    9. H2SO2 + 2NaOH→Na2SO4 +2H 2O
    10. 2N2 + 5O2→2Na2O5

<html>

<head>   

<title> Q.N.2 </title>

</head>

<body>

<ol type="i"> 

<li> (a+b)<sup>2</sup> = a<sup>2</sup>+ 2ab + b<sup>2</sup>

</li>  

<li> (a-b)<sup>2</sup> = a<sup>2</sup>-2ab + b<sup>2</sup>

</li>   

<li> (a+b)<sup>3</sup>= a<sup>3</sup>-3a<sup>2</sup>b + 3ab<sup>2</sup>+ b<sup>3</sup>

</li>

<li> (a-b)<sup>3</sup>= a<sup>3</sup>-3a<sup>2</sup> b + 3ab<sup>2</sup> -b<sup>3</sup>

</li>

<li>(a+b)<sup>4</sup>=a<sup>4</sup>+4a<sup>3</sup>b+6a<sup>2</sup>b<sup>2</sup>+4ab<sup>3</sup>+b<sup>4</sup>

</li>

<li> 2H<sub>2</sub>+O<sub>2</sub>&rarr;2H<sub>2</sub>O

</li>

<li>CH<sub>4</sub>+O<sub>2</sub>&rarr;CO<sub>2</sub>+2H<sub>2</sub>O

</li> <li>Zn+H<sub>2</sub>SO<sub>4</sub>&rarr;ZnSO<sub>4</sub>+H<sub>2</sub>&uarr;

</li>

<li> H<sub>2</sub>SO<sub>2</sub> + 2NaOH&rarr;Na<sub>2</sub>SO<sub>4</sub> +2H <sub>2</sub>O

</li> <li>2N<sub>2</sub> + 5O<sub>2</sub>&rarr;2Na<sub>2</sub>O<sub>5</sub>

</li>

</ol>

</body>

</html>

 

3. Make following table:

Name

Class

Ram Shrestha

X

Shyam Sharma

IX

<html>

<head>

            <title> Practice question</title>

</head>

<body>

<table border="1" width="100%">

<tr>

<th> Name</th>

<th> Class</th>

</tr>

 

<tr>

<td> Ram Shrestha</td>

<td> X</td>

</tr>

 

<tr>

<td> Shyam Shrestha</td>

<td> IX</td>

</tr>

 

</table>

</body>

</html>

 

 

4. Marquee a scrolling text

 

<html>

<head>

<title>HTML marquee Tag</title>

</head>

<body>

<marquee direction = "left">up</marquee>

</body>

</html>

 

note: Direction-left,right,up and down

 

5. Ordered and unordered list

 

<HTML>

            <HEAD>

                        <TITLE>LAB work</TITLE>

            </HEAD>

            <BODY>

<H1>Days in a Week </H1>

<b>Ordered List</b>

<ol type="1">

<li>Sunday</li>

<li>Monday</li>

<li>Tuesday</li>

<li>Wednesday</li>

<li>Thursday</li>

<li>Friday</li>

<li>Saturday</li>

</ol>

<hr>

<b>Unordered List</b>

<ul type="fill round">

<li>Sunday</li>

<li>Monday</li>

<li>Tuesday</li>

<li>Wednesday</li>

<li>Thursday</li>

<li>Friday</li>

<li>Saturday</li>

</ul>

 

            </BODY>

6. 









</HTML>

    <HTML>

<HEAD>

<TITLE>LAB work</TITLE>

</HEAD>

<BODY>

<H1><MARQUEE><p style="color:GREEN">ROSE BUD SCHOOL</p></MARQUEE></H1>

<img src="image.jpg" alt="Girl in a jacket" width="100" height="100">

<br>

<a href="https://www.rosebudschoolnepal.org//">rosebud school website</a>


</BODY>

</HTML>

      

Answer the following questions in short: 



a. Who developed HTML?

HTML was developed by Tim Berners-Lee.

b. In which language, HTML was based?

HTML was based on the Standard Generalized Markup Language (SGML).

c. What are tags?

Tags in HTML are used to define elements on a webpage, such as headings, paragraphs, links, and images.

d. Which tag is used to start HTML codes?

The <html> tag is used to start HTML codes.

 

e. Inside which tags table related tags are written?

Table-related tags in HTML are written inside the <table> and </table> tags.

 

f. Which tag is used to break the line?

The <br> tag is used to break the line in HTML.

 

5. Answer the following questions:

 

a. What is HTML? Explain it in brief.

HTML, or Hyper Text Markup Language, is a markup language used for creating and structuring web pages. It uses tags to define different elements on a webpage.



b. What are pair tags? Give examples.

Pair tags in HTML come in pairs, with an opening tag and a closing tag. Examples include <p> for paragraphs, <h1> to <h6> for headings, and <a> for links.


C. What are singular tags? Give examples.

Singular tags in HTML don't have a closing tag and are self-contained. Examples include <img> for images and <br> for line breaks.



d. Explain the basic tags of HTML.

Basic tags of HTML include <html>, <head>, <title>, <body>, <h1> to <h6> for headings, <p> for paragraphs, <a> for links, <img> for images, <table> for tables, <ul> and <ol> for lists, and <br> for line breaks.



 

e. What are attributes of tags? Explain the attributes of <Body> tag.

Attributes of tags provide additional information about an element. For example, the <body> tag in HTML can have attributes like bgcolor for background color, text for text color, and link for link color.

f. What is a table? Explain the different tags supported by a table.

A table in HTML is used to display data in rows and columns. Tags supported by a table include <table> for the table itself, <tr> for table rows, <td> for table data cells, <th> for table headers, <caption> for table captions, and <thead>, <tbody>, and <tfoot> for table sections.

g. What are lists? Explain the different types of list supported by HTML.

Lists in HTML are used to organize content in a structured manner. Different types of lists supported by HTML include ordered lists (<ol>), unordered lists (<ul>), and definition lists (<dl>).

h. What do you meant by formatting a page? Explain different character formatting tags.

Formatting a page in HTML involves applying styles to text and elements. Different character formatting tags include <b> for bold, <i> for italic, <u> for underline, <em> for emphasis, and <strong> for strong emphasis.

 

i. What is a link? Explain the different types of links supported by HTML?

A link in HTML is an element that allows users to navigate between web pages. Different types of links supported by HTML include internal links (linking to other pages on the same website) and external links (linking to pages on different websites).

j. What are the two different components of link? Explain with an example.

The two components of a link in HTML are the anchor text (visible text that users click on) and the href attribute (the destination URL). An example of a link is <a href="https://example.com">Click Here</a>.

 

k. Define hyperlink. Why is it necessary to use hyperlink in a document

A hyperlink in a document is a clickable element that allows users to navigate to another location, such as a different webpage, within the same document, or to an external resource. It is necessary to use hyperlinks in a document to provide navigation and access to additional information or resources.





 


Popular posts from this blog

Computer