Didactical material
Name __________________ Class ______________________
Objective: Text formatting (font, paragraph, lists). 10.4.2 use HTML in web-development;
1) Use the correct HTML attribute, and CSS, to set the color of the paragraph to "blue".
<p =";">This is a paragraph.</p>
2) Use CSS to set the font of the paragraph to "courier".
<p style=":courier;">This is a paragraph.</p>
3) Use CSS to center align the paragraph
<p style=":center;">This is a paragraph.</p>
4) Use CSS to set the text size to 50 pixels.
<p style=":50px;">This is a paragraph.</p>
5) Use CSS to set the background-color of the document to yellow.
<html>
<body style=":yellow;">
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
6) Use CSS to center align the document.
<html>
<body =";">
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Материалы на данной страницы взяты из открытых источников либо размещены пользователем в соответствии с договором-офертой сайта. Вы можете сообщить о нарушении.