Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts

Tuesday, 2 May 2017

How to write HTML using Notepad?

In this post, I will explain how to write HTML using notepad.

Web pages are created and modified using HTML editors. But it is not necessary to have HTML editors to write HTML. By using a simple text editor like Notepad we can write HTML.

Follow the steps below to create a webpage using Notepad.
1. Open Notepad
a.      For Windows 8 or later
Go to Start Screen then type Notepad in the provided search box.
b.      For Windows 7 or earlier
Go to Start >> Programs >> Accessories >> Notepad.

2.  Write HTML in notepad
Sample HTML code,

<!DOCTYPE html>
<html lang="">
<body>
<h1>Sample HTML Code</h1>
</body>
</html>

3.  Save notepad file on your computer with the extension .htm or .html.
For example – sample.htm or sample.html

4. Open saved HTML file in a browser to view


Thursday, 20 April 2017

What is HTML (HyperText Markup Language)?

In this post, I will explain about HTML (HyperText Markup Language).

HTML stands for HyperText Markup Language. Every webpage is written in a language called HTML. We can think HTML as the skeleton that gives every webpage structure. HTML is the standard markup language for creating Web pages. It describes and defines the content of a webpage. HTML elements are represented by tags. Browser is using HTML tags to render the content of the page. The browser did not display HTML tags.

Example - 

<!DOCTYPE html>
<html lang="">
<head>
    <title>This is Page Title</title>
</head>
<body>
  This section is for content of page
</body>
</html>

In the above example, we can see different tags.
1. <!DOCTYPE html> is an instruction to the web browser about the version of markup language
2. <html> element is the root element of an HTML page
3. <head> element provides general information (metadata) about the document, including its title and links to its scripts and style sheets
4. <title> element specifies a title of a page
5. <body> element represents content of an HTML page