Podcast
Questions and Answers
What is the purpose of the
tag in HTML?
What is the purpose of the
tag in HTML?
What is the default extension for an HTML document?
What is the default extension for an HTML document?
What symbol is used to begin an HTML tag?
What symbol is used to begin an HTML tag?
What is the purpose of a DTD in markup languages?
What is the purpose of a DTD in markup languages?
Signup and view all the answers
How do you specify the title of an HTML document?
How do you specify the title of an HTML document?
Signup and view all the answers
What HTML tag is used to contain a paragraph of text?
What HTML tag is used to contain a paragraph of text?
Signup and view all the answers
Elements to be centre aligned in browser display are enclosed inside which HTML tags?
Elements to be centre aligned in browser display are enclosed inside which HTML tags?
Signup and view all the answers
Which HTML tag is used to display a table with border thickness of 1 pixel?
Which HTML tag is used to display a table with border thickness of 1 pixel?
Signup and view all the answers
Which HTML tag can control font face, size, and color?
Which HTML tag can control font face, size, and color?
Signup and view all the answers
Elements to be justified (aligned with left and right edges) in browser display are enclosed inside which HTML tags?
Elements to be justified (aligned with left and right edges) in browser display are enclosed inside which HTML tags?
Signup and view all the answers
Which HTML tag displays headings of the largest size?
Which HTML tag displays headings of the largest size?
Signup and view all the answers
Which HTML tag creates a clickable hyperlink for navigation inside the same page or between different pages?
Which HTML tag creates a clickable hyperlink for navigation inside the same page or between different pages?
Signup and view all the answers
Study Notes
HTML Basics
- In HTML, the
<p>
tag defines a paragraph. - The default extension for an HTML document is
.html
(can also be.htm
). - HTML tags begin with the
<
symbol. - HTML tags end with the
>
symbol. - HTML comments begin with the `` symbol.
Markup Language
- SGML stands for Standard Generalized Markup Language.
- DTD stands for Document Type Definition.
- DDL stands for Data Definition Language.
HTML Tags
- Most HTML tags have a corresponding closing tag, which begins with the `` symbol.
- The title to be displayed at the top of the browser window or browser tab is enclosed in
</p>
tags. - Paragraphs are contained inside
<p>
tags. - Elements to be centered in browser display are enclosed inside
</p>
tags or<div>
tags. - Elements to be left-aligned in browser display are enclosed inside
<div>
tags. - Elements to be right-aligned in browser display are enclosed inside
<div>
tags. - Elements to be justified (aligned to left and right edges) in browser display are enclosed inside
<div>
tags.
Image and Table Tags
- The `` tag displays an image in an HTML page.
- The `` tag displays a table, and can be used with the
border
attribute to specify the border thickness.
Link and Font Tags
- The
<a>
tag creates a clickable hyperlink for navigation inside the same page or between different pages. - The `` tag can control font face, size, and color.
Heading Tags
- The `` tag displays headings of the largest size.
- The `` tag displays headings of the second largest size.
- The `` tag displays headings of the third largest size.
- The `` tag displays headings of the smallest size.