Closed HabRonan closed 7 years ago
:+1:
Although with your first quiz question, what exactly do you mean by center? Depending on what the content of your div
is, you might need more than text-align: center
...
It wasn't a question I come up with and answered. These were the quiz questions that are given after finishing the html-intro and I was attempting to answer them from the choices given.
Ah, roger that. Still something worth thinking about though!
Quiz- Which of the following is the best way to center the text in div?
<style>div{ text-align:center; }</style>
Why do we write
<img />
and not<img></img>
?-Because Image tag doesn't have any text content
Why is it important to keep semantics (HTML) separate from style (CSS)? -Code maintainability (easy to read, easy to make changes)