HTML
Introduction :-
HTML is an acronym which stands for Hyper Text Markup Language which is used for creating web pages and web applications.Hyper Text: Hypertext simply means "Text within Text." A text has a link within it, is a hypertext. Whenever you click on a link which brings you to a new webpage, you have clicked on a hypertext. HyperText is a way to link two or more web pages (HTML documents) with each other.
Markup language: A markup language is a computer language that is used to apply layout and formatting conventions to a text document. Markup language makes text more interactive and dynamic. It can turn text into images, tables, links, etc.
Web Page: A web page is a document which is commonly written in HTML and translated by a web browser. A web page can be identified by entering an URL. A Web page can be of the static or dynamic type. With the help of HTML only, we can create static web pages.
Text Editors :-
- HTML file is a text file, so to create an HTML file we can use any text editors.
- Text editors are the programs which allow editing in a written text, hence to create a web page we need to write our code in some text editor.
- There are various types of text editors available which you can directly download or use Notepad, but for a beginner, the best text editor is Notepad (Windows) or TextEdit (Mac).
- After learning the basics, you can easily use other professional text editors which are, Notepad++, Sublime Text, Vim, etc.
- In our tutorial, we will use Notepad and sublime text editor. Following are some easy ways to create your first web page with Notepad, and sublime text.
- Step 1: Open Notepad (Windows)
- Step 2: Write code in HTML
- Step 3: Save the HTML file with .htm or .html extension.
- Step 4: Open the HTML page in your web browser
Building Blocks :-
Tags: An HTML tag surrounds the content and apply meaning to it. It is written between
Attribute: An attribute in HTML provides extra information about the element, and it is
Syntax
<tag name attribute_name= " attr_value"> content </ tag name>
Elements: An HTML element is an individual component of an HTML file. In an HTML file, everything written within tags are termed as HTML elements.
HTML Building blocks
Structure Example :-
<!DOCTYPE html>
<html>
<head>
<title> Html Structure Example</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
0 Comments
We love hearing from our viewers! Your comment is important to us. ❤️