HTML Introduction



Transcription/प्रतिलिपि
HTML stands for Hyper Text Markup Language. HTML is the standard markup language for creating Web pages.  Markup in HTML defines the definition and presentation of text shown on webpages. It specifies code for formatting, both the layout and style, within a text file. The code used to specify the formatting are called tags.

Some of the features or characteristics of HTML are

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 display the content of the page


HTML contains three basic parts
Head, Title and Body. Head tag contains the information about the text to be displayed on HTML page. Title tag shows the Title on the HTML page. Body tag contains the actual text to be displayed.

Here is an example of simple HTML

html
head
titlePage Title/title
/head
body

h1My First Heading/h1
pMy first paragraph. /p

/body
/html

Code Source: https://www.w3schools.com/html/html_intro.asp

Let’s consider each HTML element
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

tags are basic building blocks of HTML which tells the computer how text should be displayed. Tags are of two types
container tags and empty tags

Container tags are used in pairs it has starting tag and ending tag. starting tag contains the name of the tag while the ending tag contains the forward slash and tag name to mark the ending of the tag. Some examples of container tags are HTML, Head and body

Empty tags are single tags which are only used independently. The example of Empty tag is BR or break rule




Let’s create our first HTML
Open Notepad
Type in or Paste the code from the description
Save the file as HTML file
Browse to the location of HTML file
Double Click to open the file

Notice Page Title, Heading and Paragraph of Page Displayed

Well Done! You have covered What is HTML, Structure of HTML, Types of Tags.
Which topic you want us to cover next. Share your thoughts in the comment section.



Comments

Popular posts from this blog

Tenalirama: Man who bring kingdom to its knees with rice and chessboard !

DFC_DOCBROKER_EXCLUDED: Primary Docbroker Blacklisted

Enabling Mouse Cursor Recording In OBS