Question

In: Computer Science

CSS Write a document wide style block (include the correct HTML tag) to set all <p>...

CSS

Write a document wide style block (include the correct HTML tag) to set all <p> tags to be double spaced and justified (not ragged left / right text)

Solutions

Expert Solution

SOURCE CODE

<!DOCTYPE html>
<html>
<head>
<style>
p{   word-spacing: 40px;
text-align:justify;
}
</style>
</head>
<body>
<p>This is a paragraph.it to make a type specimen book. It has survived not only   five centuries, but also the leap into electronic typesetting, remaining            essentially unchanged. It was popularised in the 1960s with the release of            Letraset sheets containing Lorem Ipsum passages, and more recently with desktop    </p>
</body>
</html>

OUTPUT SCREENSHOT

Here I am used word-spacing: 40px; for extra white space and text-align:justify; to justify the lines.

please give an upvote


Related Solutions

What does the HTML tag designate in an HTML document?
What does the HTML tag designate in an HTML document?
We went over the format and syntax of CSS. Below, write the correct CSS syntax to make the body of an HTML document the color blue.
We went over the format and syntax of CSS. Below, write the correct CSS syntax to make the body of an HTML document the color blue. Also write what each keyword represents (example: the selector? property? etc.)
write php code for buying and selling web using sql, javascript ,html ,css style
write php code for buying and selling web using sql, javascript ,html ,css style
Using brackets you will need to create the HTML page and CSS style sheet for the...
Using brackets you will need to create the HTML page and CSS style sheet for the given Form example. Form 1: create an HTML page with a form that contains a text input field. The label for the text field should be “City”. Beneath it should be a submit button “Lookup”. Place a horizontal line beneath the Lookup button and add three radio buttons labeled “Beginner”, “Intermediate”, and “Advanced”. Your page should have a title and a header in the...
Please write "my account" page program by using HTML and CSS
Please write "my account" page program by using HTML and CSS
BEFORE html <html> <head>       <link rel="stylesheet" type="text/css" href="mystyle98_d.css"> </head> <body>              <p>  
BEFORE html <html> <head>       <link rel="stylesheet" type="text/css" href="mystyle98_d.css"> </head> <body>              <p>     I'm a paragraph, what color am I ?      </p>    <ul>      <li id = "fix"> I'm a list item;what color am I? </li>        </ul> <div class = "central1"> <p class ="above"> I'm a paragraph; what color am I? </p>      <p>     I'm another paragraph, what color am I ?      </p>    <ol>      <li id = "fix1"> I'm another list item;what...
Overview Students will learn how to use block-level <div> elements in HTML and style them with...
Overview Students will learn how to use block-level <div> elements in HTML and style them with CSS to transform them using various properties such as: position top, left, right, bottom float border border-radius background-color etc. Related Lecture(s) Module 2: Lecture #3 - The Box Model & Positioning Elements Basic Content Create a folder on your local machine in the "csis1430/htdocs" folder called "little-boxes" with the following folder structure: css img js Create an index.html file with multiple (as many as...
Purpose: To practice the use of HTML and CSS Game Review Website 1. You will write...
Purpose: To practice the use of HTML and CSS Game Review Website 1. You will write a website for the fictitious company Game Gurus. The website will have a home page that you will design, as well as pages created by each "guru." (At least 2 gurus are required). The home page will include: o A description of the site o A quote from each guru o Links to manufacturers websites o Links to the TopTen.html and GameOfTheWeek.html pages for...
Write an HTML document to provide a form that collects familynames and telephonenumbers. The...
Write an HTML document to provide a form that collects family names and telephone numbers. The family name should start with a capital letter, followed by at least one lowercase letter, and not include any spaces or any other characters, and the length should not be more than 30 characters. The phone numbers must be in the format (ddd)-ddd-dddd. Write a PHP script that checks the submitted last name and the telephone number to be sure that they conform to...
The following CSS code is embedded on a webpage: p { font-weight: bold; font-style: italic; }...
The following CSS code is embedded on a webpage: p { font-weight: bold; font-style: italic; } Which of the following statements is true when the above webpage is shown on a browser? Group of answer choices(A-D) a. All paragraphs are displayed in bold but not in italic, since the browser will only execute the first CSS rule and ignore all subsequent rules. B. All paragraphs are displayed in italic but not in bold, since the browser will only execute the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT