кодесурса
«HTML

HTML CSS Упражнение: стиль первый и последний элемент

script1adsense2code
script1adsense3code

Решение:

HTML-код:

<!doctype html>
<html>
<head>
<title>HTML CSS Exercise - Style first letter and first line</title>
<style type="text/css">.container
{
width:500px;
}
p:first-child,
p:last-child{
color:#5ac4ed;
}
</style>
</head>
<body>
<div class="container">
<p>In 1986 the Defense Advanced Research Projects Agency (DARPA), the Army Research Office (ARO), the National Science Foundation (NSF), and ESL, Inc sponsored Berkeley POSTGRES Project which was led by Michael Stonebraker.</p>
<p>In 1984, an SQL language interpreter was added to POSTGRES. And thenm it was released to the web under the name of Postgres95. By 1996, the new name PostgreSQL was chosen for the project.</p>
<p>PostgreSQL supports four standard procedural languages (which allows the users to write their own code which can be executed by database server)- PL/pgSQL, PL/Tcl, PL/Perl and PL/Python.</p>
<p>PostgreSQL supports B+-tree, hash, generalized search trees(GiST) and generalized inverted indexes (GIN). Users can also create their own customized indexes.</p>
</div>
</body>
</html>

Демонстрация в реальном времени:

См. Pen style-first-and-last-element-answer от w3resource ( @ w3resource ) в CodePen .


Поддерживаемый браузер

«Opera«Интернет
да да да да да

Каков уровень сложности этого упражнения?

Новый контент: Composer: менеджер зависимостей для PHP , R программирования


script1adsense4code
script1adsense5code
disqus2code
script1adsense6code
script1adsense7code
script1adsense8code
buysellads2code