At this point of time we have learned the some basic tags in HTML. Now let us try to create a HTML page with the tags we learned.
A quick remainder, Every HTML file should starts with Open ‘html’ tag and ends with close ‘html’ tag, ‘head’ and ‘Body’ tags should be defined in ‘html’; and ‘title’ tag should be defined with in ‘head’ tag.
This is the structure of Simple HTML File :
Let’s use this structure to develop a meaningful HTML page. Open notepad, type complete structure.Lets give a title to HTML page as “My First HTML Page”, this can be done by doing like this <title>My First HTML Page</title> What ever the text typed in between opening and ending tags of title will appear in top left of the browser like this.
Let display a message in body like this
Now your code should be look like this
<title>My First HTML Page</title>
Now save as your notepad as “myFirstHtml.html” or “some_name.html” at some location.
Now go to the location where u saved, your file should look like a web page.
click it and see … it should display hello world like this
Now you have created your own HTML Web Page.
At any point of time you can edit your html file by, right-click the file & select “Edit” , it should open in Notepad for editing.
Introduction to HTML
HTML stands for Hyper Text Markup Language.
Most of the learners think HTML was a Programming Language. But HTML is not a Programming Language, HTML is a Markup Language. HTML is used for creating or developing web pages which can be viewed in web browsers(Firefox,Internet Explorer,Chrome & etc.). HTML files can be created by using any type of text editors (which we will discuss in later sections), but for now we will use Notepad. All HTML files should be saved as with extension “.html” or “.htm”. HTML is not case sensitive.
Basically learning HTML means learning HTML Tags. For example these are some tags: <html>,<body>,<head>,<br> and soon. Learning HTML is all about learning functionality of HTML tags and how to use them. In any HTML file we should indicate starting point and ending point for each kind of tag. For example body tag starting position should be indicated as “<body>” and ending as “</body>”.
To getting started with html you should learn some tags and there usage. The main tags are
Every HTML file should starts with Open HTML tag and ends with close HTML tag like this
This tag will tell browser that this is a HTML page. Head and Body Tags will be defined in between html tags only.
Title tag should be defined in Head tag only.
Next important tag is Body tag. Rest of all kind of tags should be defined in Body. So of the tags are ‘h’ for heading, ‘br’ for line break, ‘p’ for paragraph.
All kind of tags can be used more then once except html,head,title,body. These 4 tags can used only once.
In Next Lesson Create Your Own HTML page.