Role of HTML and CSS
Role of HTML and CSS
1. Goal
Understand what HTML and CSS are.
Understand the importance of writing correct HTML.
This website is a fictitious website created to help you learn HTML and
CSS from now on.
From the navigation at the top of the website, you can go to the menu
page and the contact page.
Each of these pages is called a Web page and a Web site is a collection
of multiple Web pages.
ROLE OF HTML and CSS
Accessing this URL will send back data stored at a location on the
Internet called https://demohtml.diveintocode.jp/demo1/index.html .
The URL is the location on the Internet where this data is stored.
The data sent back is read by the browser on your PC, and this is what
displays the page of the cafe site you are looking at.
So, what kind of data is this sent back to us?
For Mac
View > Develop/Manage > Show Source
For Windows
Google Chrome Settings > Other Tools > Developer Tools
ROLE OF HTML and CSS
This is HTML.
If you look closely, you can see that the characters and sentences
displayed on the web page are also described in the HTML file.
HTML is the original document of the web page. You will be able to learn
and create HTML from now on.
What is HTML
The layout is neatly laid out so that "CONCEPT" is the title, "DIC Coffee's
Commitment" is the subtitle, and "DIC Coffee's coffee is made from
Rwandan coffee beans." is the main text.
I have tried to show <title> 、 <sub-title> , <body> with the words as they are.
It is hard to see, but you should be able to understand it.
A document like this, in which the document structure is expressed only
by letters and symbols without layout, is called "Hyper
Text". Markup is the process of describing characters and symbols to
make the original document into hypertext
HTML stands for Hyper Text Markup Language
HTML is a document that has been marked up into hypertext so that
computers can understand the document structure.
What is CSS
ROLE OF HTML and CSS
It should be easier to see if it is laid out like the image on the left.
CSS does this layout.
The layout is achieved by specifying the size of the text and how to
arrange it.
We will now learn about CSS as well.
Well, I've taken the cafe website as an example so far, but probably no
one knew the URL of this website originally.
Even if you create your own website and publish it on the Internet, you
can only find it if you know the URL.
In order to be found, it must be displayed in the search results by
services such as Google and Yahoo !.
With the ability to write CSS and create beautiful looking websites, some
people don't care about the HTML document structure.
In fact, when you're browsing a website, you rarely see just HTML, and
even if the HTML has a strange structure, it doesn't look good if you can
lay it out with CSS.
I think you're browsing a website in Chrome right now, but Chrome isn't
the only browser that can display your website. For Mac users, safari was
often used, and for Windows a while ago, Internet Explorer was often
used.
ROLE OF HTML and CSS
In fact, not all browsers were able to display HTML and CSS correctly.
HTML was invented in 1989 by Tim Berners-Lee, who worked at the
European Organization for Nuclear Research (CERN).
The first version of CSS was recommended in 1996 by the W3C, an
organization founded by Tim Berners-Lee to promote the standardization
of technologies used on the Web (a recommendation is an official
announcement).
After that, Internet Explorer gradually supported CSS, and with the
advent of new browsers that support CSS such as Safari and FireFox, the
roles of HTML that describes the document structure and CSS that
describes the layout can be separated. I did.
In the history described so far, new versions of HTML and CSS have been
recommended several times.
And now, the newest and mainstream are HTML5 and CSS3.
Can I use
Browsers that support HTML5 and CSS3 are Chrome, FireFox, Safari, and
Edge as of June 2020.
However, HTML and CSS are still evolving. Even the four browsers that
support HTML5 and CSS3 may not be compatible depending on the
method of description.
If you are wondering whether or not your website is compatible with any
of these browsers, you can check the Can I use website
ROLE OF HTML and CSS
For example, if you look at the HTML tag for displaying a video called
"iframe", it looks like this.
ROLE OF HTML and CSS
If it is green, it corresponds.
Some people may not know how to use it yet, but we will touch on it as
we learn, so let's get used to it gradually.
5. Summary
HTML is a document in which the document you want to display
on a Web page is marked up in hypertext so that the computer
can understand the document structure.
CSS sets the style of appearance and enables the design of
websites.
In order to be searched correctly, it is important to describe it in
the correct document structure.
2. Can I use