Saturday, 22 December 2018

In this blog you will know and learn how to create a styling text with CSS and HTML.

Learning how to Specify font size using internal stylesheet:

1.) Open NOTEPAD
2.) Type the following Codes:
<head>
<style type="text/css">
body{font-size:100%;}
h1{font-size:2.5em;}
h3{font-size:130%;}
#sentence1{font-size:x-small;}
</style>
</head>
<body>
<h1> This is my blog</h1>
<h3> You can do it</h3>
<id="sentence1">Be kind</id>
</body>

3.) Save the file and you open your browser to test it:
Example Output:


Learning how to insert the inline span:

1.) Open NOTEPAD
2.) In the head section of your document, insert an internal style sheet.Type the following code below:
     <style type="text/css">
                    .emphasis{font-style:italic;font-weight:bold;}
     </style>
3.) Insert <span class="emphasis"> to every word indicated below, and enclose it with a </span> tag.
4.) Save your documents as inline span.html.
5.) Test the document in a browser.

     Example code:

<head>
<style type="text/css">
.emphasis{font-style:italic;font-weight:bold;}
</style>
</head>
<body>
<p><span class="emphasis">Climate Change</span> is a long term shift in the climate of a specific
location, region or planet.</p>
<p><span class="emphasis">Climate Change</span> occurs when the climate of a specific
area or planet is altered between two different periods of time.</p>
</body>

 Example output:





In this blog you will know and learn how to create a styling text with CSS and HTML. Learning how to Specify font size using internal s...