DEV Community

Bharath kumar
Bharath kumar

Posted on

Html

What is html ?

  • HyperText Markup Language
    HTML (HyperText Markup Language) is the most basic building block of the Web. It defines the meaning and structure of web content.

  • "Hypertext" refers to links that connect web pages to one another, either within a single website or between websites. Links are a fundamental aspect of the Web.

  • HTML uses "markup" to annotate text, images, and other content for display in a Web browser. HTML markup includes special "elements" such as

<head>, <title>, <body>, <header> 
Enter fullscreen mode Exit fullscreen mode


and many others.

  • An HTML element is set off from other text in a document by "tags", which consist of the element name surrounded by < and >. The name of an element inside a tag is case-insensitive. That is, it can be written in uppercase, lowercase, or a mixture. For example, the

    tag can be written as , .
  • HTML is a markup language consisting of a series of elements used to wrap (or enclose) text content to define its structure and cause it to behave in a certain way.

This simple writing text in text editor

Instructions for life:
Eat
Sleep
Repeat
Enter fullscreen mode Exit fullscreen mode

If we wrap this content with the following HTML elements, we can turn that single line into a paragraph

(<p>)
Enter fullscreen mode Exit fullscreen mode


and three bullet points

 (<li>)
Enter fullscreen mode Exit fullscreen mode

Used this element...

<p>Instructions for life:</p>

<ul>
  <li>Eat</li>
  <li>Sleep</li>
  <li>Repeat</li>
</ul>
Enter fullscreen mode Exit fullscreen mode

Output is :

Instructions for life:

  • Eat

  • Sleep

  • Repeat

Reference:https://developer.mozilla.org/en-US/docs/Learn_web_development/Getting_started/Your_first_website/Creating_the_content

Top comments (0)