Hey there.........
Sorry for the delay....no........ I don't know what to say...... but........ the delay was humongous.
Ok as promised I am here again....
HTML5 is the latest standard from W3C which is being
supported by all the latest browsers. You may choose to learn it completely if
you intend to be a designer of documents in web. However, knowledge over
a few tags is sufficient for you to get started to enter server side
programming. But Since I promised that we would build a website as well as
acquire knowledge as required I shall only introduce new concepts as we’ll need
them. So no hurry............
Let’s begin with a brief introduction to HTML5.....
HTML5 is a sequel to HTML4 , in fact HTML5 by some people
was also called HTML4.1.
HTML is a markup language used to define the structure of web
pages. We use this language to define the sections present in a website. So the way we start to learn HTML would be
simple.... as every website has WebPages clubbed together and as every webpage
has a defined structure we would move forward by defining that basic structure.
Lets start with the
following:-
1.
<!DOCTYPE html>
2.
<html>
3.
<title>
a.
This is going to be the title of the browser window
4.
</title>
5.
<h1>
a.
This is a heading section – it can also be
placed in the body section
6.
</h1>
7.
<body>
a.
This is the body of the webpage where all the
elements of a page will be kept including animation graphics etc.
8.
</body>
9.
</html>
Above is a block of HTML code I will explain to you here –
The first line tells the browser parser (a program which
converts this html code into a meaningful result) that the following code is to be
understood (interpreted) as HTML5—notice that we have not written the word “HTML5”
anywhere.
--Also Notice that every “tag” in this language is enclosed
in angle brackets < >.
Now the Second line is the opening tag which every webpage
must contain—the html tag itself which signifies the starting of an html
document.
*** Notice that all other sections – the tile, the h1(header
style 1) and the body tag all lie inside the <html></html> tags
***Also keep in mind that although not all but most of the tags
have closing tags with a forward slash embedded in them i.e. </ html>,
</title>, </body> etc.
The third line has title tag which lets us specify the title
which appears on the title bar of browser window in which we view this html
page(Html pages are viewed in browser softwares like Firefox, IE, Chrome etc ).
The Line 3a shows what is to appear on the tile bar.
Line 4 is the closing tag of title.
Line 5 is a section of the page where we can provide a large
heading to the page such as :-
This
is H1
This the body text
Line 5a
contains the heading text
Line 6 is
the closing tag for <h1> (We can have 7 headings namely h1, h2 , h3 ,
h4, h5, h6, h7 all are of different
sizes starting from the biggest to lowest).
Line 7 is
where the body tag starts inside of which all the elements of a web page are
generally kept—as of now we only have simple text :-
Line 7a:- This is the body of the webpage
where all the elements of a page will be kept including animation graphics etc.
Line 8 closes the <body> tag
And Line 9 closes the <html> file itself.
So pretty simple huh.....
Don’t worry about the minute details and working of this language I will explain to you as required, but if you find anything unclear please comment so that I could provide you with a solution.
Just have a folder to start working – keep it in a place from where you can often access easily.
Inside the folder just create a text file using notepad type in all the above HTML code without line number and sub line numbers—save it with the file name myfirstwebpage.html and then try to open it by double clicking the file.
Did you see
any output , if yes congrats u have created your first website (webpage) , if
no, simply read my blog and follow again.
Notice how
the file was read by the browser and how the document got arranged. Ok that’s it
for today tomorrow we will cover more important things bye c u soon, and don’t forget
to comment.
No comments:
Post a Comment