Why is HTML necessary for web development? Is HTML the core of websites?
What is an HTML?
43912-Jul-2021
Updated on 12-Jul-2021
Home / DeveloperSection / Forums / What is an HTML?
Why is HTML necessary for web development? Is HTML the core of websites?
Ethan Karla
13-Jul-2021Html
HTML stands for “Hyper Text Markup Language” which is used for creating web page and web site. HTML is widely use in web page or application, we can create static website using only. In this time html latest version is available “HTML5”.
Syntax for HTML5.
<!DOCTYPE>: This define the HTML5, latest version of html.
<html > :This tag informs the browser that it is an HTML document. Text between html tag describes the web document. It is a container for all other elements of HTML except <!DOCTYPE>
<head>: It should be the first element inside the <html> html tag, which contains the metadata(information about the document). It must be closed before the body tag opens.
<title>: As its name suggested, it is used to add title of that HTML page which appears at the top of the browser window. It must be placed inside the head tag ;
<body> : Text between body tag describes the body content of the page that is visible to the end user. This tag contains the main content of the HTML document.
<h1> : Text between <h1> tag describes the first level heading of the webpage.
<p> : Text between <p> tag describes the paragraph of the webpage.
Features of HTML
1. It is very easy and simple. It can be easily read and modified.
2. It has lot of formatting tag for designing a web sites.
3. HTML is a case-insensitive language. In other language HTML tags are write in lower case or upper case.
4. It is a platform independent because it can display on any platform (window, Linux, and Mac).
5. It has one best feature for linking a one page to another page using “Anchor Tag”.
6. It is markup language so it provide flexible way to design a web page.
7. It has facility to add Graphics, Video, and Sound in web page by programmer.
8. It has facility to add Graphics, Video, and Sound in web page by programmer.
Building Blocks
A webpage consist these three things
• Tags
• Attributes
• Elements
Syntax for Tags in HTML –
Example of Tags-
Tags in HTML –
HTML tags are like keyword which define how web browser will format and display the content. When a web browser read html document top to bottom and right to left, after reading the document web browser render tag properties. Each tag has different properties.
HTML has two tags.
1. Unclosing tags
• <br> - it used for break the line of code
• <hr> - it used for put a line across the webpages
2. Closed tags
• Meta tags
o Title, meta, link, style
• Text tag
o P, h1 – h6, strong, em, abbr, address, cite, q, code, b, I,
• Link tags
o A, link, base
• Image or object tags
o Img, area, map, param, object
• List tags
o Ul, ol, li, dd, dt,dl
• Table tags
o Table, td, tr, tbody, thead, tfoot, col, caption
• Form tags
o Form, input, textarea, select, option, button, label, fielsset,
• Script tags
o Script and noscript
HTML attributes –
1. Html attributes are special word which provide decoration of content on html page.
2. Each element have some specific attributes
3. The attribute are always used with name and value
4. Attribute always apply on start tags
5. We can add multiple value in attribute with separating each value with space
6. The attributes are always written in lower-case
Syntax of attribute –
Or
Example of attribute and tags of HTML
Text and link tags
List example in html
Table tags in html