Docsity

Introduction to Website & HTML, Study notes of Information Technology

Toggle sidebar
bg1
Introduction to Web & HTML
Keywords: Website, HTML, Computer Network
Internet and World Wide Web
Covered in this section:
● What is the Internet?
● What is a website?
● What is HTML?
About Internet
● A collection of computers communicating through wire or wireless is a network of
computers, also known as the Local Area Network LAN.
● A collection of LANs can become a Metropolitan Area Network MAN that covers
an entire city or a Wide Area Network WAN that covers an entire country or
continent.
● The Internet is the collection of WANs, also referred to as the largest WAN.
● Computers communicate with a set of rules known as protocols.
● One of the protocols used today is the Hypertext Transfer Protocol HTTP or the
Hypertext Transfer Protocol Secure HTTPS.
● Both HTTP and HTTPS are capable of communicating with websites.
About Website
● A website can store various information like documents, audio, and video files.
● A collection of websites with their various information is called the World Wide
Web WWW.
● To access information from a website, the most common tool to use is a web
browser like Google Chrome, Safari, Firefox, etc.
● The user accessing the web browser is also referred to as a client, whereas the
website is provided or originated from a web server.
● A web server is a dedicated computer or system where the website lives, and it
manages access to the website.
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Introduction to Website & HTML and more Study notes Information Technology in PDF only on Docsity!

Introduction to Web & HTML

Keywords: Website, HTML, Computer Network

Internet and World Wide Web

Covered in this section: ● What is the Internet? ● What is a website? ● What is HTML?

About Internet

● A collection of computers communicating through wire or wireless is a network of computers, also known as the Local Area Network LAN. ● A collection of LANs can become a Metropolitan Area Network MAN that covers an entire city or a Wide Area Network WAN that covers an entire country or continent. ● The Internet is the collection of WANs, also referred to as the largest WAN. ● Computers communicate with a set of rules known as protocols. ● One of the protocols used today is the Hypertext Transfer Protocol HTTP or the Hypertext Transfer Protocol Secure HTTPS. ● Both HTTP and HTTPS are capable of communicating with websites.

About Website

● A website can store various information like documents, audio, and video files. ● A collection of websites with their various information is called the World Wide Web WWW. ● To access information from a website, the most common tool to use is a web browser like Google Chrome, Safari, Firefox, etc. ● The user accessing the web browser is also referred to as a client, whereas the website is provided or originated from a web server. ● A web server is a dedicated computer or system where the website lives, and it manages access to the website.

About HTML

● The most basic document that creates a website is the Hypertext Markup Language HTML file. ● HTML was created by Tim-Berners-Lee in 1898 to solve document incompatibility in various systems. ● HTML document is saved using the .html file extension. ● A tag is one of the basic HTML syntax where it has an opening and a closing tag. ● The opening tag syntax uses this template , whereas the closing tag uses this template . For example: . ● A pair of opening and closing tags is known as an element. For example: . ● Additional information that can be injected into a tag is known as an attribute. It appears on the opening tag. For example: .

HTML Structure

Covered in this section: ● Where I can create HTML file? ● What is the basic structure of HTML? ● How to create a working HTML?

About Environment

● Creating an HTML file is simple; even Notepad or a text editor is capable of creating it. ● To enable easier development, it is best to get used to an Integrated Development Environment IDE. ● One of the famous IDEs is Microsoft Visual Studio Code that can be downloaded here: https://code.visualstudio.com/ ● Once downloaded, open Microsoft Visual Studio Code, or VS Code for short, and navigate to “Fileˮ > “Open Folderˮ in the top-left menu. Choose the correct folder location for the HTML file to live in.

● Once a folder is open, navigate to the “Explorerˮ and click on the “New File…ˮ button.

About Working HTML

● Basic usage of HTML is to display text. It can be done using the following:

Hello World!

● The element is used for heading 1, which makes the content Hello World appear in a large size and bold. ● Save the document with Ctrl + S Windows/Linux). ● To view the result, navigate to the file location and right-click > “Open Withˮ > choose the installed web browser, or simply use VS Codeʼs built-in browser.

HTML Metadata

Covered in this section: ● What is the content of the element? ● What is metadata? ● How to link other documents?

About Tag Content

● One of the contents of the element is metadata .

● Basic metadata include . This metadata has the charset attribute, which defines the character encoding, commonly set to UTF-8.

● Another attribute is the viewport attribute. Used as . ● The value of the viewport attribute is stored in another attribute, content. ● This metadata is used to control the websiteʼs scale and dimensions on different screen sizes. ● It is commonly set to content=”width=device-width, initial-scale=1.0”.

● Another attribute is the description attribute. This attribute also uses the name and content syntax. ● The content contains a summary of the website. This is useful for search engines like Google to highlight the keywords of the website.

● Other than metadata, there is the element, which is used to display the title of the website in the browserʼs tab.

Code Organization

Covered in this section: ● How to comment the code? ● How to organize the code? ● How to view the code of an existing website?

About Commenting the Code

● HTML uses the syntax to comment the code. ● Anything in between will be ignored and wonʼt be rendered in the web browser.

Rendered

● In VS Code, commenting can be performed by selecting all of the code to be commented and pressing Ctrl + /.

About Code Organization

● The most basic organization that can be made to HTML is to use indentation for an elementʼs children.

This element is the child of the element

● If an element is too long for a single line, break it into smaller part.

Lorem ipsum, dolor sit amet consectetur adipisicing elit. Deserunt quos saepe eaque, incidunt commodi officiis obcaecati non vero, voluptatem, itaque quo rerum sit quaerat dolores provident laboriosam porro voluptatum! Sequi voluptatem et quibusdam similique odio sint. Velit debitis, deserunt quis enim quo amet ut quidem fugit iusto et vitae suscipit?

● In VS Code, to generate dummy text for previewing the content, type lorem to generate random text. ● Use lorem followed by a number like lorem50 to generate random text based on need, 50 words in this case.

About Viewing an Existing Websiteʼs Code

● A web browser includes a developer tool for website developers to view whatʼs rendered on the website. ● To do so, simply right-click anywhere on the website and select “Inspectˮ.

● Alternatively, press Ctrl + Shift + I to trigger the inspector.

● Under the Inspector tab, the rendered code is displayed. ● Click on any line and the web browser will highlight the rendered code.