In HTML there is a basic concept that is used with almost every code that could be written in the file. Specific elements of HTML are called tags. For example, if you wanted to insert an image into a webpage, all the code associated with inserting that image would be considered a tag. Every tag in HTML must be opened and then close. To illustrate this I will use the HTML tag. The HTML tag is used at the top and bottom of the entire HTML document in order to define that document as an HTML document. The HTML tag would look like this...
As you can see, I have inserted two elements. Although both have the letters HTML, the closing tag is slightly different. The forward slash is added just after the less than sign to close the tag. Everything between the two tags would be HTML. Anything written after the closing tag would not be read by the browser. Similarly, anything written before the open HTML tag would also not be read as part of the website. If you attempted to insert an image before or after the HTML section, the image would not appear.
Within an HTML tag there are two sections that make up a website. The first section that makes up a website is the head section. The head section contains the website title, keywords, and other information vital to the website operation. Nothing within the head section of the website is visible within the browser. After inserting the head section your HTML document, your page should look like this...
As with the HTML tags, the head tags also need to be opened and closed. Although I have indented the head tags in front of HTML tags, it is simply a matter of code cleanliness. In essence, your code could look like this and still operate just fine...
The final section of an HTML file that I will discuss in this article is the most important part of the website. This section is the body section and is defined with a body tag. The body tag contains links, text, image codes, and all other information that you want your website visitors to view when visiting your site. After inserting the body tag into your HTML code your document should look like this...
You must make sure that the body open and close tags are written after the closing of the head tag and before the closing of the HTML tag. Inserting the body tag in any other manner would cause errors in your webpage. Now that you have created your first HTML document, it is a good idea to create a site folder in order to organize your test website for future editing and design. First you should create a folder in your computer called test site or my site. The folder name doesn't really matter, however it should be something that you remember as being your test website. Once you create that folder, make sure to "save as" your text document. Since this is going to be essentially your homepage you'll name your page index. However, it is not enough to simply save it as index as her computer to simply save it as a tax document. When "saving as", you must type in ". HTML" after index. Putting in the . HTML will allow your computer to save the file as an HTML document.
In order to check to make sure that you save it properly, go to the folder that you save it in and look at the document icon. The document should not look like a notepad document anymore. When you save an HTML document it will save with the icon of your default browser. If your default browser is Internet Explorer the document will show up as an Internet explorer document. Now you have created your first HTML document.
Published by victor rodriguez
Hello everyone. I am the owner and Designing Manager of Victory Web Productions. I live in Guilderland, NY and am a father of a beautiful baby girl, Amy.I guess this is where I tell you a little about my h... View profile
-
The Joys of Tag Sale Shopping
Do you love tag sale shopping? Have you ever been to one? Warning: tag sale shopping can become an addiction, that is for sure. Tag sale shopping is a great way to get bargains...
- 7 Things You Can Do Today to Make Google Fall Head Over Heels in Love with Your Sm... Creating your own small business website requires some planning to get it right. You want Google to sit up and take notice of your site at first glance. Here are 7 things you can do today to quickly improve your Googl...
-
The Ten Commandments of HTML Coding
So you want to create web pages?? Here's a list of general rules and advice the considerate web designer should abide by when learning to create documents in standard HTML.
- Web Design Elements You Should Avoid Having on Your Site This is simply advice on web design and things to avoid on your site in order to more productive.
-
Google Ranks Miracle Studios Among Top Ten Web Design Companies
"Web Design Company" key phrase is the most competitive keyword in SEO industry. With an intense competition of "1,390,000,000" --- OMG!
- Introduction to HTML
- FREE Online Learning: Learn HTML Today
- WebSite Tonight 3.0 From Godaddy.com: Product Review
- Basic HTML Tutorial
- HTML Tutorial #1 - Introduction
- Build Your Own Website - Part 3: HTML Code
- Learning HTML Website Creation for Beginners: Part 1
|
|
- Hackers intercept FBI, Scotland Yard call (AP)
- EU probes new Google privacy policy (AP)
- HP awards new CEO Whitman with $16.5M pay package (AP)
- Facebook Timeline feature unpopular, especially among Baby Boomers (Yahoo! News)
- Super Bowl bust: U.S. government seizes 307 domains for violating NFL copyrights (Yahoo! News)