Computer Science, asked by vinitaraghav1999, 1 year ago

Anyone please tell
Questions 1 - part d,c
Question 2 - part b,c,e,f,g

Attachments:

Answers

Answered by gurukulamdivya
0

Answer:

1c) The bgcolor attribute specifies the background color of a document.

Syntax: <body bgcolor="color_name|hex_number|rgb_number">

Ex: <body bgcolor="#E6E6FA"> or <body bgcolor="BLUE">

1d)The <a> tag defines a hyperlink, which is used to link from one page to another.

The most important attribute of the <a> element is the href attribute, which indicates the link's destination.

Syntax and Ex: <a href="https://www.google.com">Visit Google.com!</a>

2b) The background attribute specifies a background image for a document.

ex: <body background="image.jpg">

2c) The comment tag is used to insert comments in the source code. Comments are not displayed in the browsers.

You can use comments to explain your code, which can help you when you edit the source code at a later date. This is especially useful if you have a lot of code.

2e) Hyperlink using the same anchor tag with href attribute as explained in  answer of 1d.

Ex: <a href="https://www.facebook.com">Visit Facebook.com!</a>

2f) this can be done using CSS (Cascading Style Sheets) you have to link your web page to CSS, which will contain the following syntax

/* unvisited link */

a:link {

 color: red;

}

/* visited link */

a:visited {

 color: green;

}

/* mouse over link */

a:hover {

 color: hotpink;

}

/* selected link */

a:active {

 color: blue;

}

2g) This can be done using CSS (Cascading Style Sheets) you have to link your web page to CSS, which will contain the following syntax

p {

 margin-top: 100px;

 margin-bottom: 100px;

 margin-right: 80px;

 margin-left: 100px;

}

If this helped you than please give rating accordingly....

Similar questions