HTML_1_Introduction

What is a website?

A website is a collection of web pages and related content that is identified by a common domain name and published on at least one web server. 
Web advertising is any form of Internet-based marketing. 
Nowadays, websites become the tools or services for people in our working environments due to the digital transformation.

Why we should use?

  • First impression as a real business
  • Online Presence 24/7
  • Information Exchange Easily
  • Market Expansion
  • Advertising
  • Use anytime, anywhere, any devices

Basic Website Language

  1. HTML stands for Hyper Text Markup Language, which is the most widely used language on Web to develop web pages.
  2. CSS stands for Cascading Style Sheet, which is used to design the web page to be more attractive.
  3. JS stands for JavaScript, which is used to make web pages interactive and dynamic.

What is HTML?

  • HTML stands for Hyper Text Markup Language
  • HTML is the standard markup language for creating Web pages
  • HTML describes the structure of a Web page
  • HTML consists of a series of elements
  • HTML elements tell the browser how to display the content
  • HTML elements label pieces of content such as "this is a heading", "this is a paragraph", etc.

HTML Structure 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>










HTML Document

  • 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's body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.
  • The <h1> element defines a large heading
  • The <p> element defines a paragraph
HTML Editors and Web Browsers

Web pages can be created and modified by using professional HTML editors.
The purpose of a web browser (Chrome, Edge, Firefox, Safari) is to read HTML documents and display them correctly.


HTML Block and Inline Elements

Block-level Elements

A block-level element always starts on a new line, and the browsers automatically add some space (a margin) before and after the element.
A block-level element always takes up the full width available (stretches out to the left and right as far as it can).
Two commonly used block elements are: <p> and <div>.
The <p> element defines a paragraph in an HTML document.
The <div> element defines a division or a section in an HTML document.
The <p> element is a block-level element.
The <div> element is a block-level element.

Inline-level Elements

An inline element does not start on a new line.
An inline element only takes up as much width as necessary.
This is a <span> element inside a paragraph.
<span>Hello World</span>


A block-level element always starts on a new line and takes up the full width available
An inline element does not start on a new line and it only takes up as much width as necessary
The <div> element is a block-level and is often used as a container for other HTML elements
The <span> element is an inline container used to mark up a part of a text, or a part of a document

Comments

Popular posts from this blog

HTML_6_Media

HTML_7_Link