Dotype HTML
Dotype HTML
LINKS
<a href=”link”> this is a link </a>
<a href=”link” target=”_blank”> :this is a link </a> opens link in new tab
<a href=”link” title=”link for youtube” > this is a link </a> : shows the given title
when hovers over it
IMAGE
<img src=”image.png” height=”100” width=”100”>
<img src=”image.gif” height=”100” width=”100”>
AUDIO
<audio>
<source src=”audio.mp3”>
</audio>
<audio controls>
<source src=”audio.mp3”>
</audio> to add controls
Can add <audio controls autoplay> , <audio controls autoplay muted>, <audio
controls autoplay muted loop>
<audio controls>
<source src=”audio.mp3” type=”audio/mpeg”>
<source src=”audio.wav” type=”audio/wav>
</audio> as a backup
VIDEO
<video src=”video.mp4” height=”100px” controls>
</video>
Can add autoplay, muted, loop
<link rel=”icon” type=”image/pnj” href=”image.pnj”> add this in the head for the
page icon
Text Formatting
<p> this is <b>text</b> </p> : make it bold
<p> this is <i>text</i> </p> : italic
<u></u> underline
<del></del> deleted text
<big></big> big size
<small>
<sub> subscript text
<sup> superscript text
<tt> monospace text
<mark style=”background-color:green;”> mark text with green highlighter
Group Tags
<span>
<div>
<h1><span style=”background-color:blue;”> This is span
text</span></h1>
CSS :
Float:
property, either left or right, used to wrap text around an image/ blocks.
Combinators:
Relationships b/w different selectors:
“space” = decendents, > = childs, ~ = general siblings, + = adjacent siblings.
Pseudo elements:
To style specific parts of elements,
syntax selector::key word like p::first-letter{}