Total Pageviews

Saturday, 9 January 2016

Working with Images in Html

         Working with Images in Html 
    Today we are going to learn how to work with images on our webpage.A webpage cannot have a
 beautiful look without the influence of images, the proper use of images  will make your webpage]
fantastic .How ever some times images are use to depict ideas and purpose of a webpage .HTML tag
for image is the <img>tag  like these <img src="">,the src is not the 'student presentative council' you know
but rather the source locator the locate the image you want to appear on your webpage .
     To start with we would have copy the image we will be displaying on our webpage to a file which the html file its found,there are different pictures extensions PNG,GIF,JPEG,GIF (eg Naeate.png )and html supports this pictures groups so you will have to specify the picture you would be using extension or else it woundn't  work  .
  If you've not been following this tutorials you would have to go and look on how to create a simple webpage and read on that its the firstpost .

     I have copied a picture and paste it in that same file and look like this .
The file its SunRise.jpg 











Lest open the html file and write the codes for the picture 


          <html>
         <head>
         <title>My First webpage</title>
         </head>
         <body>
        <img src="SunRise.jpg" />
         </body>
        </html>


This will be the results when you run the codes


you can see that the picture had displayed its default size ,yes it will beacuse you haven't set the
 width and height of the picture ,So puddy lets change the picture size how we want it    add width="200px"
to the code this how looks <img src="SunRise" width="200px" />
 this will be the results when you run the codes




you can see that you haven't specify the height but html automatically html sets it accordingly but you can
add it height="200px"
<body>
<img src="SunRise" width="200px" height="200px" />
</body>














We can align it to right 

<body>
 <img src="SunRise" width="200px"  height="200px" align="right"/>
</body>















lets see two picturs side by side


 <body>
     <img src="SunRise.jpg" width="200px" height="200px" align="right"  />
    <img src="SunRise.jpg" width="200px" height="200px" align="left"  />
         </body>


The reults





Lets do some styling ,
we would be applying style sheets to do it we shall give the picture borders and
color the border to yellow , we will add it to the left picture.
style style="border:4px solid; border-color:yellow;"

       <body>
     <img src="SunRise.jpg" width="200px" height="200px" align="right"  />
    <img src="SunRise.jpg" width="200px" height="200px" align="left"  style="border:4px solid; border-color:yellow;"/>
         </body>




Thats all for today
Please if you find this Toturials helpful or there is some issues you want to me to address about the toturial
comment on it, i need to  know  how best  i can help you . THANK YOU for your time.

Tuesday, 5 January 2016

Dealing With Colors In html

 Colors Usage in Html
Each browser has a set of standard colors for web pages that can be customized by the user
. If you don’t specify otherwise, your pages will display according to the
browser’s settings.
To change a color on your web page, you need to know the color you want to change it to,
as well as the corresponding color value (described in the following section).
 There are variety of other units to measure color,including RGB (which stands for Red Green Blue)
values, RGB percentages, hexadecimal shorthand, and color names.

Hexadecimal Color
The hexadecimal system (hex) uses the same concepts as the decimal system, except
it’s based on 16 units (see Table 3-1). Because standard HTML cannot handle decimal color
values, the hexadecimal system is used to specify color values on web pages. Instead of
making up new characters to represent the remaining units after 9, the hexadecimal system
uses the first six letters of the English alphabet (A–F).
Computer monitors display color in RGB mode, where R = Red, G = Green, and B = Blue.
Each letter (R, G, and B) is represented by a value between 0 and 255, with 0 being the darkest
and 255 representing the lightest in the spectrum. In RGB, white and black have the following
values:



When using hexadecimal color values in an HTML page, you translate the color from
decimal (RGB) to hex. Each red, green, or blue value translates into a two-digit hex value. You
then combine all three of those two-digit hex values into a single string, preceded by a hash
mark. The following is an example where a hexadecimal color is used to change the text in one
paragraph to blue.
<p style="color: #0000FF;">
Lets give it a try
 lets also use color names to specify the body backgroundcolor.

           <html>
           <head>
           <title>My First webpage</title>
           </head>
           <body style="background-color:green;">
             
           <p style="color: #0000FF;">When using hexadecimal color values in an HTML page,
            you translate the color fromdecimal (RGB) to hex. Each red, green, or blue value translates into a                two-digit hex value. You then combine all three of those two-digit hex values into a single string,                   preceded by a hash mark. The following is an example where a hexadecimal color is used to change             the text in oneparagraph to blue.</p>
           </body>
           </html>

