HTML and CSS Reference
In-Depth Information
Align text
1.
In
index.html
, add the attribute
align=”right”
within the
<p>
tag:
<p
align=”right”
>
<html>
<head>
<link rel="stylesheet" href="format.css">
<title>A Home Page About Dogs</title>
</head>
<body>
<h1>Dogs Home Page</h1>
<p
align=”right”
>These are my <b>favorite
breeds</b>
_
of dog:</p>
</body>
</html>