Документация
HTML CSS PHP PERL другое
Workshop
 
Previous Page
Table of Contents
Next Page

Workshop

"Answers" section that follows.

Quiz

1:

How would you center everything on an entire page?

2:

How would you indent a single word and put a square bullet in front of it?

3:

"glunch" means "a look of disdain, anger, or displeasure" and that the word "glumpy" means "sullen, morose, or sulky."

4:

How do you say "© 2004, Webwonks Inc." on a web page?

Answers

A1:

If you thought about putting a <div style="text-align:center"> immediately after the <body> tag at the top of the page, and </div> just before the </body> tag at the end of the page, then you're correct. However, the text-align style is also supported directly in the <body> tag, which means you can forego the <div> tag and place the style="text-align:center" style directly in the <body> tag. Presto, the entire page is centered!

A2:

<ul style="list-style-type:square">

  <li>supercalifragilisticexpealidocious</li>
</ul>

(Putting the style="list-style-type:square" in the <li> tag would give the same result because there's only one item in this list.)

A3:

<dl>

<dt>glunch</dt><dd>a look of disdain, anger, or displeasure</dd>
<dt>glumpy</dt><dd>sullen, morose, or sulky</dd>
</dl>

A4:

&copy; 2004, Webwonks Inc.

The following produces the same result:

&#169; 2004, Webwonks Inc.


Previous Page
Table of Contents
Next Page


 Приглашаем посетить сайты 
Мода Чехов Крылов Автомобили Хлебников Ходасевич Лесков Салтыков-Щедрин Шмелев CSS