How to use CSS with HTML <div> Element

1 Answer

0 votes
<!DOCTYPE html>
<html>
<body>

<div style="background-color:black;color:green;padding:10px;">
  <h1>HTML</h1>
  <p>Hypertext Markup Language (HTML) is the standard markup language
     for creating web pages and web applications.</p>
</div>

</body>
</html>

 



answered Dec 18, 2018 by avibootz

Related questions

...