Friday, July 3, 2020

Introduction Of HTML


WEB DEVELOPMENT

WEB DEVELOPMENT

How can web sits work?
Basic requirement to Build a Web Site:

  1. HTML
  2. CSS
  3. JAVASCRIPT

HTML it is most important for web sites.It is the man body of the site.
CSS it is using for making web site beautiful with style and designs.
JAVASCRIPTit is the man part of web site its work in web site as a brain.

HTML stands for Hyper Text Markup Language.
It is used to design web pages using markup language.
HTML is the combination of Hypertext and Markup language. Hypertext defines the link between the web pages.
Markup language is used to define the text document within tag which defines the structure of web pages.
This language is used to annotate (make notes for the computer) text so that a machine can understand it and manipulate text accordingly.
Most of markup (e.g. HTML) languages are human readable.Language uses tags to define what manipulation has to be done on the text.
HTML is a very easy language to learn and super simple to write (not that I would necessarily call HTML a language so to speak). A Markup Language is defined as transporting data, not acting upon the data itself. The “code” is encapsulated in a skeleton.

A Simple HTML Document


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

  • This Simple HTML Document Result Shown As (Output)

My First Heading

My first paragraph.


  • 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 which will not be displayed on the main contentof a web page.
  • The <title> element specifies a title for the document.It appears on the upper part of the browser.
  • The <body> element contains the visible page content.Such as headings, paragraphs, images, hyperlinks, tables, lists, etc.
  • The <h1> element defines a large heading.
  • The <p> element defines a paragraph.

HTML tags normally come in pairs but Some HTML tags are not closed, for example <br> and <hr>.

All HTML tags must enclosed with <> these brackets.
Every tag in HTML perform differen tasks.
If you have used an open tag , then you must use a close tag (except some tags)

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>



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

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

Introduction Of HTML

WEB DEVELOPMENT WEB DEVELOPMENT How can web sits work? Basic requirement to Build a Web Site: ...