Computer Applications
a. Write an external CSS code snippet to set the colour of the web page as pink.
b. Write an inline CSS code to set the Font size for a paragraph as 15.
CSS
7 Likes
Answer
a. An external CSS code snippet to set the colour of the web page as pink is as follows:
body
{
background-color: pink;
}
b. An inline CSS code to set the Font size for a paragraph as 15 is as follows:
<P style="font-size: 15px;"> ...content... </P>
Answered By
4 Likes
Related Questions
Hyperlinks are the highlighted text segments or images that connect to other pages on the web. Based on this, answer the following questions:
a. Which tag is used to create a hyperlink and the attribute used to specify the path of the document to be linked?
b. Give an example of how an image "hello.jpg" can be used as a hyperlink.
c. What are internal links and external links in HTML?
Write the equivalent inline CSS for the following:
a.
<body bgcolor="blue">
b.
<p style="color:blue;">Example</p>
Karan has recently started working as a content writer. Suggest the steps he can take to avoid plagiarism.
Write the HTML code to design the web page as shown below, considering the specifications that follow. You can write the code for any four specifications out of the given five.
Specification 1: Heading of the web page should be "Project Tiger". The links in the page should be green, active links should be pink, and visited links should be orange.
Specification 2: The image "tiger.jpg" is to be inserted below the heading.
Specification 3: The table consists of 6 rows and 2 columns and has border size as 2.
Specification 4: The column heading "Success of the Project Tiger Mission" occupies two columns.
Specification 5: In the last line, "Join the mission!" should be a link to the website "projectiger.com".