Professional Documents
Culture Documents
AS IT Theory Revision
AS IT Theory Revision
Theory
- HTML tags are the symbols“<>” and words (e.g “h1/p/a”) that de ne the opening
and closing of an HTML element.
- HTML attributes are the modi ers that change the original functionality of an
HTML tag, e.g “ <p class = “hello”>Hello world </p>”. The “class” in this manner
would be an attribute.
- HTML doctype is also known as the HTML document type declaration which is
written at the very rst line of code. It is an instruction that declares to the browser
in terms of what version of HTML it is. E.g“ <!DOCTYPE html>”
- Data attributes allow us to store extra private information for the server-side. The
syntax is as follows “<li data-*any word* = ‘this is important’>hello</li>”.
- Metadata content
<hr> is the horizontal rule element that represents a thematic break in a webpage.
This rule makes sure that the css within this tag will be applied without any other
condition. Syntax as follows: <! - - {css} - - >
The [attribute] selector selects elements with speci c attributes. For example, “
a[target]{
background-colour: yellow;
fi
fi
fi
fi
fi
fi
7. How to display responsive layout on devices of di erent screen sizes?
‘css’
}”
ff