Hello buddies.
Today I will be glad to show you how you can create a HTML page and open it with a browser.
Open a new notepad in your personal computer.(windows operating system).To do it click right button of in any blank area on the screen and click on new. Then choose “text document”. It will open a new notepad. Then type this
<B> hello buddies? This is my first web page. </B>
Then click file>>save as>>the name you recommend.html>>save.
Don’t forget to save the file in .html format. Or the file won’t work. Then you can see a new html file opened named (the name you recommend.html)
Now click on it to open it to see your first web page in your browser.
You can see a new webpage written this sentence below:
Hello buddies? This is my first web page
Now come to know about some HTML tags.
<B> (the sentence you write here will appear in bold font) </B>
<I> (the sentence you write here will appear in italic font) </I>
<U>(the sentence you write here will appear in underlined format)</U>
<B><I><U> (the sentence you write here will appear as bold, italic and underlined) </B></I></U>
Note: Don’t forget to close a tag with </ B, I or U> when you have started that with <B, I or U>
You can also start a sentence with </> but you’ve to close it with <>.
HTML has 6 type of heading tags, let’s learn about them:
To learn it with an example
Open a new notepad and type these below:
<html>
<head>
<title>"My 2nd Web Page"</title>
</head>
<body>
<h1>it's a page all about me</h1>
<h2>My name is david arnold</h2>
<h3>i am student of CSE</h3>
<h4>There are lot of CSE students in bangladesh</h4>
<h5>we all love programming</h5>
<h6>we want to be elite programmers</h6>
</body>
</html>
Then save it with my2ndwebpage.html or another name with ending with .html extension.
An html file will be created.
Click on it and have fun.
I hope you understood that well.
Best of luck.
No comments:
Post a Comment