Skip to main content

HTML Lesson#02 Learn by Naeem Raza

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>











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).

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:


Comments

Popular posts from this blog

Start Your Online Store

Start Your Online Store -Call:+92300-8339030 100% Mobile Solution The Storefront and admin are designed to be responsive and are optimized for various computer screen sizes as well as mobile and tablet devices to keep your eCommerce always at your fingertips SEO Friendly eCommerce The Storefront is effectively search engine optimized, to rank your site and product information top on google. The Mobile version is equally Google optimized. t’s easy to learn and simple to use There is no special training or knowledge required to start selling your products online using OurCart. The voice controlled and easy-to-use intuitive interface makes your eCommerce management a breeze. Start Your Online Store -Call:+92 300-8339030 Feature-rich OurCart is equipped with many out-of-the-box enterprise grade features. We are continuously seeking ways to expand the software to improve your eCommerce experience. Innovative Technology OurCart shopping car...

Cpp Tutorials

1-Introduction   1.1 Intro To C++   1.2 Advantages and Disadvantages 2-An Example of C++ Program   2.1 Structure of Program 3-Variables and Operators   3.1 Variables   3.2 Variables Scope   3.3 Constants-Literals   3.4 Variables Storage Classes   3.5 Operators 4-Compund Types   4.1 Array   4.2 String   4.3 Pointer   4.4 Structure   4.5 Reference   4.6 Enumration and Type Def 5-Input and Output   5.1 Cout (Output Stream)   5.2 Cin  (Input Stream)   5.3 Cerr (Error Stream)   5.4 Clog (Log Stream) 6-Flow of Control 6.1 Conditional Branching if 6.2 Conditional Selection Switch 6.3 Loop-While and For 6.4 Break and Continue 6.5 Random Number 7-Functions   7.1 Function Basics   7.2 Declaration ,Call and Arguments   7.3 Inline Function   7.4 Recursion 8-Object Oriented Approach   8.1 Classes Basics   8.2 Cons...

HTML Lesson#03 Learn by Naeem Raza

HTML Elements An HTML element usually consists of a  start  tag and  end  tag, with the content inserted in between: < tagname > Content goes here... < /tagname > The HTML  element  is everything from the start tag to the end tag: < p > My first paragraph. < /p > html5 by naeem raza < !DOCTYPE  html > < html > < body > < h1 > My First Heading < /h1 > < p > My first paragraph. < /p > < /body > < /html > Example Explained The  <html>  element defines the  whole document . It has a  start  tag <html> and an  end  tag </html>. The element  content  is another HTML element (the <body> element). < html > < body > < h1 > My First Heading < /h1 > < p > My first paragraph. < /p > < /body > ...