Solved

HTML, how to put a grey background

Posted on 2012-04-12
3
488 Views
Last Modified: 2012-04-12
Given the line

<p>This is a paragraph</p>

How would I introduce a grey background
0
Comment
Question by:Los Angeles1
3 Comments
 
LVL 17

Accepted Solution

by:
Anuroopsundd earned 167 total points
ID: 37839339
<span style='background:gray'><p>This is a paragraph</p></span>
0
 
LVL 1

Assisted Solution

by:rjccomps
rjccomps earned 167 total points
ID: 37839349
<html>
<body bgcolor ="gray">

<p>This is a paragraph</p>
</body>
</html>

Open in new window

0
 
LVL 17

Assisted Solution

by:bigeven2002
bigeven2002 earned 166 total points
ID: 37839350
Hello,

This can be achieved by embedding CSS into the Paragraph tag.
<p style="background-color:#CCC;"> This is a paragraph </p>

Open in new window

0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now