Computer Applications
Which one of these name and value declarations would not work ?
- margin:20px 0 0 30%;
- margin;20px 30%:
- margin:20px 30%;
- margin:20px 23px 5% 30px;
CSS
4 Likes
Answer
margin;20px 30%:
Reason — In CSS, declarations follow the format of property: value;. The value is assigned to the corresponding property, separated by a colon : and terminated by a semicolon ;.
The option margin;20px 30%: has an incorrect syntax. The semicolon ; should be a colon : before the value and the colon : at the end should be a semicolon ;.
Answered By
1 Like
Related Questions
What would this CSS rule do ?
h2 { font-size:2em; }- Make fonts in a specific h2 tag double in size.
- Make fonts in all h2 tags double in size.
- Make fonts in all h2 tags double in size and italic.
- Make all fonts that are size 2, empty.
How do you link an external stylesheet to a page.
<link href='somefile.css'><link rel='stylesheet' src='somefile.css'><script rel='stylesheet' href=' somefile.css'> </script><link rel='stylesheet' href='somefile.css'>
Which of the following CSS types is defined in the header of a Web page and applies to the entire Web page document ?
- Inline
- Embedded
- Inbuilt
- External
Which of the following type of CSS is coded in the body of the Web page as an attribute of an HTML tag and applies ONLY to the specific element that contains it as an attribute ?
- Inline
- Embedded
- Inbuilt
- External