Jump to content

stattus777

Newbie
  • Posts

    3
  • Joined

  • Last visited

About stattus777

  • Birthday March 26

Information

  • Sex
    Мужчина
  • From
    Новополоцк, Беларусь

stattus777's Achievements

Explorer

Explorer (1/14)

0

Reputation

  1. Да такой <!DOCTYPE> и <hr /> - часть задания... Сделал просто - удалили атрибут цвета - линия стала серой и, в принципе, пойдет... Всем спасибо! [hide]А насчет линии-картинки это идея.[/hide]
  2. Но при указании цвета просто атрибутом color (color="#434E3C") - валидатор выдает ошибку "there is no attribute "color" и предлагает использовать CSS, что запрещено - как это победить? There is no attribute ...Cause:The element uses an attribute that does not exist. This error can be caused by: Using proprietary attribute of IE or Netscape Incorrect choice of the document type. Deprecated attributes are not part of HTML 4.01 Strict. Mistyping the attribute name This is usually fixed by using CSS to achieve the desired effect instead.Example:Sample: <table> proprietary attribute "height"Bad <table height="100%">Good <table style="height: 100%;">Bad <table border="2">Good <table border="2">Solution: Check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) Check that they are both allowed in the chosen document type Use CSS instead of this attribute.
  3. Помогите пожалуйста - в универе задали написать простенький сайт в Notepad++, чисто на HTML. Все сделал, валидацию прохожу, но преподаватель говорит что на страницах все еще присутствует CSS-код (кроме HTML). Укажите какие теги не подходят под определение HTML (привожу код с двух страниц): <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru"><head> <title>Увлечения</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body background="images/bg1.png" text="#434E3C"> <center> <h1>Мои увлечения</h1> <hr width="80%" size="3" noshade="noshade" style="color: #434E3C;" /> <br /> </center> С недавнего времени я начала увлекаться легкой атлетикой, а именно бегом. Бег - прекрасное средство для укрепления здоровья и закаливания организма. <br /> <br /> При беге увеличивается сократительная и «насосная» функции сердца, возрастает кровообращение в мелких сосудах сердца, мозга, почек и других органов. <center> <a href="index.html"><img src="images/home1.png" width="100" height="100" alt="На главную" /></a> </center> </body></html><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru"><head> <title>Сайфетдинова Юлия Ильдусовна | Биография</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head><body background="images/bg1.png" text="#434E3C"> <center> <h1>Моя биография</h1> <hr width="80%" size="3" noshade="noshade" style="color: #434E3C;" /> </center> <br /> <img src="images/im.jpg" alt="Мое фото" width="266" height="380" align="left" hspace="50" vspace="4" /> Далее идет текст биографии <center> <a href="index.html"><img src="images/home1.png" width="100" height="100" alt="На главную" /></a> </center></body></html>Заранее спасибо.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy