Computer Applications
What is the correct CSS syntax for making all the <span>
elements bold ?
- span {text-size:bold}
- span {font-weight:bold}
<span style="font-size:bold">
<span style="text-size:bold">
CSS
4 Likes
Answer
span {font-weight:bold}
Reason — The property font-weight specifies the boldness or heaviness for a font. In the given code, the content of span is set to bold.
Answered By
2 Likes
Related Questions
How do you tell the browser you are creating a styling section with an internal style sheet ?
<style type="css"></style>
<class type="css"></class>
class type="text/css"></class>
<style type="text/css"></style>
To reference a style sheet across multiple HTML pages, how would you define your CSS ?
- Inline Style
- Internal Style Sheet
- External Style Sheet
- CSS is meant for only one page
In the following code snippet, what value is given for the left margin :
margin: 5px 10px 3px 8px;
- 3px
- 10px
- 8px
- 5px
What property is used to change the text color of an element ?
- fontcolor:
- textcolor:
- color:
- font-color: