Skip to main content

Introduction to HTML

HTML Introduction

HTML Introduction

HTML is the standard markup language for creating webpages.


What is HTML?

  • HTML stands for Hyper Text Markup Language.
  • HTML describe the structure of a webpage.
  • HTML consists of series of elements.
  • HTML elements tell the browsers how to diplay the content.
  • HTML element label pieces of content such as "this is a heading", "this is a paragraph", "this is a link", etc.

A simple HTML Document

Example


<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>

<h1>My first heading</h1>
<p>My first paragraph.</p>
</body>
</html>


    Example Explained
  • The <!DOCTYPE html> declaration defines that this document is an HTML5 document.

  • The <html> element is the root element of an HTML page.

  • The <head> element contains meta information about the HTML page.

  • The <title> element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab).

  • The <body> element defines the document body, and is a container for all the visible contents, such as heading, paragraph, images, hyperlinks, list, tables etc.

  • The <h1> element defines a large heading.

  • The <p> element defines a paragraph.


What is an HTML element?

An HTML element is defined by a start tag, some content, and an end tag:

<tagname>Content goes here...</tagname>

The HTML element is everything from the start tag to the end tag:

<h1>My First Heading </h1>

<p>My First paragraph </p>

Start tag Element content End tag
<h1> My first heading </h1>
<p> My first paragraph </p>
<br> none none

Note: Some HTML elements have no content (like the <br> element).
These elements are called empty elements. Empty element do not have an end tag!

Thanks for visit!!!

Comments

Popular posts from this blog

HTML formatting tags

Formatting tags in HTML. There are different types of formatting tags in HTML and these tags are.~ <b> <strong> <i> <em> <mark> <small> <del> <ins> <sub> <sup> HTML formatting tags specify how the text can appear in the browser like the text should appear bold, italic, small, large, etc. Now let’s understand each tag one by one. Firstly we will see a bold and strong tag. let’s understood the bold tag. Anything that appears within the <b>…</b> tag is displayed in bold. The HTML <b> tag defines bold text, without any extra importance. Then we have the strong tag. The HTML strong <strong> tag defines the text with strong importance. The content inside is typically displayed in bold. Then we have the HTML italic and emphasis elements. Anything that appears within <i>….</i> element is displayed in italics. The HTML  <i>the the  element defines the specific part of the ...

What are some of the best ways to learn programming?

1. Pick a language   with a purpose. Before you start learning code for the first time or continue your education, you should have a clear understanding of what you want to learn and why you want to learn it. Do you prefer developing games to developing websites? Think about data science. Before choosing a programming language, you should have a goal in mind because different languages have different uses. If you are interested and engaged in the subject, you will have a better understanding of the material and move much more quickly. 2. Start learning the fundamentals. Start at the bottom and work your way up once you've chosen a language to learn. Even though you might be tempted to enroll in intermediate courses or try taking multiple classes at once, it is best to master the fundamentals before moving on. You run the risk of making mistakes when you skip over the fundamentals of programming, which will become apparent as you progress through more challenging readings. After th...

Why should we learn Python ? | Python learning.

| Python Python is high level programming language, by the use of python we create complex computer programs. Python is also known as interpreted language. |  Python used in various fields     Python can be used in different ways such as: Software developers Data scientists Data Analysts Hackers Bankers Engineers Designers Doctors Scientists, etc. | Why Python is known as Python? Python is named after a comic series. Guido Van Rossum is the creator of Python. Python is an easy programming language, using python the complex programs can be written.   |  Advantages of Python Python can be used online, offline. A nd Python can be used in Smaller or big projects. Python is an Interpreter language, where Programs can be executed directly without complier.   |  Applications of Python Web application. Mathematical Computations. Graphical User Interface. And may more.....   Thanks for visit!!!