A webpage is a document or information resource that is suitable for the World Wide Web and can be accessed through a web browser and displayed on a monitor or mobile devices. To create a webpage, a text document(eg- notepad),or a specialized HTML editor is needed.HTML is the coding language that make a webpage.
- Open a notepad (programs -> Accessories -> notepad), then write html codes that we need.Remember all html tags contain <--> and closing tags contain </-->. Eventually, the -- is replaced with a code.
- Type <html>. It is the first tag you write that tells the computer you're starting a webpage. Also close it at the end of the document.
- Add the heading of the page with inside the <head>..........</head> tag.
- Then give a title to that page inside the <title>........</title> tag. Title tag should come inside the head tag. Your title only shows up in the browser.
- Next create a body for webpage using <body>............</body> tag. The bulk of information for your webpage goes between them.
- If you want to give a background color and style to the body. Instead of simply writing <body>, write <body style="background_color red">. Also can give hexcode for the color.
- To make the text go to the next line by using <br> (break line) tag.
- If you want to add marquee, otherwise know as a word that moves across a screen, simply type <marquee> TEXT GOES HERE </marquee>
- If you want to add some pictures, use the html code <img src="URL">.......</img>.
- Then check to make sure all of your tags are closed.
Example code:
<html> <head> <title>
My web page </title> </head> <body bgcolor="yellow"> I Love My School
<marquee> It's the best school in the world </marquee> <img scr="http://www.ourschool.com/kids/common/images/school_image_9.gif"> </img> </body> </html>
|