Professional Documents
Culture Documents
1. The HTML style attribute is used to add styles to 6. In this method, the style element is used inside
an element, such as: the <head> element of the document.
a. div, p, span a. Inside Style
b. h1, h2, to h6 b. Embedded Style
c. html, head, body c. External Style
d. color, font, size, and more d. head Style
2. Below are text-align properties, except: 7. In this method the <link> element is used to
a. left point to an external CSS file.
b. right a. link Style
c. inherit b. Embedded Style
d. top c. External Style
d. head Style
3. Below are correct ways of using Text Size
property, except: 8. Which one below is a class:
a. font-size: 20px; a. .this-is-a-class { color: #000;}
b. font-size: 20dp; b. -this-is-a-class { color: #000;}
c. font-size: 2rem; c. ,this-is-a-class { color: #000;}
d. font-size: 20vw; d. ^this-is-a-class { color: #000;}
4. Which is the correct way of using Text Color 9. JavaScript can access elements with a specific
property: class name with the use of this method
e. color: #000; a. getElementsByClass()
f. font-color: #000; b. getElementsByClassName()
g. text-color: #000; c. getElementsByNameClass()
h. t-color: #fff; d. getElementsByClasses()
5. In this method, the style attribute is used inside 10. JavaScript can access an element with a specific
the HTML start tag. id with the use of this method
a. Inside Style a. getElementById()
b. Embedded Style b. getElementByIdName()
c. External Style c. getElementByNameId()
d. Inline Style d. getElementByIds()