Tag: It Is A Crucial Tag. It Tells The Browser That The Content Is Located Between and - It Is Also Called The "Root" Element
Tag: It Is A Crucial Tag. It Tells The Browser That The Content Is Located Between and - It Is Also Called The "Root" Element
• Unpaired tag: (does not have a companion tag. In other words it doesn’t close)
<br>: breaks a line
HTML attributes provide additional information about a HTML element. Attributes can be
considered as properties of the element. An element may have a single attribute, many attributes, or
no attributes at all.
Attributes are placed in the opening tag, with a space after the element declaration
“alt” attribute is your plan B if your image fails to load.
<img src="path/to/image/dog.jpg" alt="A dog" >
It is preferable to include width and height attributes in your tag, and of course to start a video
automatically we use the autoplay attribute:
<video width="320" height="240" autoplay>
<source src="test.mp4" type="video/mp4" />
Please Check the video extension.
</video>
The src attribute in the video tag replace the <source> tag
add videos from youtube and we simply use the iframe tag
<iframe
width="420"
height="315"
src="https://www.youtube.com/embed/zcTFG_F0FRs">
</iframe>
<ul type="disc">
<ul type="square">
<ol> element represents an ordered list of item,
Ordered list type values can be used to change the numbering
scheme, and include the following:
• 1: Default numeric scheme
• I: Upper-case Roman numerals
• i: Lower-case Roman numerals
• A: Upper-case Alphabet
• a: Lower-case Alphabet
exp
<ol type="I">
The HTML <dl> element represents a description list. The element encloses a list of groups of
terms (specified using the <dt> element) and descriptions (provided by <dd> elements)
semantic tags Typically focusing on using HTML to semantically structure your web content
provides several benefits, including:
• making your web content vastly more accessible to readers with disabilities
• applying styles with CSS will become more consistent and predictable
• earch engines will use the semantic information to better understand your web pages
<header >
It's typically a group of introductory or navigational aids. It may contain some elements such as a
logo, a search form, a slogan, etc.
The <section> element defines a section in a document. if we want to split our home page into
sections for introduction, content, and contact information,
The <article> element defines an article in a document.
<label>Birth Date:</label>
<input type="date" name="birthday" />
<br />
<label>Password:</label>
<input type="password" name="password" />
<br />
<button> elements are simple to define, and have three different type values:
br hr
description list manual list ?