On saturday 12.03 I took a book from a library which explained HTML and CSS. In this post I will go through all the things I learned from the book. Next several posts will be in the same way.

The HTML file starts with <html> and ends </html>.

<head></head> - Here we define the title of the page and if we want to add style.

<title></title> - This has to be included in the <head> so the interpreter knows that we are defining the title

<body></body> - Here we define the what has to be displayed on the webpage

<h></h> - This is used to define the headers and the paragraphs are included in it

<p></p> - Used for paragraphs

<em></em> - used for changing the format to Italian

<style></style> - it uses an element called type, we have to define the type of style we want e.g. <style type="text/css"> body{} </style>. in the brackets of the body we provide all of the requiring style changes we want to add. This is done through CSS.

<img src=""> - With the help of this we add an image to the webpage. It does not have closing. <> as its only job is to add an image.

<a href=""></a> - An important tool to direct from a required text to a different website. in "" we define the html file it has to direct to. (..) is used to go a folder back. It is required to have good file system so I will not get confused directing to files.

<q></q> - used for the in-text "" marks

<blockquote></blockquote> - separates as a block of quote in a different way by making it a block.

<br> - Acts as a line-break.

<ol></ol> - Ordered list. It will numerate items in the list

<ul></ul> - Unordered list. Doesn't matter the order

<li></li> - List item. Shows the start and end of each item.


Comments