You would put the sentence in the code, the font size wanted is in the code, and the
other regular size text will form around this larger text. Have any idea on how to code it.
A simple <span> will allow you to style the stand-out text differently.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Test Page</title>
<style type="text/css">
p {
width:60%;
margin:0 auto;
font-size:1em;
background:#eef;
}
p span {
font-size:2em;
color:red;
}
</style>
</head>
<body>
<p>
Lorem ipsum dolor sit amet consectetuer Vivamus lacinia elit nec eu. Nunc tincidunt Quisque
Suspendisse semper tincidunt tempor semper libero sagittis quis. Maecenas enim iaculis In
Curabitur Vestibulum Suspendisse Quisque condimentum nunc amet.
<span>
Nest the text you are wanting to stand out in a span.
Then style that span with the font styles you desire.
</span>
Auctor Phasellus ipsum netus condimentum Aenean dictum et wisi quis nec. Massa Nullam et
Nullam consequat rutrum magnis amet nibh felis magna. Vitae penatibus montes elit lorem elit ipsum.
</p>
</body>
</html>
Bookmarks