HTML, which stands for HyperText Markup Language, is a markup language used to create web pages.HTML is not a programming language, but rather a markup language which allows you to define the layout and content of a HTML page. HTML Files are stored on Web Servers. Web Browser acts like client applications and request web pages from web servers. HTTP (Hypertext Transfer Protocol) is a protocol mostly by web browsers to request HTML files from web servers.
Basically an HTML document is a plain text file that contains text and nothing else.When a browser opens an HTML file, the browser will look for HTML codes in the text and use them to change the layout, insert images, or create links to other pages. Since HTML documents are just text files they can be written in even the simplest text editor. In our case, we are going to use gEdit to create HTML files and Google Chrome to render these files.
The most basic HTML File would look like this:
- The DOCTYPE declaration defines the document type
- The text betweenanddescribes the web page
- The text betweenandis the visible page content
Tags are used to describe how you want a piece of text to be interpreted by the Web Browser. <title > defines the title of your browser window. Likewise, you have lots of HTML tags.
HTML allows you to define the layout and content of an HTML page while CSS(Cascading Style Sheets) describes how to display HTML elements.
This is a CSS rule:
There are 3 levels of CSS.Styles are added to HTML elements is the following ascending order.
- External Styles
- Embedded Styles
- Internal Styles
The internal styles overrides all other styles. With CSS, you can format HTML elements in many different ways such as changing their font-size or color etc.
Leave a Reply