This will be the results when you run the codes.













Hexadecimal Shorthand
When referencing a color that has value pairs, you can use a bit of shorthand to reduce the
amount of typing necessary. For example, a color with a hexadecimal code of 003366 can be
shortened to 036. This is because each of the two red values is the same, as are each of the blue
and green values. That wouldn’t work for a hexadecimal code of 003466, because the green
values—34—aren’t the same.
Chapter 3: Color 49
The following shows how the same blue used in the preceding code example could be
referenced, using hex shorthand.
<p style="color: #00F;"> Give it try


RGB Values and Percentages
If hexadecimal color values already have your head spinning, . If a color’s RGB values are handy, use
those in your stylesheet in place of the hexadecimal code, like in the following:
<p style="color: rgb(0,0,255);">
If you don’t have the RGB values handy, as when working in some page layout
you can also use the RGB percentages, like that shown in the following example.
<p style="color: rgb(0%,0%,100%);">
Notice that a comma separates each RGB value and the entire set of values is placed inside
parentheses. A lowercase rgb precedes those parentheses. In the case of the previous code
example, R = 0, G = 0, and B = 255. As was the case with hexadecimal shorthand, RGB values
and percentages are only used to describe color in style sheets, not the older HTML color tags.
Give it a try change the color of the paragraph color with the percentages.


Color Names
HTML 3.2 and 4.0 defined a standard set of 16 colors, which could be referenced by names
in addition to hex values. The first version of CSS continued with these 16 colors, and orange
was added in CSS 2.1. Table 3-2 lists the 17 color names that are almost uniformly supported
by browsers.

<p style="color: blue;">
 Below are list of color names and their Hexdecimal, RGB values















Specify Document Colors
The preferred method of changing document colors, such as the background and the text, is
with style sheets.As with any style declaration, you can specify the background, text, and link
colors in either an inline, internal, or external style sheet. The actual properties used to do so are the
same, however, regardless of which type of style sheet you use. Unlike with the older HTML
tags previously used to change document colors, with CSS you aren’t restricted to specifying
this information within the body tag. In fact, you actually use the a tag (which is used to
add links to a web page) to change link colors in CSS. To understand, look at the following
example of an internal style sheet:
<style type="text/css">
body {background-color: white;
 color: gray;}
a:link {color: blue;}
a:visited {color: purple;}
a:active {color: orange;}
</style>

Below its an example
           <html>
           <head>
           <title>My First webpage</title>
           </head><style type="text/css">
body {background-color: white;
 color: gray;}
a:link {color: blue;}
a:visited {color: yellow;}
a:active {color: orange;}
</style>
            <body style="background-color:green;">
              <ol>
               <li> <a href="Home.html">Home</a></li>
               <li> <a href="Products.html">Products</a></a>
               </ol>
            <p style="color: white;">When using hexadecimal color values in an HTML page, you translate the color from
           decimal (RGB) to hex. Each red, green, or blue value translates into a two-digit hex value. You
           then combine all three of those two-digit hex values into a single string, preceded by a hash
          mark. The following is an example where a hexadecimal color is used to change the text in one
           paragraph to blue.</p>
           </body>
           </html>


This will be the results when run the codes and clink on the link you find that the visited link will change
to yellow which was previously blue .To make the page stable try to create another page and name it Products.html


Opacity
Another new addition to the CSS3 specification is the opacity property. Similar to the RGBA
values just described, opacity values are defined between 0.0 (completely transparent) and 1.0
(fully opaque).
 when you add this code to the body style the page will be transparent
