Зміст курсу
HTML for Beginners
HTML for Beginners
What is HTML?
HTML is a language for creating web pages. HTML stands for Hyper Text Markup Language. Hypertext means we can add links to other web pages within a web page. Markup means HTML consists of a list of tags that defines the structure of a webpage. These tags have a specific meaning.
The information you want to display should go between open and closing tags. For example, if you want to write a paragraph, you must write it between open tags <p>
and closing tags </p>
.
Once you write your HTML codes in a text document, you have to save it with a .html extension. Then you can open it using a browser like Chrome. The browser will show your content according to the markup tag you used.
index
index
index
There are 4 important tags used in every HTML5 web page. Those are:
<!DOCTYPE html>
tells the browser that this is an HTML5 document;- The
<html>
is a root tag. All the HTML code (except for the<!DOCTYPE>
tag) should go within it; - The
<head>
tag contains information not displayed on the web page. You will learn about the head tag later; - The
<body>
- all the information you want to display on the web page goes here.
index
index
index
As you can see, the code runs from top to bottom one, line by line. You can add as many lines of code inside body tags.
Finally, it's important to remember that HTML is not case-sensitive. For example, <p>
and <P>
both work the same way.
Дякуємо за ваш відгук!