HTML is the markup language used to define the structure and layout of web pages. It uses tags to mark elements like headings, paragraphs, lists, and more. Tags have opening and closing versions, and some are singular like <BR>. Tags can also have attributes that modify their default behaviors. The basic structure of an HTML document includes the <HTML>, <HEAD>, and <BODY> tags.
HTML is the markup language used to define the structure and layout of web pages. It uses tags to mark elements like headings, paragraphs, lists, and more. Tags have opening and closing versions, and some are singular like <BR>. Tags can also have attributes that modify their default behaviors. The basic structure of an HTML document includes the <HTML>, <HEAD>, and <BODY> tags.
HTML is the markup language used to define the structure and layout of web pages. It uses tags to mark elements like headings, paragraphs, lists, and more. Tags have opening and closing versions, and some are singular like <BR>. Tags can also have attributes that modify their default behaviors. The basic structure of an HTML document includes the <HTML>, <HEAD>, and <BODY> tags.
• Hyper – all over the place • Markup – marking up • HTML is - not a programming language, but rather a markup language - the language used to develop web pages. - the language interpreted by the Browser. - a text oriented language - also called HTML documents. • HTML tags • Are instructions that are embedded directly into the text of the document • Begins with an open angle bracket (<) and ends with a close angle bracket (>). • Can be of two types: • Paired Tags • A tag is followed along with a companion tag • Example: • <B> ….</B> tag • Here, <B> is often called the opening tag and </B> is called the closing tag. • The opening tag activates the effect and the closing tag turns the effect off. • Singular Tags • Also known as standalone tag • Does not have a companion tag • Example: • <BR> or <BR/> • Tags and their Properties/ attributes • Most of the HTML tags have their attributes. • The attributes of every tag goes inside the opening tag . • A tag can have any number of attributes separated by space . • Most of the attribute have a value. • For example • A tag with attributes will be written like. <tag attribute1="value" attribute2="value">
• Commonly used HTML commands
• Structure of HTML program <HTML> <HEAD><TITLE> ……… </TITLE></HEAD> ;Head part <BODY> ……… ……….</BODY> ;Body part </HTML> • Head Section / Document Head • Only information in <TITLE> and </TITLE> tags is displayed. • Used only for inner workings of the documents. • <HEAD><TITLE> ……… </TITLE></HEAD> • Body Section / Document Body • All contents are placed which are to be displayed • <BODY> ……………….</BODY>
Attribute Value BGCOLOR Changes default Background color