Computer Applications
"CSS comprises of style rules that are interpreted by the browser and then applied to the corresponding elements in your document." Illustrate the use of Property and Value style rules in CSS.
CSS
1 Like
Answer
Property defines how the elements with distinctive styles should look on the web page. For example, Font-family, color, background, border, etc.
Values are assigned to properties. For example, the value of font-family property can have font names like Monotype Corsiva, Times New Roman, Arial,etc.
Consider the following example in which the paragraph is to be displayed in blue color and the font is Arial:
P
{
Font-family: Arial; Color: Blue;
}
Answered By
1 Like
Related Questions
Write the difference between the colspan and rowspan attributes of an HTML table and give one example of each.
Giving examples, write the difference between a text box and a drop-down list.
"Open Source refers to something that is publicly accessible, and therefore, can be modified and shared by anyone." What is open source software? Write the difference between open source and free software.
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?