HTML Introduction

Intro to HTML


Website pages are composed in HTML - a basic scripting language.

HTML is short for HyperText Markup Language. 

Essentially a HTML report is a plain content record that contains content and that's it. 

At the point when a program opens a HTML record, the program will search for HTML codes in the content and utilize them to change the design, embed pictures, or make connects to different pages. 

Since HTML archives are simply message records they can be composed in even the easiest content tool.

A more prominent decision is to utilize an extraordinary HTML editorial manager - perhaps one that puts center around the visual outcome as opposed to the codes - a supposed WYSIWYG proofreader ("What You See Is The thing that You Get").

Probably the most well known HTML editors, for example, FrontPage or Dreamweaver will give you a chance to make pages pretty much as you compose archives in Word or whatever content tool you're utilizing.


Creating HTML Document

Creating a HTML document is simple. To start coding HTML you require just two things: a basic text editor and an internet browser. Notepad is the most basic of simple-text editors and you will probably code a fair amount of HTML with it. 


- Open Notepad or another text editor. 
- At the top of the page type <html>. 
- On the next line, indent spaces and now add the opening header tag: <head>. 
- On the next line, indent ten spaces and type <title> </title>. 
- Go to the next line, indent five spaces from the margin and insert the closing header tag: </head>. 
- Five spaces in from the margin on the next line, type <body>. 
- Now drop down another line and type the closing tag right below its mate: </body>. 
- Finally, go to the next line and type </html>. 
- Save your file.

Step by step instructions to Name Your Document.

What you name your document is very important. You should first give your document a name and after that add a suffix to it. That is the way everything works in HTML. You give a name and after that a suffix. 

Follow this format to name your document:

1. Choose a name of your document "template". 

2. Add a suffix. For all HTML documents, you will add either ".htm" or ".html".

Document is saved, and the name of the document is template.html.
  
HTML Example –

   
    <!DOCTYPE html>
    <html>
    <head>
            <title> Page Title </title>
    </head>
    <body>
            <h1> My First Heading </h1>
            <p> My First Paragraph </p>
    </body>
    </html>

 Example Explained-
  • The <!DOCTYPE html> declaration defines this document to be HTML5.
  • The <html> element is the root element of an HTML page.
  • The <head> element contains meta information about the document.
  • The <title> element specifies a title for the document.
  • The <body>  element contains the visible page content.
  • The <h1> element defines a large heading.
  • The <p> element defines a paragraph.

HTML Tags 

HTML tags are element names surrounded by angle brackets:

<tagname>content goes here...</tagname>
  • HTML tags normally come in pairs like <p> and </p>
  • The first tag in a pair is the start tag, the second tag is the end tag.
  • The end tag is written like the start tag, but with a forward slash inserted before the tag name.
Web Browsers

The purpose of a web browser (Chrome, IE, Firefox, Safari) is to peruse HTML records and display them. 

The browser does not display the HTML tags, but uses them to determine how to display the document:



 HTML Versions

Since the early days of the web, there have been many versions of HTML:

Comments

  1. It is best to participate in a contest for top-of-the-line blogs on the web. I'll suggest this site! online casino bonus

    ReplyDelete

Post a Comment

Popular posts from this blog

How to Create a One-Page Website

HTML Cheat Sheet

The art of salary negotiation