
HTML stands for Hyper Text markup language. It is not a programming language .It helps to prepare a structure of a website. IMPORTANCE OF HTML: 1.Gives structure and layout to the web page 2.Accessibility to SEO (search engine optimization).SEO basically shows the higher ranking of web page on google during search. 3.Compatible
REASONS TO LEARN HTML: 1.HTML is used to build the structure of the web page. No matter how your website fancy might be, but you need a underlying structure.
- HTML is easy to learn
- It is a versatile language
FEATURES OF HTML:
- Publish online documents with headings ,text ,links ,lists ,tables ,photos.
- Retrieves online information via hypertext link at the click on a button.
- HTML starts -opening tag and ends with -closing tag.
- HTML will have same effect.
ADVANTAGES :
- HTML helps to build to structure of a website and is widely used mark-up language.
- It is easy to learn.
- Every browser supports HTML language.
- HTML is simple to edit as being a plane text.
DISADVANTAGES:
- Errors can be costly.
- It cannot produce dynamic output alone since it is a static language.
STRUCTURE OF A HTML CODE:
- <>: OPENING OF TAB
- </>:CLOSING OF A TAB *<>CONTENT</> BOILER PLATE CODE: <!DOCTYPE html> Document
To get the boiler plate code in VS code type '!' and press tab or enter key. INTRODUCTION TO HTML COMMENTS: Comments are the explanations to your code for easy understanding of the reader. These are basically a way to add notes and explanations to your HTML code .You can add comments to your HTML code by enclosing them within the <!.....&.....> tags. To write a comment in VS code press ctrl+?. HTML TAGS: In HTML tags are used to define the structure and layout of webpages. for example
tags are used to create a paragraph, tags are used to get bold letters,tag is used to create a heading element and it is up to
.
HTML ELEMENTS: These are the individual components of an HTML document , such as heading, paragraphs and images.
HTML ATTRIBUTES: Attributes are used to provide additional information about an element.
HTML Entities:
- Some characters are reserved in HTML.
- If you use the less than or greater than signs in your text, the browser might mix them with tags. To display a less than sign we must write: < or <
- Character entities are used to display reserved characters in HTML .
- A character entity looks like this: &entity_name; OR &#entity_number;
SOME USEFUL CHARACTER ENTITIES: Result Description Entity name Entity number non-breaking space < less than < ; <
greater than > > & ampersand & & " double quotation " ; " ' single quotation ' '