body{
 opacity: 0.4; /* CSS3 standard */
 filter:alpha(opacity=60); /* IE only */

This is how its should be placed
 body{background-color: white;
 color: gray;}
a:link {color: blue;}
a:visited {color: yellow;}
a:active {color: orange;}

body{
 opacity: 0.4; /* CSS3 standard */
 filter:alpha(opacity=60); /* IE only */
}

And the results would look below.



You can see the text appear transparent.

Friday, 1 January 2016

English leaguecFixtures for Today


http://www.livefootball.com/football/england/premier-league/

Using of List in html


 Today we going to learn about listing in web design ,there are two different kinds of listing, ordered list which use make use of numbering ,alphabetical order or Roman numbers and unordered list which uses dots and square.List tag is <li></li> an
ordered list tag is <ol></ol> and unordered list tag is <ul></ul>.
Lets take an example of list of  tools to develop web page .

            <html>
           <head>
           <title>My First webpage</title>
           </head>
           <body>
         

              List of Tool use To develop a web  page
           <li>Computer</li>
           <li>Notepad appliction</li>
           <li>Dreamweaver application</li>
           <li>Notepad++ application</li>
           <li>Adobe Photoshop application</li>
                                     </body>
                                     </html>


This will be the result when you run the codes .



Oredered List
Now lets make use of the ordered list so we will just use the above list and make it ordered , we will have nest the list we
 created inside the ordered list  ,This is how its done .
Replace this codes to the list codes
        <h3> Ordered List</h3>
            <ol>
           <li>Computer</li>
           <li>Notepad appliction</li>
           <li>Dreamweaver application</li>
           <li>Notepad++ application</li>
           <li>Adobe Photoshop application</li>
              </ol>

When you do it and run  you must get the same as this in  example below.




Now lets change the numbers to Alphabet
 To change the listing to alphabet you add the type property to the opening tag of the ordered list , type="a"
   like how i did below.
       <ol type="a">
           <li>Computer</li>
           <li>Notepad appliction</li>
           <li>Dreamweaver application</li>
           <li>Notepad++ application</li>
           <li>Adobe Photoshop application</li>
              </ol>

This is the result of the code when you run it


To change it to Roman numbers you will have to change ' a ' in the code to ' i '.

 You can also specified which letter to start from,  example we want to start from ' b ' not ' a '  ,you will have add this code to the ordered opening tag   start="2"  ,two its here because  a represents 1 and 2 for b .

            <ol type="a" start="2">
           <li>Computer</li>
           <li>Notepad appliction</li>
           <li>Dreamweaver application</li>
           <li>Notepad++ application</li>
           <li>Adobe Photoshop application</li>
              </ol>

This will be  the results when you run the codes.



Unordered List 

To make  this we will nest the list tags inside unordered list tag like we how we did to the ordered list
Like the example below

 <h3> Unordered List</h3>
            <ul>
           <li>Computer</li>
           <li>Notepad appliction</li>
           <li>Dreamweaver application</li>
           <li>Notepad++ application</li>
           <li>Adobe Photoshop application</li>
              </l>



 It will look same as this when you run the code ,you can see that, unordered list and  list look the same .



We can change the type of the unordered list to  square ,this code will do it for us . type="square"
<h3> Unordered List</h3>
            <ul type="square">
           <li>Computer</li>
           <li>Notepad appliction</li>
           <li>Dreamweaver application</li>
           <li>Notepad++ application</li>
           <li>Adobe Photoshop application</li>
              </ul>
 this is the results of the code ,watch it carefully you will see that black dot has change to square



There are situations that you will  need to have list and sub list  i call it nested list,the first list to be the heading for the
 next sub list .In this case to be able to  do it we would have to nest unordered list inside ordered list, the ordered list will be the
mother list .To make it the sub list of the mother list,the ordered list will have it own list of items and to make each item be
 the header for other  child list ,we will nest unordered list below each list of the ordered list. Lets take a look at this example
 

<ol>
                <li> List of Tool use To develop a web  page </li>
                   <ul>
                      <li>Computer </li>
                      <li>Notepad appliction </li>
                      <li>Dreamweaver application </li>
                      <li>Notepad++ application </li>
                      <li>Adobe Photoshop application </li>
                   </ul>
               <li>List of other Languages associated with Web development</li>
                     <ul>
                       <li>Java</li>
                       <li>PHP</li>
                       <li>JQuery</li>
                     </ul>
            </ol>

   I have indent th codes  make it reader friendly ,You can see clearly what i have explained .The ordered list has it own list
which are:      
                <li> List of Tool use To develop a web  page </li>
                <li>List of other Languages associated with Web development</li>

And each of them have its own corresponding sub list which are coded with unordered list .
 This would be the results when you run the codes .


Tuesday, 29 December 2015

Aligning ,Breaking of Paragraphs and paragraph styling.

 Paragraphs are use to make  essays and letters look nicer to read when writing in papers or in books and we can find thatfeatures in Microsoft  word . Html also provides same features that can be use to  do the same thing , we  shall do some examples like align text either left or right  ,break paragraph to drop a single line below  and also use <p> properties to give
a paragraph borders .  
 

 <html>
           <head>
           <title>My First webpage</title>
           </head>
            <body>
              <p>  I am creating webpage and its interesting and fantastic</p>      

                <p>Paragraphs are use to make  essays and letters look nicer to read when writting in papers or in books and we can find that
features in Microsoft  word .
Html also provides same feartures that can be use to  do the same thing , we  shall do some
 examples like align text either left or right  ,break paragraph to jump to the next line below  and also use paragraph tag properties to give
a paragraph boders . </p>  

                                     </body>
                                     </html>
This will be the results when you run the codes
eg 1.0





You can see that there its drop of paragraph at the first line in after the full stop  in the code but when we run the codes in the  browser that space does not appear
it does not appear because you did not apply the tag that its responsible to do that drop for you .To do that we must
apply the breaking tag .

  <p>Paragraphs are use to make  essays and letters look nicer to read when writting in papers or in books and we can find that
features in Microsoft  word .<br/>Html also provides same feartures that can be use to  do the same thing , we  shall do some
 examples like align text either left or right  ,break paragraph to drop a single line below  and also use paragraph tag properties to give
a paragraph borders . </p>  


This will be the results when you run the codes   eg1.1



Now the drop had appear because of the break tag watch it carefully you will notice  difference between eg 1.0 and eg1.1 




Now we would be aligning the text content but before that lets set the width of the paragraph first ,we would be using style 
to do that . Apply style="width:500px" to the codes like i did below


<p style="width:500px">Paragraphs are use to make  essays and letters look nicer to read when writting in papers or in books and we can find that
features in Microsoft  word .<br/>Html also provides same feartures that can be use to  do the same thing , we  shall do some 
 examples like align text either left or right  ,break paragraph to drop to jump to the next  line below  and also use paragraph tag properties to give 

a paragraph boders . </p>

This will be results when you run the codes you can see that the paragraph did take all the line space available but it take a

certain portion of the page and displayed.








Lets come back and apply the alignment ,apply these ( align="right") codes the paragraphs like i did below .By default the 
alignment is set to right.

<p style="width:500px "align="right">Paragraphs are use to make  essays and letters look nicer to read when writting in papers or in books and we can find that
features in Microsoft  word .<br/>Html also provides same feartures that can be use to  do the same thing , we  shall do some 
 examples like align text either left or right  ,break paragraph to drop to jump to the next  line below  and also use paragraph tag properties to give 
a paragraph boders . </p>   







Lets apply borders to the paragraph.,add these codes to the paragraph tag (border:1px solid)

<p style="width:500px ;border:1px solid"align="right">Paragraphs are use to make  essays and letters look nicer to read when writting in papers or in books and we can find that
features in Microsoft  word .<br/>Html also provides same feartures that can be use to  do the same thing , we  shall do some 
 examples like align text either left or right  ,break paragraph to drop to jump to the next  line below  and also use paragraph tag properties to give 
a paragraph boders . </p>  










This is the results when you add the border properties and run the codes .you can increase the width of the borders by 2 ,3 or any value you want to use . 

 Thats all for Today ,see you next time .




Using of Headers in Html

Heading its key important feature when writing and articles,reports,letters or any other text documents .In html language
header tag is a hierarchical   from 1 to 6 with 6 being the smallest and 1 being the bigger in size ,Header text when display its bold.


<html>
           <head>
           <title>My First webpage</title>
           </head>
            <body>
              <p>  I am creating webpage and its interesting and fantastic</p>      

                Header Examples
          <h6>This is a  Header 6</h6>
          <h5>This is a  Header 5</h5>
          <h4>This is a  Header 4</h4>
          <h3>This is a  Header 3</h3>
          <h2>This is a  Header 2</h2>
          <h1>This is a  Header 1</h1>


                                     </body>
                                     </html>


This will be the results of the code .

Monday, 28 December 2015

Wisa charged with sexual assault, indecent exposure



Hiplife artiste Eugene Ashie popularly known as Wisa has been charged with indecent exposure and sexual assault for showing his genitals at a live event in Accra.
Wisa told Joy News he regrets his action which he describes as "childish". He said he is prepared to face any sanction for his behavior.
- See more at: http://www.myjoyonline.com/entertainment/2015/December-28th/wisa-charged-with-sexual-assault-indecent-exposure.php#sthash.jYMzCg31.dpuf