Free HTML Tutorial
What is HTML?
Ans:HTML stands for Hyper Text Markup Language.HTML adds structure to text by annotating it with tags. A
tag is made up of a word surrounded by
angled brackets. In HTML, tags are placed at the starting point and at the end
of the text they are structuring. These tag-content-tag combinations or amalgamated
form HTML elements, or nodes.
- HTML describes the structure of Web pages using markup
- HTML elements are the building blocks of HTML pages
- HTML elements are represented by tags
- HTML tags label pieces of content such as "heading", "paragraph", "table", and so on
- Browsers do not display the HTML tags, but use them to render the content of the page
Here’s what an element looks like below:
<tag>Element</tag>
Please note that the closing tag includes a forward slash earlier
inside of the opening bracket. Closing tags are very important, since they mark
that an element ends.
Some real-world HTML tags are given below.
HTML Tags
If you want to make text bold, websites use the <strong> tag. Here’s an example:
HTML Tags
If you want to make text bold, websites use the <strong> tag. Here’s an example:
If you write code below:
Closing tags are <strong>very</strong> important.
You will get the below result:
Closing tags are very important.
Closing tags are <strong>very</strong> important.
You will get the below result:
Closing tags are very important.
The word ‘very’ has been bolded because it is surrounded by the <strong> tag.
In HTML, <strong>bold</strong> is for <strong>making text stand out</strong>, and <em>italics</em> are for <em>emphasis</em>.
You will get the below Result:
In HTML, bold is for making text stand out, and italics are for emphasis.
You will get the below Result:
In HTML, bold is for making text stand out, and italics are for emphasis.
It is remember that another important tag is the <h1> tag. This is used to indicate the heading of a web page. Such as :
<h1>Free HTML Tutorial</h1>
Each web page has one pair of <h1> tags. This page’s <h1> is the heading at the top of the page that reads ‘Free HTML Tutorial’.
If it is for subheadings, there is a similar tag <h2>. In fact, there’s an <h2> coming up on this page right now.............
<h1>Free HTML Tutorial</h1>
Each web page has one pair of <h1> tags. This page’s <h1> is the heading at the top of the page that reads ‘Free HTML Tutorial’.
If it is for subheadings, there is a similar tag <h2>. In fact, there’s an <h2> coming up on this page right now.............
HTML Structure
We found moving on, every web page written in HTML shares a common structure, an example of which are mentioned below:
<!DOCTYPE html>
<html>
<head>
<title>A Web Page</title>
</head>
<body>
<h1>A Web Page</h1>
</body>
</html>
<!DOCTYPE html> is the first and most important line of an HTML document. It confirms that web browsers will correctly read the HTML that follows. If you visit a page that doesn’t include it, the page might not display as the owner intended.
After that, there is an <html> tag that contains the entire contents of the page. There are only two tags immediately inside of <html>, and they are <head> tag and <body> tag.
It is <head> is the place for information about the web page – the title, a description, its correct URL, keywords to describe the page etc.
<body> is where you’ll find everything that shows up on the page itself. This includes headers, main content, sidebars and footers.
<head>
<title>A Web Page</title>
</head>
<body>
<h1>A Web Page</h1>
</body>
</html>
<!DOCTYPE html> is the first and most important line of an HTML document. It confirms that web browsers will correctly read the HTML that follows. If you visit a page that doesn’t include it, the page might not display as the owner intended.
After that, there is an <html> tag that contains the entire contents of the page. There are only two tags immediately inside of <html>, and they are <head> tag and <body> tag.
It is <head> is the place for information about the web page – the title, a description, its correct URL, keywords to describe the page etc.
<body> is where you’ll find everything that shows up on the page itself. This includes headers, main content, sidebars and footers.
If you write the following codes:
========================
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
=========================
You will find or get the below results:
==========================
My First Heading
My first paragraph.==========================
Remember the following:
- 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 Editors
Write HTML Using Notepad or TextEdit
Web pages can be created and modified by using professional HTML editors.
However, for learning HTML we recommend a simple text editor like Notepad (PC) or TextEdit (Mac).
We believe using a simple text editor is a good way to learn HTML.
Follow the four steps below to create your first web page with Notepad or TextEdit.
Step 1: Open Notepad (PC)
Windows 8 or later:
Open the Start Screen (the window symbol at the bottom left on your screen). Type Notepad.
Windows 7 or earlier:
Open Start > Programs > Accessories > Notepad
Step 1: Open TextEdit (Mac)
Open Finder > Applications > TextEdit
Also change some preferences to get the application to save files correctly. In Preferences > Format > choose "Plain Text"
Then under "Open and Save", check the box that says "Ignore rich text commands in HTML files".
Then open a new document to place the code.
Step 2: Write Some HTML
Write or copy some HTML into Notepad.
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
Notepad
Step 3: Save the HTML Page
Save the file on your computer. Select File > Save as in the Notepad menu.
Name the file "index.htm" and set the encoding to UTF-8 (which is the preferred encoding for HTML files).
View in Browser
You can use either .htm or .html as file extension. There is no difference, it is up to you.
Step 4: View the HTML Page in Your Browser
Open the saved HTML file in your favorite browser (double click on the file, or right-click - and choose "Open with").
The result will look much like this:
View in Browser
Source: http://www.w3schools.com/html/html_editors.asp
You must follow and practice-practice-practice and practice otherwise you can not success:
Related Links are given below:
HTML5 Tutorial
HTML HOME HTML Introduction HTML Editors HTML Basic HTML Elements HTML Attributes HTML Headings HTML Paragraphs HTML Styles HTML Formatting HTML Quotations HTML Computercode HTML Comments HTML Colors HTML CSS HTML Links HTML Images HTML Tables HTML Lists HTML Blocks HTML Classes HTML Iframes HTML JavaScript HTML File Paths HTML Head HTML Layout HTML Responsive HTML Entities HTML Symbols HTML Charset HTML URL Encode HTML XHTML
Related Links:
http://www.codeconquest.com/tutorials
https://www.codeschool.com/
No comments:
Post a Comment