Professional Documents
Culture Documents
What Is A Website
What Is A Website
Well, a website is a collection of webpages, photos, articles, videos or any other digital media
organized perfectly so that users can easy navigate around it and find the information which they
came seeking. Wonderhowto.com is a perfect example of a website. A website are hosted on web
servers connected to Internet or private networks such as Intranet. Every website is identified
with its uniques URL or IP address, even every digital media hosted on a website has its own
URL ( Uniform Resource Locator ). Every website has its own top-level domain extension such
as --
.in - INDIA
.au - AUSTRALIA
.br - BRAZIL
.co - COLOMBIA
.eg - EGYPT
HTML PROGRAMMING
HTML ( Hyepr Text Markup Language ) is the language used to create webpages. Almost
everybody who is involved with the internet or web designing needs to have a basic
understanding of how HTML works or HTML codes are written. An HTML file contains
"markup tags" that tell the browser how to follow instructions within these tags.
Now from here we start our journey to Web page designing just using Very basic HTML
programming. I recommend you to write each and every HTML code you see here or anything
you learn from it by your own so that you can learn it very quickly.
Here I am not going to talk about CSS, JavaScript, PHP and other languages. As I said earlier I
will tell you how to design Amazing webpages using basic HTML!
Download Notepad++
Image Editor - Well you don't need any software for editing image or any other software
like Photoshop for graphics because we will be using Internet to get all our resources that
we will use on Web Pages.
Creative - You should have very creative thinking and should not stop experimenting. If
you have these then you can surely make amazing web pages just by using basic HTML.
Install Notepad++ and start it. The interface of this software could be something like this
First first that you should do immediately is to save it with any name with extension
".html" or ".htm". Ex- ck.html
Here .html or .htm extension tells the Web Browser that its a HTML file.
Warnings
Here I am just going to show you how to create web pages with basic HTML which will
give you basic ideas of HTML or Web page designing. So, if you are planning to build
you own site, then just don't go for basic. Try learning other programming languages like
php, javascript, css, etc which will help you make professional looking websites. But
before moving to advance designing you need to have basic concept.
Here is the Syntax of a <html> tag or we can say, the basic structure of the web page -
<html><head><title>xxxxxxxxxxxxxxxxxxxxxxx</title></head><body>xxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxx </body></html>
1. Container tag/Non-Empty tags - Container tags are also known as Non-Empty tags.
These types of tags requires opening as well as closing.
Example: <html>, <head>, <title>, <body>, <i> these types of tags requires closing.
Every container tag is closed by giving a slash sign ( / ) just before the name of the tag
Example: </html>, </head>, </title>, </body>,</i> are the examples of closing tags.
B. Empty tag/Non-Container tags - Empty tags are also know as Non-Container tags. These
types of tags don't requires closing even if you have opened it.
Attributes - Every tag have their own attributes and each attribute provide additional
information about an tag. Attributes are always used withing the tag and in the following
manner -
<tag attribute="value">
The following example will make it clear - Suppose if you want to have background color of
your web page as black then you will use "bgcolor" attribute within the <body> tag.
<html><head><title>Web Designing</title></head>
<body bgcolor="black">
<font face="Comic Sans MS" color="purple" size="10"> You are learning Web
Designing</font>
</body></html>
As you have already saved it with .html extension ( if not done then do it now ), you just need to
click on "Save" option from "File" menu on the menu bar.
As you can see main tags have "light blue" color, contents that are displayed on web browsers
have "black" color, attribute have "red" color while value of attributes have "purple" color. This
is the main reason why we use Notepad++, you can easily distinguish all stuffs very easily.
Here is the explanation to the the HTML code of this Web page:-
As you see here that all the text are in written in one complete line, but you can change it by
using <br> [break tag. Its a empty tag] or <p> [paragraph tag. Its a container tag].
You need to use it just where you want to break the line ( <br> ) or from where you want to start
a new paragraph ( <p> ).
After you use <br> tag or <p> tag you will see the output like this:- You can also use the
hexadecimal number of any color. Like you can also use this line for displaying text in red color
-
<font face="broadway" size="4" color="#FF0000">
Warnings
Font styles are only displayed by web browsers only if the user have that font styles
installed on their computer. Many computers may not support the font styles you use in
your web pages, so you should use the most common font styles.
To make text look BOLD in your web pages use <b> tag. Its a container tag so you need
to close it every time you open it
To make text look Italic in your Web pages use <i> tag. Its also a container tag so you
need to close it every time you open it.
<html><head><title>Web Designing</title></head>
<body>
This is text will be displayed with default color, size and font style. <font size="5"
color="green"><b>you are learning web designing</b></font>
</body>
</html>
If the opening pattern of tags are like this --- any tag A > any tag B > any tag C
then the closing pattern of tags should be like this --- any tag A < any tag B < any tag C
The grater sign in opening pattern of tags shows that "tag A" have be opened before "tag B" and
"tag B" have been opened before "tag C"
And the less than sign in closing pattern of tags shows that "tag A" have been closed at last, "tag
B" have been closed just after "tag C" while "tag C" has been closed at the first.
It might have got very confusing here. Don't worry I fill show you with an example -
Suppose here is the code--
as you can see the closing pattern of tags is just opposite of the opening pattern of the tags
similarly, if
here also the closing pattern of tags is just opposite the opening pattern of tags.
You should also know that use of attributes in any tags will not change this method. As here size
attribute of font tag doesn't change the closing pattern.
The <b>, <i> and <u> tags which we saved earlier will give this output:-
ADDING HEADINGS
There are six levels of heading in HTML. These are -
2. <h2> </h2>
3. <h3> </h3>
4. <h4> </h4>
5. <h5> </h5>
This is how you will use the heading tags in your web page -
write similar to his upto <h6> and you can even use font , bold, italic, underline tags to
customize it more
3. How to add text, background color and title to you web page
4. How to make your text more customized using bold, italic, underline and heading tags
and some attributes.
For adding image as a background of your web pages you can choose either of the following
options:-
By using background attribute you can easily add image as a background. This is how you will
be using it-
Here you will replace "image source" [without the quotes] with the complete path of the image.
Example: Suppose your image is stored in the folder named "images" located in the "E" drive of
your computer, then you will be using the following path for this image:-
E:\image\something.jpg
Tips
You can even know the compete path of your images by opening it with internet explorer.
You can do it by right clicking the image and selecting Internet explorer or any other
browser from the open with option.
You can use "bgcolor" and "background" attribute at the same, just to ensure that the web
browser displays the color assigned if it fails to show the background image.
This method gives you more flexibility and command over your background images. Use the
following code:-
1. alt: every text assigned with this attribute will be displayed by the web browser when the
image will be being loaded or if its unable to display the images.
2. src: you will use this attribute to assign the path of the image you want to display on your
web page
3. height/width: these attributes are used to assign height and width of the image. You can
set the height and width of you image by either percentage value or by pixel value.
4. align: using this attribute you can position your images either on right or left side of your
web page.
See image for more instructions:
OR
You can choose any size and color of your border but remember to use "solid" or "dotted" before
color name.
If you change the "autostart" value to "true" then your video will start playing as soon as you
open your web page.
ADDING AUDIO to YOUR WEBPAGE
You can add music to your web page in the same way to added video. Just instead of
video file path use the path to your music file.
If you use this tag then you will see a audio player on your web page.
You can also run any audio file in the background by using this tag:
Here "loop" represents the number of times you want to play the audio. You can use 0, 1 ,2 or
any other number, depending on your interest.
Use this tag just after the <body> tag:
<body><bgsound src="files/ck.MP3"
loop="infinite">XXXXXXXXXXXXXXXXXXXXXXXXXXXXX</body>
Using <bgsound> tag will not add any music player to your web page but still you will be
hearing it.
3. How to add Video, audio and background music to your web page.
ADD LINKS
If you want to link a different site or any other web page, then you have to use <a> tag
also known as anchor tag. If your web page is named "something.html" and is stored in
the folder named "webpages" and you wanna link it to your web pages, then you will use
the following code:-
This code will display the text "Something" in a underlined blue font, the same as this
one WonderHowTo. If you want to change the color of the unvisited , visited and active link,
then you have to use the following attribute with the <body> tag:-
If you want to link any Website to your web page then use the URL of that web page
withing the <a> tag -
<a href="https://www.wonderhowto.com/">WonderHowTo</a>
GIVE NAME to ANY SECTION of YOUR WEB PAGE
You can use "name" attribute of the <a> tag to give unique name to any section of your
web page. In other words, You create a bookmark within your web page. You can use this
bookmark to create links directly to this section -
Now you can create direct links to the section named "My section" withing the same web
page using this code format -
If you want to link this section from another web page, then use this code format:-
Here is an example:
So, any click on this image will redirect the web browser to google.com
<table><tr><td>xxxxxxxxxxxx</td><td>xxxxxxxxxxxxx</td></tr>
<tr><td>xxxxxxxxxxxxxx</td><td>xxxxxxxxxxxxxxxxxxx</td></tr>
</table>
If you will use "border" attribute then assign it some value then the table will be displayed with
borders but if you will not use "border" attribute, the the table will have no border.You can also
assign different colors to border.
If you want to give different border size and color to each cell, then separately use "style"
attribute with <td> tag.
Cellpadding and Cellspacing:
1. Cellpadding:
Cellpadding is an attribute of <table> tag. By using cellpadding attribute you can set the amount
of space between the contents of the cell and the cell wall.
2. Cellspacing:
Cellspacing is also an attribute of <table> tag. By using cellspacing attribute you can set the
amount of space between the table cells.
You can background color to your table and cells simply by using "bgcolor" attribute.
<td bgcolor="pink">xxxxxxxxxxxxxxxxxxx</td></tr>
</table>
BACKGROUND IMAGE:
If you think that adding colors as a background in you table is not so appealing, then no problem.
You can use background attribute to add any images as background of your table or to each cell
separately.
Unordered Lists
Ordered Lists
Definition Lists
UNORDERED LISTS
An unordered list starts with the <ul> tag and each list item starts with the <li> tag.
Example:-
<ul>
<li>List number 1</li>
</ul>
Output:- All the list items written within <li> tag will be displayed with bullets. If you want to
change the shape of these bullets from circle to square then use "type" attribute.
Example:-
<ul type="square">
</ul>
ORDERED LIST
An ordered list starts with the <ol> tag and each list start with <li> tag.
Example:-
Try this tag yourself and see the effect:- <ol type="I">
Suppose you want to start your list with number 5 or any alphabet C instead of 1 or A, then try
using "start" attribute.
Example:-
You can get the same result but by using different method. If you use "value" attribute with <li>
tag then you will get the same result. But here is a twist, suppose you started your first list with
number 5 but wanted to list second item with number 10, then you will use the following cod:-
<ol>
</ol>
Every definition list start with <dl> tag and ends with </dl> tag.
<dt> tag which is used within the <dl> tag defines a definition list. <dd> tag which is used
within <dt> tag defines the description for each list.
Example:-
<dl>
</dl>
Output:-
NESTED LIST
Nested list is not any new type of list but a combined use to unordered list and ordered list.
<!--Text within these tags are not displayed by the Web Browser-->
Align:- Assign value ( left, center, right ) to specify the alignment of horizontal line.
noshade:- This attribute specifies that horizontal line should be displayed without
shaded.
Style:- You can use this attribute to give dotted or solid border of any color to it.
Different types of horizontal line with their codes
Scrollamount:- Scrollamount attribute defines the value by which the content withing
<marquee> tag should move.
Direction:- Direction attribute defines the direction in which the content should move.
( right, left, up and down)
Here "vspace" means "vertical space" and "hspace" means "horizontal space". Assigning value to
these attributes will leave space vertically and horizontally.
Tips
You can also add <marquee> tag before <hr> tag to make it scroll in any direction.
Use <sub> and <sup> tags to give subscript and superscript affect to any text or number.
Generally, these tags are helpful while creating Science subject (mathematics, physics, chemistry,
etc) related web pages.
STRIKE:
This tag ( <strike> ) will display a line through the middle of the text.
Example:-