Let’s start this blog with first understanding and defining what HTML and CSS are, also what they do. HTML is the standard markup language used to create different web pages. So it basically places content on the web page where you want them to be displayed. The reason we will be teaching you about HTML 5 is to use the latest version of this language. CSS is basically the same; it’s a style sheet language that is used for describing the look and formatting of a document written in a markup language.
Paired element and empty elements
All elements that are paired must contain a start tag and an end tag.
For an example
There are empty elements that do not have an end tag.
For an example:
<img src = ”images/worldmusiclogo.jpg” />
HTML Documents Structure
All HTML documents should start with a type declaration:
<!DOCTYPE html> followed by the HTML element and in between is the Body element
The content in between the <body></body> element is the visible part of the HTML document .
The DOCTYPE Tag
Every HTML document should begin with a DOCTYPE tag. This element identifies the version of HTML used in the document.
Example of the DOCTYPE tag:
The HTML Element
The html element is the root element of a Web document, meaning that it is the container for all the other elements on the Web page. The start <html> tag goes immediately below the DOCTYPE tag.
The Head Section of the Web Page:
The head section of the web page contains HTML code that does not appear on the web page when that web page is open in the web browser. You can think of the head section as a container for information.
The Body Element
The body element is the container for all of the page content that will be rendered
in the document window.
HTML headings are defined with the <h1> to <h6> elements:
HTML paragraphs are defined with the <p> element:
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
Example Basic Web Page
<p>My first paragraph.</p>