ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

HTML Tutorial - How To HTML Code For Dummies

Updated on May 9, 2011

HTML

HTML coding is a must when it comes to creating web pages online.

HTML can be simple to learn. This guide will teach you some of the basic HTML coding that will help you create your first web page!

To Start A Web Page

The HTML code of a web page starts like this:

<HTML>
<HEAD>
<TITLE>
</TITLE>
</HEAD>
<BODY>
</BODY>
</HTML>

Type your HTML code in your computers text writing program such as notepad(PC) or textedit(MAC). You should save the file on your computer as "title".html

Always remember to put the ".html" at the end!

If you are using a MAC you will need to make sure that you are typing your code as "plain text." Click "format" and then "make plain text."

After you have saved your web page you can open it with your web browser, such as Safari or Internet Explorer. I like to open my page every time I change something to make sure it's coming out as planned!

Title

The <TITLE> is the line of words that you see at the very top of your web browser.

Your <TITLE> should be short and descriptive of your page.

Body

The <BODY> portion of your code is where you put everything that will be contained on your web page such as; text, images, videos, and more!

You can also use the <BODY> to change the background of your web page but I'll save that for another hub!

To add text to your web page simply type the text after the <BODY> tag. The </BODY> tag ends the web page, so be sure that everything is between those two tags!

TheĀ possibilitiesĀ are endless when it comes to customizing your web page, but I'll save most of that for another hub as well. This one is just for the basics!

Start typing the text of your page and save the file and open with your browser to see how it looks!

Sample Web Page

Here is a sample web page, called Dingy's Website, for you to copy and save on your computer. Use this as your test page. Make changes and see how they look with your browser!

<HTML>
<HEAD>
<TITLE>
Dingy's Website
</TITLE>
</HEAD>
<BODY>
Hello, welcome to my web page. This is a sample website that I made for you to change!
</BODY>
</HTML>

Done

Now you should know some of the basics to making a website. Try it out see how you like it! Remember your web page can only be viewed on your computer! It is not "online" unless you purchase a web domain and upload your page.

Good luck, and watch for more hubs on HTML coding!

Comments

    0 of 8192 characters used
    Post Comment

    • girlpower profile image

      girlpower 

      21 months ago from eugene oregon

      What? now I'm really lost. My google adsence is telling me that i can add a banner on my webpage advertising something. I already have added capsules on my hubpages from amazon with amazon products. But a banner would put it on my page, like a link to get amazon giftcards. It gives me this long code to copy and paste into the code to my webpages. Does that mean my hubpages site? Where is my hubpages webpage that i can add the code into, they say at the bottom right before the HTML? Help. PS i sent an email to adsence amazon and asked them for help and they said they can't help me, and send me to pages that make no sence. Maybe that's why they call them adsence it should be called nosence. All my income on the site shows all zero's for years.

    • Ding.A.Ling123 profile imageAUTHOR

      Ding.A.Ling123 

      4 years ago

      Absolutely, I do not claim at all to be a professional I have very basic experience in HTML and creating my own websites. There definitely are more in depth guides and probably hubs this was simply to get someone started who knows nothing. Hopefully I've helped some.

    • Ding.A.Ling123 profile imageAUTHOR

      Ding.A.Ling123 

      4 years ago

      Thanks for the comment glad I could help

    • profile image

      12yearold 

      6 years ago

      I guess I'm the only 12 yearold on here trying to code HTMLs?

    • adomcruze profile image

      Adom Cruze 

      6 years ago

      It's seems like a basic coding, you may check to make it better. I have visited this : hubpages.com/hub/my-first-website.

    • profile image

      unknown 

      7 years ago

      Thanks this seemed to explain a lot to a total noob like me.

    • profile image

      Delizah 

      8 years ago

      Hey there.

      I am creating my first website as a year 13 in school. I have not created one before and don't really know what im doing. What i am after is information as to how i can add in a constrained box area with its own scroll bar. I do not understand most webtalk so please help me and explain as if i also were a five year old.

      Please help :)

    • profile image

      5683101 

      8 years ago

      This is verys usfull for dummies lol I was one but then my friend introduced me to html and now Im basically a nerd like him!!!!

    • jonkarna profile image

      jonkarna 

      8 years ago

      Your doctype declaration should be at the top of the page. If it is xhtml, it should also have the xml declaration on top of that also. I prefer to have my html tags in lower case.

    • profile image

      website consultants 

      8 years ago

      why couldn't the W3 tutorial be this easy?

    • cym profile image

      cym 

      8 years ago from Europe

      I just noticed now that the link in my post is not working, because of the ) at the end... So here it is again, just to be sure: https://hubpages.com/technology/my-first-webpage

      You may also want to read this hub, with very basic information: https://hubpages.com/technology/my-first-website

      I hope my hubs clear up the basics a little. After that you can continue with the great hubs that Ding.A.Ling123 has written.

    • Rickrideshorses profile image

      Rickrideshorses 

      8 years ago from England

      Very useful for complete beginners like me!

    • cym profile image

      cym 

      9 years ago from Europe

      Hello Jen

      I've put together a hub which has the same information as this one, but I have it written it in a style as if you were 5 years old... Maybe my hub can help you? It's called 'My first webpage'

      (https://hubpages.com/hub/my-first-webpage)

      By the way, 5 years old kids usually learn very fast ;-) They need the explanation in a very different way than adults do. My hub is for adults who just don't understand how to get started putting their first HTML page together... I really hope my hub can help you. And after that you can continue with the lessons here, which Ding.A.Ling123 has put together.

    • Jen's Solitude profile image

      Jen's Solitude 

      9 years ago from Delaware

      I hope I can study this and actually do it. I would love to understand HTML better. I wish someone could talk to me like I'm 5 years old, maybe then I could get it. :D Thanks for the hub.

    working

    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, hubpages.com uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at: https://hubpages.com/privacy-policy#gdpr

    Show Details
    Necessary
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the googleapis.com or gstatic.com domains, for performance and efficiency reasons. (Privacy Policy)
    Features
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Marketing
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Statistics
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)