140 likes | 359 Views
HTML/CSS Session 2. Mostafa Sotoodeh Moghadam. This Session Consist :. Basic HTML Tags <html> <head> <body> <p> < br /> heading tags <h1> , <h2> , … comment <!-- --!> <hr /> HTML Atribute. Basic HTML Tags- <html>.
E N D
HTML/CSSSession 2 Mostafa Sotoodeh Moghadam
This Session Consist : Basic HTML Tags <html> <head> <body> <p> <br/> heading tags <h1> , <h2> , … comment <!-- --!> <hr/> HTML Atribute
Basic HTML Tags- <html> In every Programming languages we need a main scope for developing our program. In HTML/CSS <html> tag is main scope. For every web page we need this tag in top of our code after <!DOCTYPE>.
Basic HTML Tags- <head> Every HTML code we have two submain tags : <head> and <body> <head> : Some special tags are declared in head tag. Most of them don’t seen in web pages. But there are so important for our webpages foundations. Such as : <title> (it appear as a webpage title in browsers) <link> , <script> , <meta> , <style>
Basic HTML Tags- <body> <body>: All the tags that decorate our webpages are written in this tag scope.
Basic HTML Tags- <p> <p> : P means paragraph in HTML. We all understand that all text without any tag are shown same in our browser. But we must use <p> tag in our codes.
Basic HTML Tags- <br/> <br/> : Break line !!
Basic HTML Tags- heading<h1,…> Heading : In HTML we have some tag for our title in text. <h1> , <h2> , <h3> , … H1 is the biggest and h6 is smaller one… We shouldn’t use heading for bolding our text…
Basic HTML Tags- comment <!.. ..!> Comment is clear as crystal :D <!.. This is comment azizam !..>
Basic HTML Tags- <hr/> <hr/> Create a horizontal line…
Html Atribute HTML tags can have attributes. Attributes provide additional information to an HTML element. Attributes always come in name/value pairs like this: name="value". Attributes are always specified in the start tag of an HTML element.
Html Attribute- example <body> <h1 align = “center”> sample for center </h1> </body>