HTML (HyperText Markup Language) is the markup language that forms the structure of web pages. At the core of every page you see on the internet, there is HTML. Web browsers read HTML code to display text, images, links, and other content on the screen.
p
, div
, section
) to define content rather than commands.In HTML architecture, the <html> tag is the container for all other elements that make up a web page.
The <html> tag should only contain two direct child elements: <head> and <body>. All other elements must be placed within either the <head> or the <body> tags.
The tag should only contain two direct child elements: and. All other elements must be placed within either the or the tags.HTML Tag | Meaning | HTML Tag | Meaning |
---|---|---|---|
<html> | Hyper Text Markup Language | <q> | Quote |
<p> | Paragraph | <h1>…<h6> | Heading 1…6 |
<li> | List Item | <var> | Variable |
<ol> | Ordered List | <nav> | Navigation |
<ul> | Unordered List | <img> | Image |
<em> | Emphasis | <sup> | Superscript |
<a> | Anchor | <sub> | Subscript |
<b> | Bold | <del> | Delete |
<u> | Underline | <cite> | Citation Element |
<i> | Italic | <s> | Strikethrough |
<hr> | Horizontal Rule | <abbr> | Abbreviation / Acronym |
<svg> | Scalable Vector Graphic | <blockquote> | Block Quote |
Block-level HTML elements are those that create a new block or a structural segment on the web page. These elements typically occupy the full width available, which means they start on a new line and stretch out to the left and right as far as they can. This behavior is different from inline elements, which only take up as much width as necessary and do not start on a new line.
Inline-level elements in HTML are elements that do not start on a new line and only take up as much width as necessary. They can be nested within block-level elements and other inline elements without breaking the flow of the content. Unlike block-level elements, inline elements do not create a new block on the page.