Html Context
HTML BASICS
Html Basics
- In html basics we will understand these Elements(tags), Attributes, properties, styles.
- Save the html codes in the .html file format.
- Talk about html documents, class, APIs.
Html Document
In html file there is a document type declaration written as: <!DOCTYPE html>
Html Elements
HTML elements or tags is defined by a start tag, and an end tag . i.e <html> and </html>.
Html Attributes
- HTML attributes provide additional information about HTML elements regarding to the html element.
- E.g. – name=“value”, style=“position: absolute”, title=“Html basics”, href=“https://technofuzeweb.com”, etc.
Src
In Html “src” attribute had two ways to specify URL:
- a. Absolute URL Example src=“https://technofuzeweb.com/images/html.jpg
- b. Relative URL. Example: src=”/images/html.jpg“.
Style
- In Html there is in build and some custom styles can be used.
- Property in HTML style is a CSS property and the value is CSS value.
- HTML style attribute is used to add styles to an element such as position, size, colour, and many more.
Class attribute
The class attribute specifies one or more class names for an element.
Multiple html element shares the same class. It is to point to a class name in a style sheet which is also used by JavaScript to access and manipulate elements.